Linux From ScratchThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a problem. I followed the LFS book trying to make a system, and I got some errors in GCC compile.
Here is the file that cotains "make -k ckeck" output error.
bash-3.00 % cat check.err
WARNING: Couldn't find the global config file.
make[1]: [check-gcc] Error 1 (ignored)
WARNING: Couldn't find the global config file.
WARNING: g++.old-deja/g++.mike/p10769a.C compilation failed to produce executable
WARNING: g++.old-deja/g++.other/enum5.C compilation failed to produce executable
WARNING: g++.old-deja/g++.pt/friend44.C compilation failed to produce executable
make[1]: [check-g++] Error 1 (ignored)
WARNING: Couldn't find the global config file.
make[3]: *** [check-DEJAGNU] Error 1
make[2]: *** [check-am] Error 2
make[2]: Target `check' not remade because of errors.
make[1]: *** [check-recursive] Error 1
make[1]: Target `check' not remade because of errors.
make: *** [check-target-libstdc++-v3] Error 2
make: Target `check' not remade because of errors.
bash-3.00 %
I have compiled the fifth chapter as in lfs (with gcc 3.4.1). Should I recompile this chapter too using the gcc 4.0.0? Or should I compile only in chapter 6 the gcc-4.0.0 in chroot environemt using gcc-3.4.1 from chapter 5 ?
so...if I understand correctly you deviated from the book and are getting errors? also, IIRC glibc will refuse to use gcc-4.0 ( unless you modify it or patch it, don't know if a patch is available or not).
I did not do it in Chapter 5 this time, as recommended by the author.
... strange thing... it is the fourth time when I compile on different PCs, with different Linux distributions, and I got the same errors. (I have compiled on Fedora Core3, I compiled on SUSE latest stable, on SLACK 10 it did not worked, as it did not pass yet to the 2.6 ker. ver.).
In the first of fourth tries I checked too in chapter five. (that time I did not use the package manager recommended by the author (a different user for every package), and that is why I do not have any longer the error messages from that checking). I remember well that it was the same error to libstdc++-v3. And a few others. I do not guarantee that the others were the same as these ones that you can see above.
the sanity check would be necessary in both, if your temporary compiler fails the sanity check, it cannot build the main system. personally, I wouldn't go for gcc-4.x yet, give it some time. most likely you accidentally made a mistake during the toolchain build or your host system is giving you the problems.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.