LinuxQuestions.org
Help answer threads with 0 replies.
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 03-06-2007, 12:02 AM   #1
i.you
Member
 
Registered: Oct 2006
Posts: 46

Rep: Reputation: 15
error: C++ preprocessor "/lib/cpp" fails sanity check


I use gcc 3.4.4 (CodeSourcery ARM 2005q3-2) to install lighttpd, and following error:


checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... armv5tejl-unknown-linux-gnu
checking host system type... armv5tejl-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.


I searched google and saw many forums which this problem, but i can't check it.
What can i do?
I checked that g++ is installed.
 
Old 03-06-2007, 12:25 AM   #2
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
What does config.log report?
 
Old 03-06-2007, 01:15 AM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I had similar errors trying to install Fuse I believe, or ntfs-3g, in Mandrake 10.2 (I think), I did not have gcc-c++ installed, or make for that matter, possibly even kernel-source. Having many distros is starting to have an effect. But basically there is some building tools (essentials) not installed or the wrong version installed as you mention you are using gcc-34, possibly libgcc according to where things came to a halt.
Which distribution is this?
 
Old 03-06-2007, 02:24 AM   #4
i.you
Member
 
Registered: Oct 2006
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks, ernie and Junior Hacker.

config.log reports same error and so many other errors...
and I use embedded kernel on ARM9, so no distribution.
anyway, I resolved:
I just skipped C Preprocessor sanity check with editing "configure" file.
 
  


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
configure: error: C++ preprocessor "/lib/cpp" fails sanity check Mugatu Linux - Software 54 11-09-2017 07:34 AM
error: C++ preprocessor "/lib/cpp" fails sanity check marek345 Linux - Software 4 11-06-2008 09:49 AM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check the1wraith Linux - Software 1 02-18-2007 01:55 PM
error: C preprocessor "/lib/cpp" fails sanity check ankit4u1 Linux - Software 2 04-02-2006 12:24 PM
error: C preprocessor "/lib/cpp" fails sanity check Master Fox Linux - Software 0 10-14-2004 03:39 PM

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

All times are GMT -5. The time now is 05:20 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