Mingw32 compilation


Click here for full thread
Forum Vet
I am sorry, I sent you the wrong command
I meant
gcc -O0 -g -o $NWCHEM_TOP/bin/LINUX/depend.x $NWCHEM_TOP/src/config/depend.c
Quote:P99 Sep 15th 6:34 am
Quote:Edoapra Sep 13th 6:59 am

What version of MinGW/gcc are you using?

4.8.1-4

Quote:Edoapra Sep 13th 6:59 am

Could you please try the following:
gcc -O0 -g -o $NWCHEM_TOP/bin/LINUX/depend.x $NWCHEM_TOP/src/config/makefile.h




D:/MinGW/msys/1.0/home/amnikitin/nwchem-6.5/src/config/makefile.h:2830:8: error:
 unknown type name 'flint'
 .F.o:; flint $(CPPFLAGS) -L $(SRCDIR)/nwchem.lbt $<
        ^
D:/MinGW/msys/1.0/home/amnikitin/nwchem-6.5/src/config/makefile.h:2830:26: error
: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
 .F.o:; flint $(CPPFLAGS) -L $(SRCDIR)/nwchem.lbt $<
                          ^
D:/MinGW/msys/1.0/home/amnikitin/nwchem-6.5/src/config/makefile.h:2832:8: error:
 unknown type name 'flint'
 .f.o:; flint $(CPPFLAGS) -L $(SRCDIR)/nwchem.lbt $<
        ^
D:/MinGW/msys/1.0/home/amnikitin/nwchem-6.5/src/config/makefile.h:2832:26: error
: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
 .f.o:; flint $(CPPFLAGS) -L $(SRCDIR)/nwchem.lbt $<
                          ^
D:/MinGW/msys/1.0/home/amnikitin/nwchem-6.5/src/config/makefile.h:2834:8: error:
 unknown type name 'flint'
 .F.o:; flint $(CPPFLAGS) -g -f -u $(SRCDIR)/nwchem.lbt $<
        ^
D:/MinGW/msys/1.0/home/amnikitin/nwchem-6.5/src/config/makefile.h:2834:26: error
: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
 .F.o:; flint $(CPPFLAGS) -g -f -u $(SRCDIR)/nwchem.lbt $<
                          ^
D:/MinGW/msys/1.0/home/amnikitin/nwchem-6.5/src/config/makefile.h:2836:8: error:
 unknown type name 'flint'
 .f.o:; flint $(CPPFLAGS) -g -f -u $(SRCDIR)/nwchem.lbt $<
        ^
D:/MinGW/msys/1.0/home/amnikitin/nwchem-6.5/src/config/makefile.h:2836:26: error
: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
 .f.o:; flint $(CPPFLAGS) -g -f -u $(SRCDIR)/nwchem.lbt $<
                          ^
D:/MinGW/msys/1.0/home/amnikitin/nwchem-6.5/src/config/makefile.h:1982:45: error
: declaration for parameter 'FC' but no such parameter
           ### extra mic compile stuff; make FC=ifort CC=icc
AR=xiar


Quote:Edoapra Sep 13th 6:59 am

cd /home/amnikitin/nwchem-6.5/src/nwpw/nwpwlib/pseudopotential/paw_atom
ls -l paw_my_constants.h

$ ls -l paw_my_constants.h
ls: paw_my_constants.h: No such file or directory

Quote:Edoapra Sep 13th 6:59 am

rm dependencies

$ rm dependencies
rm: cannot lstat `dependencies': No such file or directory

Quote:Edoapra Sep 13th 6:59 am

make FC=gfortran DEPEND_CC=gcc

$ make FC=gfortran DEPEND_CC=gcc
( cd /home/amnikitin/nwchem-6.5/src/config; make /home/amnikitin/nwchem-6.5/bin/
LINUX/depend.x ; )
gcc  -g -o /home/amnikitin/nwchem-6.5/bin/LINUX/depend.x depend.c
/bin/rm -f depend.o
/home/amnikitin/nwchem-6.5/bin/LINUX/depend.x  -I/home/amnikitin/nwchem-6.5/src/
tools/install/include > dependencies
gcc -c -I.  -I/home/amnikitin/nwchem-6.5/src/include -I/home/amnikitin/nwchem-6.
5/src/tools/install/include -DLINUX -DGFORTRAN -DGFORTRAN -DCHKUNDFLW -DGCC4 -DG
CC46 -DPARALLEL_DIAG  -m32 -g -O2 -o paw_atom_driver.o paw_atom_driver.c
make[1]: *** No rule to make target `/home/amnikitin/nwchem-6.5/src/include/paw_
my_constants.h', needed by `/home/amnikitin/nwchem-6.5/lib/LINUX/libnwpwlib.a(pa
w_atom.o)'.  Stop.
make: *** [optimized] Error 2