Compiling NWChem on mac laptop w/ lion

From NWChem

Viewed 1479 times, With a total of 2 Posts
Jump to: navigation, search

Just Got Here
Threads 1
Posts 1
Greetings. I am trying to install NWChem on my mac laptop running lion 10.7.4 I believe I have correctly installed openmpi and gfortran. All goes well until a loading step near then end, when I receive an error message that the option --export-dynamic is an unrecognized option for gfortran. Any ideas? Thanks in advance for any suggestion.
Randy


the error message:

gfortran -L/Users/rhall/Downloads/nwchem-6.1/lib/MACX64 -L/Users/rhall/Downloads/nwchem-6.1/src/tools/install/lib -o /Users/rhall/Downloads/nwchem-6.1/bin/MACX64/nwchem nwchem.o stubs.o -lnwctask -lccsd -lmcscf -lselci -lmp2 -lmoints -lstepper -ldriver -loptim -lnwdft -lgradients -lcphf -lesp -lddscf -ldangchang -lguess -lhessian -lvib -lnwcutil -lrimp2 -lproperty -lnwints -lprepar -lnwmd -lnwpw -lofpw -lpaw -lpspw -lband -lnwpwlib -lcafe -lspace -lanalyze -lqhop -lpfft -ldplot -ldrdy -lvscf -lqmmm -lqmd -letrans -lpspw -ltce -lbq -lcons -lperfm -ldntmc -lccca -lnwcutil -lga -lpeigs -lperfm -lcons -lbq -lnwcutil -llapack -lblas -llapack -lblas -L/usr/local/lib -lmpi_f90 -lmpi_f77 -lmpi -ldl -Wl, --export-dynamic -lnsl -lutil
gfortran: error: unrecognized option ‘--export-dynamic’
make: *** [all] Error 1

info re: gfortran
[mac5100026:~/Downloads/nwchem-6.1/src] rhall% gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/gfortran/libexec/gcc/x86_64-apple-darwin11/4.6.2/lto-wrapper
Target: x86_64-apple-darwin11
Configured with: ../gcc-4.6.2-RC-20111019/configure --prefix=/usr/local/gfortran --with-gmp=/Users/fx/devel/gcc/deps-static/x86_64 --enable-languages=c,c++,fortran,objc,obj-c++ --build=x86_64-apple-darwin11
Thread model: posix
gcc version 4.6.2 20111019 (prerelease) (GCC)
[mac5100026:~/Downloads/nwchem-6.1/src] rhall% which gfortran
/usr/local/bin/gfortran
Randall Hall
Lillian L.Y. Wang Yin, Ph.D. Endowed Professor of Chemistry
Dominican University of California
randall.hall@dominican.edu
Phone: 415-482-1911
Fax: 415-482-1972

Forum Vet
Threads 3
Posts 855
Randall,
Here is a way to fix your link problem
Edit $NWCHEM_TOP/src/config/makefile.h, change line 1958
from
   LDOPTIONS = -Wl,--export-dynamic
to
#    LDOPTIONS = -Wl,--export-dynamic

Then, relink typing

make FC=gfortran link

Just Got Here
Threads 0
Posts 1
solved
Edited On 11:36:30 PM PDT - Thu, May 30th 2013 by Snazzybloke


Forum >> NWChem's corner >> Compiling NWChem



Who's here now Members 0 Guests 1 Bots/Crawler 0


AWC's: 2.5.10 MediaWiki - Stand Alone Forum Extension
Forum theme style by: AWC