error compiling nwchem 6.3 last version released


Jump to page 12Next 16Last
Clicked A Few Times
Dear users and developers thanks for your patience with me I have 2 questions:
1)Can you help me to compile and run nwchem on mac osx v 10.9.2
I tried with this set up:

export NWCHEM_TOP=/Users/lorenzodona/Nwchem-6.3
export NWCHEM_TARGET=MACX64
export NWCHEM_MODULES=all

export USE_MPI=yes
export BLASOPT=" "



cd $NWCHEM_TOP/src

make \
FC=mpif90 \
CC=mpicc \
USE_64TO32=y

and I found this error:
-llapack -lblas -l64to32 -llapack -lblas -L/lib -lm -lcc_dynamic
ld: library not found for -lcc_dynamic
collect2: error: ld returned 1 exit status
make: *** [all] Error 1

Please can you gel me to compile nwchem on mac in serial o parral it's not important but i am really not able.
Can i compile nwchem with ./configure
I did this kind on configure with my option but i am not able to run make please can you help me.

Thans for your patience with me.
Dearly lorenzo.

Forum Vet
gcc/gfortran version
Lorenzo
What version of gcc/gfortran are you using
Could you please send us the output of
gcc -v
gfortran -v

Clicked A Few Times
thanks to help me
this is:

MacBook-Pro-di-Lorenzo-Dona:~ lorenzodona$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
MacBook-Pro-di-Lorenzo-Dona:~ lorenzodona$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/gfortran/libexec/gcc/x86_64-apple-darwin13/4.8.2/lto-wrapper
Target: x86_64-apple-darwin13
Configured with: ../gcc-4.8.2/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-darwin13
Thread model: posix
gcc version 4.8.2 (GCC)

Forum Vet
Could you please try the following and let me know if works


cd $NWCHEM_TOP/src

make FC=gfortran _GCC4=y link

Clicked A Few Times
No it doesn't work.
Please can you give a working configuration setup?
I also tried this:
export NWCHEM_TOP=/Users/lorenzodona/Nwchem-6.3.2
export NWCHEM_TARGET=MACX64
export NWCHEM_MODULES=all

export USE_MPI=yes
export BLASOPT=" "



cd $NWCHEM_TOP/src

make \
FC=mpif90 \
CC=mpicc \
USE_64TO32=y

or with export USE_MPI=no and gfortran and gcc i found the same error:
checking for base mpic++ compiler...
configure: error: Could not determine the C++ compiler wrapped by MPI
make[1]: *** [build/config.status] Error 1
make: *** [libraries] Error 1

Please can you help me.....
thanks for your patience.
Dearly lorenzo.
REALLY THANKS

Clicked A Few Times
Dear Edoapra i solved the problem:
configure: error: Could not determine the C++ compiler wrapped by MPI
make[1]: *** [build/config.status] Error 1
make: *** [libraries] Error 1
with export MPI_LOC=/opt/local
but I have always the same problem:

lm -lcc_dynamic
ld: library not found for -lcc_dynamic
collect2: error: ld returned 1 exit status
make: *** [all] Error 1

Really thanks for your patience with me
dearly lorenzo

Forum Vet
Lorenzo
I have made a mistake in my previous message, it should be GCC4=Y (uppercase "Y")

make FC=gfortran _GCC4=Y link

By the way, could you please provide more details about your failure?
For example, could you please copy the last 10 lines of your compilation?

Thanks, Edo

Clicked A Few Times
Dear Edo really thanks for your patience I used this setup like you advice me:

export NWCHEM_TOP=/Users/lorenzodona/Nwchem-6.3
export NWCHEM_TARGET=MACX64
export NWCHEM_MODULES=all

export USE_MPI=y
export USE_MPIF=y
export USE_MPIF4=y
export MPI_LOC=/opt/local
export BLASOPT=" "



cd /Users/lorenzodona/Nwchem-6.3/src

make FC=gfortran _GCC4=Y link
USE_64TO32=y

Can you check if I understood well where put make FC=gfortran _GCC4=Y link?
I found this error with this setup
MacBook-Pro-di-Lorenzo-Dona:Nwchem-6.3 lorenzodona$ ./build.command
grep: /Users/lorenzodona/Nwchem-6.3/src/tools/build/Makefile: No such file or directory
/Applications/Xcode.app/Contents/Developer/usr/bin/make nwchem.o stubs.o
gfortran -fdefault-integer-8 -Warray-bounds -g -fno-aggressive-loop-optimizations -I. -I/Users/lorenzodona/Nwchem-6.3/src/include -I/Users/lorenzodona/Nwchem-6.3/src/tools/install/include -DMACX -DGFORTRAN -DGCC4 -DEXT_INT -DGCC46 -DPARALLEL_DIAG -DCOMPILATION_DATE="'`date +%a_%b_%d_%H:%M:%S_%Y`'" -DCOMPILATION_DIR="'/Users/lorenzodona/Nwchem-6.3'" -DNWCHEM_BRANCH="'Development'" -c -o nwchem.o nwchem.F
Warning: Nonexistent include directory "/Users/lorenzodona/Nwchem-6.3/src/tools/install/include"
nwchem.F:3:0: fatal error: errquit.fh: No such file or directory
#include "errquit.fh"
^
compilation terminated.
make[1]: *** [nwchem.o] Error 1
make: *** [link] Error 2

if I use only gfortran the compilation starts but terminate always with

lm -lcc_dynamic
ld: library not found for -lcc_dynamic
collect2: error: ld returned 1 exit status
make: *** [all] Error 1

Thanks really a lot to help me.
and excuse me again if I bother you

Clicked A Few Times
Dear Edo I also tried with:
export FC=gfortran _GCC4=Y link
and now the error is:
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
configure:
configure: Assembler
configure:
checking dependency style of cc... gcc3
configure:
configure: Fortran compiler
configure:
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking for Fortran 77 compiler vendor... gnu
checking whether a simple Fortran MPI program compiles... no
configure: error: in `/Users/lorenzodona/Nwchem-6.3/src/tools/build':
configure: error: could not compile simple Fortran MPI program
See `config.log' for more details
make[1]: *** [build/config.status] Error 1
make: *** [libraries] Error 1

Thanks a lot again really for your patience

Clicked A Few Times
My configuration:
export NWCHEM_TOP=/Users/lorenzodona/Nwchem-6.3
export NWCHEM_TARGET=MACX64
export NWCHEM_MODULES=all

export USE_MPI=y
export USE_MPIF=y
export USE_MPIF4=y
export MPI_LOC=/Users/lorenzodona/openmpi-1.8.1
export MPI_INCLUDE=/Users/lorenzodona/openmpi-1.8.1/include
export MPI_LIB=/Users/lorenzodona/openmpi-1.8.1/lib
export BLASOPT=" "



cd /Users/lorenzodona/Nwchem-6.3/src

make
export FC=gfortran _GCC4=Y link CC=gcc
USE_64TO32=y

this is the error:
Making libraries in ccca
gfortran -c -fdefault-integer-8 -Warray-bounds -g -fno-aggressive-loop-optimizations -I. -I../basis -I/Users/lorenzodona/Nwchem-6.3/src/include -I/Users/lorenzodona/Nwchem-6.3/src/tools/install/include -DMACX -DGFORTRAN -DGCC4 -DEXT_INT -DGCC46 -DPARALLEL_DIAG task_ccca.F
gfortran -c -fdefault-integer-8 -Warray-bounds -g -fno-aggressive-loop-optimizations -I. -I../basis -I/Users/lorenzodona/Nwchem-6.3/src/include -I/Users/lorenzodona/Nwchem-6.3/src/tools/install/include -DMACX -DGFORTRAN -DGCC4 -DEXT_INT -DGCC46 -DPARALLEL_DIAG ccca_utils.F
Got lock on /Users/lorenzodona/Nwchem-6.3/lib/MACX64/libccca.lock
ar r /Users/lorenzodona/Nwchem-6.3/lib/MACX64/libccca.a task_ccca.o ccca_utils.o
ar: creating archive /Users/lorenzodona/Nwchem-6.3/lib/MACX64/libccca.a
ranlib /Users/lorenzodona/Nwchem-6.3/lib/MACX64/libccca.a
/Applications/Xcode.app/Contents/Developer/usr/bin/make nwchem.o stubs.o
gfortran -fdefault-integer-8 -Warray-bounds -g -fno-aggressive-loop-optimizations -I. -I/Users/lorenzodona/Nwchem-6.3/src/include -I/Users/lorenzodona/Nwchem-6.3/src/tools/install/include -DMACX -DGFORTRAN -DGCC4 -DEXT_INT -DGCC46 -DPARALLEL_DIAG -DCOMPILATION_DATE="'`date +%a_%b_%d_%H:%M:%S_%Y`'" -DCOMPILATION_DIR="'/Users/lorenzodona/Nwchem-6.3'" -DNWCHEM_BRANCH="'Development'" -c -o nwchem.o nwchem.F
gfortran -fdefault-integer-8 -Warray-bounds -g -fno-aggressive-loop-optimizations -I. -I/Users/lorenzodona/Nwchem-6.3/src/include -I/Users/lorenzodona/Nwchem-6.3/src/tools/install/include -DMACX -DGFORTRAN -DGCC4 -DEXT_INT -DGCC46 -DPARALLEL_DIAG -DCOMPILATION_DATE="'`date +%a_%b_%d_%H:%M:%S_%Y`'" -DCOMPILATION_DIR="'/Users/lorenzodona/Nwchem-6.3'" -DNWCHEM_BRANCH="'Development'" -c -o stubs.o stubs.F
gfortran -L/Users/lorenzodona/Nwchem-6.3/lib/MACX64 -L/Users/lorenzodona/Nwchem-6.3/src/tools/install/lib -o /Users/lorenzodona/Nwchem-6.3/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 -lsolvation -lnwints -lprepar -lnwmd -lnwpw -lofpw -lpaw -lpspw -lband -lnwpwlib -lnwxc -lcafe -lspace -lanalyze -lqhop -lpfft -ldplot -ldrdy -lvscf -lqmmm -lqmd -letrans -lpspw -ltce -lbq -lcons -lperfm -ldntmc -lccca -lnwcutil -lga -larmci -lpeigs -lperfm -lcons -lbq -lnwcutil -llapack -lblas -llapack -lblas -L//Users/lorenzodona/openmpi-1.8.1/lib -lmpi -lm -lcc_dynamic
ld: library not found for -lcc_dynamic
collect2: error: ld returned 1 exit status
make: *** [all] Error 1

thanks really again and excuse me for a lot of messages.

Forum Vet
no export in the command line
Lorenzo
Please do not use export in the command line.
Please use try this exact command without any change

make FC=gfortran _GCC4=Y CC=gcc link 

Clicked A Few Times
after
lm -lcc_dynamic
ld: library not found for -lcc_dynamic
collect2: error: ld returned 1 exit status
make: *** [all] Error 1

I used

make FC=gfortran _GCC4=Y CC=gcc link

and nwchem is built but id doesn't work this is the error found:
MacBook-Pro-di-Lorenzo-Dona:MACX lorenzodona$ ./nwchem
 Unable to open nwchem.nw --- appending .nw
------------------------------------------------------------------------
nwchem: failed to open the input file 0
------------------------------------------------------------------------
------------------------------------------------------------------------
current input line :
0:
------------------------------------------------------------------------
------------------------------------------------------------------------
There is an error in the input file
------------------------------------------------------------------------
For more information see the NWChem manual at http://nwchemgit.github.io/index.php/NWChem_Documentation


For further details see manual section:                                                                                                                                                                                                                                                                
0:nwchem: failed to open the input file:Received an Error in Communication


MPI_ABORT was invoked on rank 0 in communicator MPI COMMUNICATOR 4 DUP FROM 0
with errorcode 0.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
Can I solve it
Or can I compile nwchem without parallel only in serial please can you tell me how.
Dearly lorenzo

Forum Vet
Lorenzo
Have a look at the first line of the output

Unable to open nwchem.nw


You need to have the NWChem input file (default value nwchem.nw) present
in the same directory you are using.

Further details in

http://nwchemgit.github.io/index.php/Release62:Running

Clicked A Few Times
I followed your advice but i found this error
MacBook-Pro-di-Lorenzo-Dona:MACX lorenzodona$ nwchem diamond.nw
argument  1 = diamond.nw
MA fatal error: MA_sizeof: invalid datatype: 4333622002677
MacBook-Pro-di-Lorenzo-Dona:MACX lorenzodona$ nwchem C2.nw
argument  1 = C2.nw
MA fatal error: MA_sizeof: invalid datatype: 4333622002677
MacBook-Pro-di-Lorenzo-Dona:MACX lorenzodona$ nwchem diamond.nw
argument  1 = diamond.nw
MA fatal error: MA_sizeof: invalid datatype: 4333622002677
MacBook-Pro-di-Lorenzo-Dona:MACX lorenzodona$

Thanks a lot
Thanks for your patience
Dearly lorenzo

Clicked A Few Times
I followed your advice but i found this error
MacBook-Pro-di-Lorenzo-Dona:MACX lorenzodona$ nwchem diamond.nw
argument  1 = diamond.nw
MA fatal error: MA_sizeof: invalid datatype: 4333622002677
MacBook-Pro-di-Lorenzo-Dona:MACX lorenzodona$ nwchem C2.nw
argument  1 = C2.nw
MA fatal error: MA_sizeof: invalid datatype: 4333622002677
MacBook-Pro-di-Lorenzo-Dona:MACX lorenzodona$ nwchem diamond.nw
argument  1 = diamond.nw
MA fatal error: MA_sizeof: invalid datatype: 4333622002677
MacBook-Pro-di-Lorenzo-Dona:MACX lorenzodona$

Thanks a lot
Thanks for your patience
Dearly lorenzo

Forum Vet
Lorenzo
Could you upload to an open-accessible website the following file
$NWCHEM_TOP/src/tools/build/config.log


Forum >> NWChem's corner >> Compiling NWChem
Jump to page 12Next 16Last