LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   "/lib/cpp" fails sanity check (https://www.linuxquestions.org/questions/linux-software-2/lib-cpp-fails-sanity-check-127210/)

shack 12-19-2003 06:58 AM

"/lib/cpp" fails sanity check
 
I've tried compiling a few bits of software on my Debian 3.0 system, and only a few of them have worked. I can't get curphoo or curfloo to compile for a start. But this thing has come up a few times:

configure: error: C preprocessor "/lib/cpp" fails sanity check

What does this mean, and how do I fix it? The only thing I can think of is that /lib/cpp is a symbolic link. (/lib/cpp >> /usr/bin/cpp-2.95)
___
shack

faro92 01-22-2005 12:33 PM

Re: "/lib/cpp" fails sanity check
 
Hi,

I've the same problem with my Sarge.

It is because a file cc1plus is not present on the system.

Then a search in Debian packages shows :

usr/h8300-hitachi-hms/lib/gcc-lib/h8300-hitachi-hms/2.95.2/cc1plus devel/gcc-h8300-hms
usr/lib/gcc-lib/i386-gnu/2.95.4/cc1plus devel/gcc-i386-gnu
usr/lib/gcc-lib/i386-linux/2.95.4/cc1plus devel/g++-2.95
usr/lib/gcc-lib/i386-linux/3.0.4/cc1plus devel/g++-3.0
usr/lib/gcc-lib/i486-linuxlibc1/2.7.2.3/cc1plus oldlibs/altgcc
usr/lib/gcc-lib/i586-mingw32msvc/2.95.3-7/cc1plus devel/mingw32
usr/lib/gcc-lib/m68k-palmos/2.95.3-kgpd/cc1plus otherosfs/prc-tools

but i have

ii g++-3.2 3.2.3-9 The GNU C++ compiler
ii g++-3.4 3.4.3-6 The GNU C++ compiler

and cc1plus is not given in those packages :(

So I make a symbolic link to cc1 instead and it works :
droopy:/usr/lib/gcc-lib/i486-linux/3.3.5# ln -s cc1 cc1plus

I don't know if it is the right way but it works now.

Bye

Fabrice.


All times are GMT -5. The time now is 07:49 AM.