[NTLUG:Discuss] configure: error: C++ preprocessor "/lib/cpp" fails sanity check

Terry trryhend at gmail.com
Wed Feb 9 08:26:13 CST 2005


On Tue, 08 Feb 2005 20:30:57 -0600, Kevin Brannen <kbrannen at pwhome.com> wrote:
> Terry wrote:
> 
> >When trying to run ./configure   on kiwimanager I get error:
> >checking how to run the C++ preprocessor... /lib/cpp
> >configure: error: C++ preprocessor "/lib/cpp" fails sanity check
> >
> >(I tried it on another  application, kifi, and did same thing.)
> >
> >Any help most appreciated!  :)
> >
> >config.log follows:
> >
> >
> >This file contains any messages produced by compilers while
> >running configure, to aid debugging if configure makes a mistake.
> >
> >It was created by configure, which was
> >generated by GNU Autoconf 2.53.  Invocation command line was
> >
> >  $ ./configure
> >
> >## --------- ##
> >## Platform. ##
> >## --------- ##
> >
> >...
> >configure:2852: checking dependency style of gcc
> >configure:2914: result: gcc3
> >configure:2925: checking how to run the C preprocessor
> >configure:2951: gcc -E  conftest.c
> >configure:2957: $? = 0
> >configure:2984: gcc -E  conftest.c
> >configure:2980:28: ac_nonexistent.h: No such file or directory
> >configure:2990: $? = 1
> >configure: failed program was:
> >#line 2979 "configure"
> >#include "confdefs.h"
> >#include <ac_nonexistent.h>
> >...
> >configure:3201: checking for g++
> >configure:3230: result: no
> >configure:3201: checking for c++
> >configure:3230: result: no
> >configure:3201: checking for gpp
> >configure:3230: result: no
> >configure:3201: checking for aCC
> >configure:3230: result: no
> >configure:3201: checking for CC
> >configure:3230: result: no
> >configure:3201: checking for cxx
> >configure:3230: result: no
> >configure:3201: checking for cc++
> >configure:3230: result: no
> >configure:3201: checking for cl
> >configure:3230: result: no
> >configure:3201: checking for FCC
> >configure:3230: result: no
> >configure:3201: checking for KCC
> >configure:3230: result: no
> >configure:3201: checking for RCC
> >configure:3230: result: no
> >configure:3201: checking for xlC_r
> >configure:3230: result: no
> >configure:3201: checking for xlC
> >configure:3230: result: no
> >configure:3243: checking for C++ compiler version
> >configure:3246: g++ --version </dev/null >&5
> >./configure: line 1: g++: command not found
> >
> >
> ...
> 
> /lib/cpp is not your real problem.  You're missing g++, and all of it's
> files.  OK, you might be missing gcc too, which would include cpp, but
> until you get a C++ compiler that it recognizes, you'll never get
> anywhere. :-)  So make sure you have gcc installed, if not, do so; and
> install g++.
> 

yum reports: "gcc is installed and is the latest version."
rpm -qa |grep gcc
gcc-gnat-3.3.2-1
libgcc-3.3.2-1
gcc-java-3.3.2-1
compat-gcc-7.3-2.96.118
compat-gcc-c++-7.3-2.96.118
gcc32-3.2.3-6
gcc-3.3.2-1
ls -l /lib/cpp /usr/bin/cpp
lrwxrwxrwx  1 root root    14 Feb  8 19:57 /lib/cpp -> ../usr/bin/cpp
-rwxr-xr-x  1 root root 81364 Oct 23  2003 /usr/bin/cpp




More information about the Discuss mailing list