Mingw32 compilation


Click here for full thread
Gets Around
The file paw_my_constants.h was somehow corrupted.
I recompiled the newly opened archive.

export NWCHEM_TOP=~/nwchem-6.5
export NWCHEM_TARGET=LINUX
export USE_MPI=y
export MPI_LOC=~/MPICH2
export MPI_INCLUDE=$MPI_LOC/include
export MPI_LIB=$MPI_LOC/lib
export LIBMPI="-lfmpich2g -lmpi"
export NWCHEM_MODULES=all
export DEPEND_CC=gcc

cd $NWCHEM_TOP/src

make nwchem_config

make FC=gfortran DEPEND_CC=gcc 


Now the error has become:
Making libraries in ccca
gfortran -c -m32 -march=pentium4 -mtune=pentium4 -O2 -g -fno-aggressive-loop-opt
imizations  -I. -I../basis -I/home/amnikitin/nwchem-6.5/src/include -I/home/amni
kitin/nwchem-6.5/src/tools/install/include -DLINUX -DGFORTRAN -DGFORTRAN -DCHKUN
DFLW -DGCC4 -DGCC46 -DPARALLEL_DIAG   task_ccca.F
gfortran -c -m32 -march=pentium4 -mtune=pentium4 -O2 -g -fno-aggressive-loop-opt
imizations  -I. -I../basis -I/home/amnikitin/nwchem-6.5/src/include -I/home/amni
kitin/nwchem-6.5/src/tools/install/include -DLINUX -DGFORTRAN -DGFORTRAN -DCHKUN
DFLW -DGCC4 -DGCC46 -DPARALLEL_DIAG   ccca_utils.F
Got lock on /home/amnikitin/nwchem-6.5/lib/LINUX/libccca.lock
ar r /home/amnikitin/nwchem-6.5/lib/LINUX/libccca.a task_ccca.o ccca_utils.o
d:\TDM-GCC-32\bin\ar.exe: creating D:/MinGW/msys/1.0/home/amnikitin/nwchem-6.5/l
ib/LINUX/libccca.a
ranlib /home/amnikitin/nwchem-6.5/lib/LINUX/libccca.a
make nwchem.o stubs.o
gfortran -m32 -march=pentium4 -mtune=pentium4 -O2 -g -fno-aggressive-loop-optimi
zations  -I.  -I/home/amnikitin/nwchem-6.5/src/include -I/home/amnikitin/nwchem-
6.5/src/tools/install/include -DLINUX -DGFORTRAN -DGFORTRAN -DCHKUNDFLW -DGCC4 -
DGCC46 -DPARALLEL_DIAG -DCOMPILATION_DATE="'`date +%a_%b_%d_%H:%M:%S_%Y`'" -DCOM
PILATION_DIR="'/home/amnikitin/nwchem-6.5'" -DNWCHEM_BRANCH="'6.5'"  -c -o nwche
m.o nwchem.F
gfortran -m32 -march=pentium4 -mtune=pentium4 -O2 -g -fno-aggressive-loop-optimi
zations  -I.  -I/home/amnikitin/nwchem-6.5/src/include -I/home/amnikitin/nwchem-
6.5/src/tools/install/include -DLINUX -DGFORTRAN -DGFORTRAN -DCHKUNDFLW -DGCC4 -
DGCC46 -DPARALLEL_DIAG -DCOMPILATION_DATE="'`date +%a_%b_%d_%H:%M:%S_%Y`'" -DCOM
PILATION_DIR="'/home/amnikitin/nwchem-6.5'" -DNWCHEM_BRANCH="'6.5'"  -c -o stubs
.o stubs.F
gfortran -m32 -march=pentium4 -mtune=pentium4 -g -O0  -L/home/amnikitin/nwchem-6
.5/lib/LINUX -L/home/amnikitin/nwchem-6.5/src/tools/install/lib  -o /home/amniki
tin/nwchem-6.5/bin/LINUX/nwchem nwchem.o stubs.o -lnwctask -lccsd -lmcscf -lselc
i -lmp2 -lmoints -lstepper -ldriver -loptim -lnwdft -lgradients -lcphf -lesp -ld
dscf -ldangchang -lguess -lhessian -lvib -lnwcutil -lrimp2 -lproperty -lsolvatio
n -lnwints -lprepar -lnwmd -lnwpw -lofpw -lpaw -lpspw -lband -lnwpwlib -lnwxc -l
cafe -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/home/amniki
tin/MPICH2/lib -lfmpich2g -lmpi    -lwsock32
D:/MinGW/msys/1.0/home/amnikitin/nwchem-6.5/lib/LINUX/libnwcutil.a(util_md_socke
ts.o): In function `create_server_socket':
D:\MinGW\msys\1.0\home\amnikitin\nwchem-6.5\src\util/util_md_sockets.c:29: undef
ined reference to `ga_error'
D:/MinGW/msys/1.0/home/amnikitin/nwchem-6.5/lib/LINUX/libnwcutil.a(util_md_socke
ts.o): In function `create_client_socket':
D:\MinGW\msys\1.0\home\amnikitin\nwchem-6.5\src\util/util_md_sockets.c:68: undef
ined reference to `ga_error'
collect2.exe: error: ld returned 1 exit status
make: *** [all] Error 1