LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-24-2003, 04:57 PM   #1
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
ncurses-5.3 configure error - fails sanity check


Ok, movin' right along.

I get to the ncurses-5.3 installation in chapter 6. And I do the
./configure --prefix=/usr --with-shared

And, as usual, a bunch of stuff starts scrolling off the screen.
Then I get:
.
.
checking for stdbool.h... yes
checking for builtin bool type... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check

How did cpp become insane here?

I searched on www.google.com/linux and found a couple of hits about this, but didn't find a solution. I don't think I missed any steps? But, maybe I did.

Thanks...
 
Old 07-24-2003, 05:11 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Re: ncurses-5.3 configure error - fails sanity check

Quote:
Originally posted by itsjustme
Ok, movin' right along.

I get to the ncurses-5.3 installation in chapter 6. And I do the
./configure --prefix=/usr --with-shared

And, as usual, a bunch of stuff starts scrolling off the screen.
Then I get:
.
.
checking for stdbool.h... yes
checking for builtin bool type... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check

How did cpp become insane here?

I searched on www.google.com/linux and found a couple of hits about this, but didn't find a solution. I don't think I missed any steps? But, maybe I did.

Thanks...
You missed http://search.linuxfromscratch.org

Enter the error message "configure: error: C++ preprocessor "/lib/cpp" fails sanity check" as the search query and you'll get a bunch of returns. One of the cause of your error is a missing C++ compiler, probably made a mistake during chapter6-gcc where the C++ compiler was supposed to be installed.
 
Old 07-27-2003, 03:30 PM   #3
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 47
OK, well, as someone who knows how dirty a windows registry can get, especially if you have ever had AOL installed then ran its uninstall and then looked at your registry and saw the 200 or so AOL references still in there, you know how I now feel about what I have done. Well, sorta.

OK, after having already 'configured' gcc in chapter 6 and then getting to the problem in ./configure'ing ncurses, I went back and deleted the 2 directories gcc-build and gcc-3.2.1. I then repeated chapter 6.15. I assume that the intial 'configure' modified, moved, created, etc., a lot of other files. So, now I am also assuming that deleting the 2 directories and starting over will simply overwrite or ignore any files that are affected.

Anyway, after re-doing gcc, the ncurses part configured with no error. So, apparently something was amiss with my 'tree', since I stepped back through my command line entries and didn't see any typos.

So, now, hopefully, the gcc part is set and happy, and the redo didn't hose up anything that will cause more problems on down the road.

regards...

(oh, also, my search did hit a couple of those ncurses 'returns' but there were no obvious solutions in there, just that the user probably screwed up something, as you stated, "probably made a mistake during chapter6-gcc", which, of course, did repeat the definition of my problem.)


Edit: And thanks for pointing me to the problem as being in the chapter 6 gcc. That was where the problem occurred after all.

Last edited by itsjustme; 07-27-2003 at 03:36 PM.
 
Old 10-04-2003, 05:34 PM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
I'm getting the same thing except I don't get the fault fixed after re-building gcc...

It seems g++ is not installed either. Perhaps there is something wrong with my gcc build / install. Am I correct in saying the gcc-g++-3.2.1.tar.gz tarball should be expanded in the gcc-3.2.1 directory?

** later edit ***

!DOH! gcc-g++-3.2.1.tar.gz already has the gcc-3.2.1 directory inside - pwd I should have been gcc-3.2.1/.. when I un-tarred it. Sorry.


Last edited by matthewg42; 10-04-2003 at 05:40 PM.
 
  


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
hplip configure error -- /lib/cpp fails sanity check pncowley Linux - Software 8 04-28-2006 12:08 PM
ardour wont configure: configure: error: C preprocessor "/lib/cpp" fails sanity check disciple061 Linux - Software 4 01-22-2005 12:35 PM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check HELP Ckesey Linux - Software 0 10-04-2004 09:49 AM
lib/cpp configure error: fails sanity check revenge80200 Linux - Newbie 5 09-28-2004 09:21 PM
configure: error: C++ preprocessor fails sanity check Guitarist88 Linux - Newbie 1 08-13-2004 03:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:46 AM.

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