[CPMD-list] Error on PC-Linux compilation
axel.kohlmeyer at theochem.ruhr-uni-bochum.de
axel.kohlmeyer at theochem.ruhr-uni-bochum.de
Thu Apr 18 18:21:38 CEST 2002
>>> "FF" == Francesco Filippone <francesco.filippone at mlib.cnr.it> writes:
FF> Dear A.J. Du,
FF> this error sounds like a preprocessor error. I can't reproduce it, but I
FF> rememeber I had something similar.
FF> The preprocessor is defined by the Configure script as /lib/cpp, which is
FF> part of gcc. Unfortunately RedHat 7.2 is shipped with un unsupported
FF> version of gcc, 2.96, while the stable and supported version is either
FF> 2.95.3 (at the time in which RH 7.2 was released) or 3.0.4 (now). Try
FF> cpp --version to figure out which version you have.
FF> It this is the problem, the solution is to download (gcc.gnu.org) the
FF> stable version, compile and install it.
FF> I kept the 2.96, installed in /usr/bin, version for consistency in any
FF> recompilation of the kernel and installed the stable release in
FF> /usr/local/bin. After installation you just need to relink /lib/cpp to
FF> /usr/local/bin/cpp. Try to recompile from scratch and it should work.
FF> Ciao,
FF> F.
dear a.j. du,
please verify that the makefile definition for CPP contains the
'-traditional' flag. (e.g.CPP=/lib/cpp -P -C -traditional).
omission of this flag with newer gcc's is the usual
cause for the error you described, IIRC.
cheers,
axel.
--
=======================================================================
Axel Kohlmeyer e-mail: axel.kohlmeyer at theochem.ruhr-uni-bochum.de
Lehrstuhl fuer Theoretische Chemie Phone: ++49 (0)234/32-26673
Ruhr-Universitaet Bochum - NC 03/53 Fax: ++49 (0)234/32-14045
D-44780 Bochum http://www.theochem.ruhr-uni-bochum.de
=======================================================================
If you make something idiot-proof, the universe creates a better idiot.
More information about the CPMD-list
mailing list