[CPMD-list] Error on PC-Linux compilation

Francesco Filippone francesco.filippone at mlib.cnr.it
Wed Apr 17 16:26:13 CEST 2002


Dear A.J. Du,
this error sounds like a preprocessor error. I can't reproduce it, but I 
rememeber I had something similar.
The preprocessor is defined by the Configure script as /lib/cpp, which is 
part of gcc. Unfortunately RedHat 7.2 is shipped with un unsupported 
version of gcc, 2.96, while the  stable and supported version is either 
2.95.3 (at the time in which RH 7.2 was released) or 3.0.4 (now). Try 
cpp --version to figure out which version you have.

It this is the problem, the solution is to download (gcc.gnu.org) the 
stable version, compile and install it.
I kept the 2.96, installed in /usr/bin, version for consistency in any
recompilation of the kernel and installed the stable release in 
/usr/local/bin. After installation you just need to relink /lib/cpp to 
/usr/local/bin/cpp. Try to recompile from scratch and it should work. 

Ciao,
F.

-- 
----------------------------------------------------------------------------
  Francesco Filippone                            | Tanto gentile e
  CNR - ISTITUTO DI STRUTTURA DELLA MATERIA      | tant'onesta pare
  v. Salaria Km 29,300 - C.P. 10                 | la donna mia quand'ella
  I 00016 - Monterotondo Stazione (RM)           | altrui saluta...
  Tel + 39 06 90672342 - Fax +39 06 90672316     |
  e-mail: <francesco.filippone at mlib.cnr.it>      |     Dante
----------------------------------------------------------------------------




More information about the CPMD-list mailing list