Failure to compile on MinGW with MSYS


Click here for full thread
Just Got Here
Hello, I've tried to compile NWChem 6.5 on Windows 7 using MinGW with MSYS. Thus far I've tried using these environment variables:

export NWCHEM_TOP=~/nwchem-6.5
export NWCHEM_TARGET=WIN32
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 PYTHONHOME=/c/Python27/
export PYTHONVERSION=27
export DEPEND_CC=gcc


Creating the nwchem_config works just fine, however, when I run make FC=gfortran DEPEND_CC=gcc, compilation fails with the following error:

cc  -I/home/Artem/nwchem-6.5/src/peigs/h -DWIN32 -D  -c clustrfix.c
<command-line>:0:1: error: macro names must be identifiers
clustrfix.c: In function 'clustrfix_':
clustrfix.c:206:9: error: 'DLAMCHE' undeclared (first use in this function)
   eps = DLAMCHE;
         ^
clustrfix.c:206:9: note: each undeclared identifier is reported only once for ea
ch function it appears in
make[3]: *** [clustrfix.o] Error 1
make[3]: Leaving directory `/home/Artem/nwchem-6.5/src/peigs/src/c'
make[2]: *** [lib] Error 2
make[2]: Leaving directory `/home/Artem/nwchem-6.5/src/peigs'
make[1]: *** [peigs_stamp] Error 1
make[1]: Leaving directory `/home/Artem/nwchem-6.5/src/peigs'
make: *** [libraries] Error 1


Any ideas as to what the problem might be?