[gmx-users] Problem compiling GROMACS 3.2.1 with GCC 4.0.0

Arijit Tarafdar atarafda at lions.odu.edu
Tue May 10 16:40:31 CEST 2005


Hi I get the following error while trying to compile GROMACS with GCC 
4.0.0 on AMD64. Is typename not a reserved word? Following is the excerpt 
from make.log file:

/opt/lam-7.1.1-GCC4.0.0-TCP-AMD64/bin/mpicc -DHAVE_CONFIG_H -I. -I. 
-I../../src -I../../include 
-DGMXLIBDIR=\"/opt/gromacs-3.2.1-lam-7.1.1-GCC4.0.0-TCP-AMD6
4/share/top\" -I/opt/lam/include -I/opt/fftw/include -I/opt/lam/include 
-I/opt/fftw/include -MT xmlio.lo -MD -MP -MF .deps/xmlio.Tpo -c xmlio.c -o 
xmlio.o
/opt/gcc-4.0.0/bin/g++ -DHAVE_CONFIG_H -I. -I. -I../../src 
-I../../include 
-DGMXLIBDIR=\"/opt/gromacs-3.2.1-lam-7.1.1-GCC4.0.0-TCP-AMD64/share/top\" 
-I/opt
/lam/include -I/opt/fftw/include  -c ./mkinl.c
../../include/metacode.h:64: error: using 'typename' outside of template
../../include/metacode.h:64: error: expected nested-name-specifier before 
'[' token
../../include/metacode.h:64: error: expected unqualified-id before '[' 
token
../../include/metacode.h:116: error: expected ',' or '...' before 
'typename'
./mkinl.c: In function 'int main(int, char**)':
./mkinl.c:439: error: no 'operator++(int)' declared for postfix '++', 
trying prefix operator instead
./mkinl.c:439: error: no match for 'operator++' in '++loop.loop_t::coul'
./mkinl.c:440: error: no 'operator++(int)' declared for postfix '++', 
trying prefix operator instead
./mkinl.c:440: error: no match for 'operator++' in '++loop.loop_t::vdw'
./mkinl.c:441: error: no 'operator++(int)' declared for postfix '++', 
trying prefix operator instead
./mkinl.c:441: error: no match for 'operator++' in '++loop.loop_t::sol'
./mkinl.c:442: error: no 'operator++(int)' declared for postfix '++', 
trying prefix operator instead
./mkinl.c:442: error: no match for 'operator++' in '++loop.loop_t::free'
./mkinl.c:476: error: no 'operator++(int)' declared for postfix '++', 
trying prefix operator instead
./mkinl.c:476: error: no match for 'operator++' in '++loop.loop_t::free'
make[3]: *** [mkinl.o] Error 1
make[3]: Leaving directory 
`/root/Packages/Builds/gromacs-3.2.1-lam-7.1.1-GCC4.0.0-TCP-AMD64/src/gmxlib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/root/Packages/Builds/gromacs-3.2.1-lam-7.1.1-GCC4.0.0-TCP-AMD64/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/root/Packages/Builds/gromacs-3.2.1-lam-7.1.1-GCC4.0.0-TCP-AMD64/src'
make: *** [all-recursive] Error 1

My configuration script looks like:

./configure --prefix=/opt/gromacs-3.2.1-lam-7.1.1-GCC4.0.0-TCP-AMD64 \
--enable-mpi --enable-fortran --program-suffix=_AMD64 --without-x 
--without-xml \
CXX=/opt/gcc-4.0.0/bin/g++ CC=/opt/gcc-4.0.0/bin/g++ \
F77=/opt/gcc-4.0.0/bin/gfortran 
MPICC=/opt/lam-7.1.1-GCC4.0.0-TCP-AMD64/bin/mpicc \
LIBS="-L/opt/lam/lib" CFLAGS="-I/opt/lam/include -I/opt/fftw/include" \
CXXFLAGS="-I/opt/lam/include -I/opt/fftw/include" 
CPPFLAGS="-I/opt/lam/include -I/opt/fftw/include" \
FFLAGS="-I/opt/lam/include -I/opt/fftw/include" LDFLAGS="-L/opt/fftw/lib"

LAM 7.1.1 and FFTW compiled fine with GCC 4.0.0

Thanks for any help.

Arijit






More information about the gromacs.org_gmx-users mailing list