LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-19-2003, 06:58 AM   #1
shack
Member
 
Registered: Dec 2003
Distribution: Debian Sid
Posts: 77

Rep: Reputation: 15
"/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
 
Old 01-22-2005, 12:33 PM   #2
faro92
LQ Newbie
 
Registered: Jan 2005
Location: France
Posts: 2

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error: C++ preprocessor "/lib/cpp" fails sanity check marek345 Linux - Software 4 11-06-2008 09:49 AM
c++ preprocessor "/lib/cpp" fails sanity check... siuyiu Mandriva 1 10-06-2005 05:49 PM
C preprocessor "/lib/cpp" fails sanity check silver05 Linux - Software 3 08-25-2005 05:02 AM
error: C preprocessor "/lib/cpp" fails sanity check Master Fox Linux - Software 0 10-14-2004 03:39 PM
" '/lib/cpp' fails sanity check" when trying to install GAIM BoardinBum Linux - Newbie 2 08-13-2004 08:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration