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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-30-2011, 11:29 PM
|
#1
|
|
Member
Registered: Jan 2010
Location: Arkansas
Distribution: Slackware-Current, LFS
Posts: 136
Rep:
|
Part II Chapter 6 Section 6.16 GCC-4.5.2 make error
Hi there, sorry to post here (again lol) but this time I'm stumped. I'm trying to build GCC-4.5.2 and when I run make, I get an odd error.
I will iterate:
Code:
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/sources/gcc-build/i686-pc-linux-gnu/libgcc':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/sources/gcc-build'
make: *** [all] Error 2
of course, that's just where the error begins and ends, and then stops make, but if you need more, just say so.
I'm running Ubuntu Natty.
|
|
|
|
10-01-2011, 03:02 AM
|
#2
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,711
|
Hi,
Quote:
|
Originally Posted by steviebob
configure: error: in `/sources/gcc-build/i686-pc-linux-gnu/libgcc':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
|
Although the error shown gives me an idea, details are missing. Did you have a look at the config.log file that was created?
My guess for now: You haven't (correctly) build c++ (this was done in chapter 5.10 GCC-4.5.2 - Pass 2).
If my assumption is correct fixing this isn't as easy as the previous perl problem you had. You already adjusted the toolchain (6.10) so going back to chapter 5, (re)installing gcc and continuing with 6.16 is probably not possible. You can, of course, try.
I do hope you followed the advise given at the bottom of chapter 5.34. In that case you don't have to start from scratch again but can remove all and restore the backup. At this point you can redo 5.10 and all of chapter 6.
But do have a look at the config.log first!
Hope this helps.
|
|
|
|
10-01-2011, 10:21 PM
|
#3
|
|
Member
Registered: Jan 2010
Location: Arkansas
Distribution: Slackware-Current, LFS
Posts: 136
Original Poster
Rep:
|
Well, I went back and reinstalled gcc, tried compiling gcc and got an error about not being able to find zlib.h. So I went back and reinstalled zlib, got the same error, so I decided I'm just going to restart compiling lfs, as I didn't make a backup like you pointed out (I guess I just didn't see that part). Ah well, thanks anyway 
|
|
|
|
10-02-2011, 02:34 AM
|
#4
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,711
|
Hi,
Although I figured as much, you did already do the re-adjusting the toolchain part, it is too bad you couldn't fix it by going back to chapter 5.
About making a backup after finishing chapter 5:
- Make sure you are root user,
- Make sure $LFS is still mounted,
- Then:
Code:
# making the backup
$ cd $LFS
$ tar czf /root/lfs-6.8.chap.5.tar.gz *
# removing all
$ cd $LFS
rm -rf *
# restoring the backup
$ cd $LFS
$ tar zxf /root/lfs-6.8.chap.5.tar.gz
Hope this helps.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:30 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|