[SOLVED] problem of make abinit6.6.1
Posted: Tue Mar 22, 2011 1:19 pm
When I try to install abinit on the cluster (RedHat Enterprise Linux 5 x86_64, gcc 4.5.2, intel 10.1)
I have tried:
1. ./configure --prefix...
2. make FC=gfortran, then error came up as the following
make[7]: Entering directory `/vol5/home/simg/software/abinit-6.6.1/plugins/netcdf/netcdf-4.1.1/fortran'
echo '! NetCDF-3.' > netcdf.inc
cat ../fortran/netcdf3.inc >> netcdf.inc
make all-am
make[8]: Entering directory `/vol5/home/simg/software/abinit-6.6.1/plugins/netcdf/netcdf-4.1.1/fortran'
depbase=`echo fort-attio.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../libsrc -DNDEBUG -DpgiFortran -g -O2 -MT fort-attio.lo -MD -MP -MF $depbase.Tpo -c -o fort-attio.lo fort-attio.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../libsrc -DNDEBUG -DpgiFortran -g -O2 -MT fort-attio.lo -MD -MP -MF .deps/fort-attio.Tpo -c fort-attio.c -o fort-attio.o
In file included from fort-attio.c:7 :
ncfortran.h:26:42: error:NF_INT_IS_C_... not defined:No such file or directory
fort-attio.c: In function ‘NF_INT_cfF’:
fort-attio.c:13: error:expected declaration specifiers before ‘NF_INTEGER’
fort-attio.c:20: error:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘NF_INTEGER’
fort-attio.c:121: error:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘NF_INTEGER’
fort-attio.c:133: error:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘NF_INTEGER’
fort-attio.c:141: error:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘NF_INTEGER’
fort-attio.c:148: error:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘NF_INTEGER’
fort-attio.c:148: error:expected ‘{’ at end of input
make[8]: *** [fort-attio.lo] error 1
make[8]: Leaving directory `/vol5/home/simg/software/abinit-6.6.1/plugins/netcdf/netcdf-4.1.1/fortran'
make[7]: *** [all] error 2
make[7]: Leaving directory `/vol5/home/simg/software/abinit-6.6.1/plugins/netcdf/netcdf-4.1.1/fortran'
make[6]: *** [all-recursive] error 1
make[6]: Leaving directory `/vol5/home/simg/software/abinit-6.6.1/plugins/netcdf/netcdf-4.1.1'
make[5]: *** [all] error 2
make[5]: Leaving directory `/vol5/home/simg/software/abinit-6.6.1/plugins/netcdf/netcdf-4.1.1'
make[4]: *** [build-stamp] error 2
make[4]: Leaving directory `/vol5/home/simg/software/abinit-6.6.1/plugins/netcdf'
make[3]: *** [package-ready] error 2
make[3]: Leaving directory `/vol5/home/simg/software/abinit-6.6.1/plugins/netcdf'
make[2]: *** [all-recursive] error 1
make[2]: Leaving directory `/vol5/home/simg/software/abinit-6.6.1/plugins'
make[1]: *** [all-recursive] error 1
make[1]: Leaving directory `/vol5/home/simg/software/abinit-6.6.1'
make: *** [all] error 2
I don't know how to solve this problem. Does anyone know what the problem is? Thanks
I have tried:
1. ./configure --prefix...
2. make FC=gfortran, then error came up as the following
make[7]: Entering directory `/vol5/home/simg/software/abinit-6.6.1/plugins/netcdf/netcdf-4.1.1/fortran'
echo '! NetCDF-3.' > netcdf.inc
cat ../fortran/netcdf3.inc >> netcdf.inc
make all-am
make[8]: Entering directory `/vol5/home/simg/software/abinit-6.6.1/plugins/netcdf/netcdf-4.1.1/fortran'
depbase=`echo fort-attio.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../libsrc -DNDEBUG -DpgiFortran -g -O2 -MT fort-attio.lo -MD -MP -MF $depbase.Tpo -c -o fort-attio.lo fort-attio.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../libsrc -DNDEBUG -DpgiFortran -g -O2 -MT fort-attio.lo -MD -MP -MF .deps/fort-attio.Tpo -c fort-attio.c -o fort-attio.o
In file included from fort-attio.c:7 :
ncfortran.h:26:42: error:NF_INT_IS_C_... not defined:No such file or directory
fort-attio.c: In function ‘NF_INT_cfF’:
fort-attio.c:13: error:expected declaration specifiers before ‘NF_INTEGER’
fort-attio.c:20: error:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘NF_INTEGER’
fort-attio.c:121: error:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘NF_INTEGER’
fort-attio.c:133: error:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘NF_INTEGER’
fort-attio.c:141: error:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘NF_INTEGER’
fort-attio.c:148: error:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘NF_INTEGER’
fort-attio.c:148: error:expected ‘{’ at end of input
make[8]: *** [fort-attio.lo] error 1
make[8]: Leaving directory `/vol5/home/simg/software/abinit-6.6.1/plugins/netcdf/netcdf-4.1.1/fortran'
make[7]: *** [all] error 2
make[7]: Leaving directory `/vol5/home/simg/software/abinit-6.6.1/plugins/netcdf/netcdf-4.1.1/fortran'
make[6]: *** [all-recursive] error 1
make[6]: Leaving directory `/vol5/home/simg/software/abinit-6.6.1/plugins/netcdf/netcdf-4.1.1'
make[5]: *** [all] error 2
make[5]: Leaving directory `/vol5/home/simg/software/abinit-6.6.1/plugins/netcdf/netcdf-4.1.1'
make[4]: *** [build-stamp] error 2
make[4]: Leaving directory `/vol5/home/simg/software/abinit-6.6.1/plugins/netcdf'
make[3]: *** [package-ready] error 2
make[3]: Leaving directory `/vol5/home/simg/software/abinit-6.6.1/plugins/netcdf'
make[2]: *** [all-recursive] error 1
make[2]: Leaving directory `/vol5/home/simg/software/abinit-6.6.1/plugins'
make[1]: *** [all-recursive] error 1
make[1]: Leaving directory `/vol5/home/simg/software/abinit-6.6.1'
make: *** [all] error 2
I don't know how to solve this problem. Does anyone know what the problem is? Thanks