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.
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.
|
 |
05-23-2005, 04:20 AM
|
#1
|
LQ Newbie
Registered: Nov 2004
Location: Bucarest, Romania
Distribution: My own
Posts: 26
Rep:
|
LFS 6.0 problem: GCC check err.
Hello,
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 ?
Does somebody have any suggestions ?
|
|
|
05-23-2005, 11:51 AM
|
#2
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
|
As requested, moved to Linux From Scratch
|
|
|
05-23-2005, 12:20 PM
|
#3
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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).
|
|
|
05-26-2005, 02:43 AM
|
#4
|
LQ Newbie
Registered: Nov 2004
Location: Bucarest, Romania
Distribution: My own
Posts: 26
Original Poster
Rep:
|
No, I did not deviated from the book, and I get these errors, when I do the check for GCC.
I wish to deviate from the book, as I said above. Maybe I will not get the same errors.
I asked only if another person tried as I will.
|
|
|
05-26-2005, 05:56 AM
|
#5
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
did it pass the sanity check you did in the earlier chapter?
|
|
|
05-26-2005, 06:15 AM
|
#6
|
LQ Newbie
Registered: Nov 2004
Location: Bucarest, Romania
Distribution: My own
Posts: 26
Original Poster
Rep:
|
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.
Sorry for my bad English.
|
|
|
05-26-2005, 02:48 PM
|
#7
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
Quote:
Originally posted by alinsoar
I did not do it in Chapter 5 this time, as recommended by the author.
|
the author recommended to you not to do the sanity check?
|
|
|
05-28-2005, 06:35 AM
|
#8
|
LQ Newbie
Registered: Nov 2004
Location: Bucarest, Romania
Distribution: My own
Posts: 26
Original Poster
Rep:
|
Yes, he did. Only in chapter 6 he said it is absolutely necessary.
|
|
|
05-28-2005, 07:11 AM
|
#9
|
LQ Newbie
Registered: Nov 2004
Location: Bucarest, Romania
Distribution: My own
Posts: 26
Original Poster
Rep:
|
I tried gcc-4.0.0 instead of gcc-3.4.1. It does not work.
Je l'en veut.
I will recompile all LFS using 4.0.0
|
|
|
05-28-2005, 08:32 PM
|
#10
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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.
|
|
|
05-31-2005, 03:56 AM
|
#11
|
LQ Newbie
Registered: Nov 2004
Location: Bucarest, Romania
Distribution: My own
Posts: 26
Original Poster
Rep:
|
thanks, I will try just now.
|
|
|
06-03-2005, 05:37 AM
|
#12
|
LQ Newbie
Registered: Nov 2004
Location: Bucarest, Romania
Distribution: My own
Posts: 26
Original Poster
Rep:
|
I have recompiled everythig, and this time I made
" make check " after glibc compilation, the first step, in the first chapter.
The first error message is :
gcc -B/tools/bin/ -nostdlib -nostartfiles -o /mnt/lfs/sources/glibc-build/stdlib/test-canon -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2 -Wl,-z,combreloc -Wl,-z,relro /mnt/lfs/sources/glibc-build/csu/crt1.o /mnt/lfs/sources/glibc-build/csu/crti.o `gcc -B/tools/bin/ --print-file-name=crtbegin.o` /mnt/lfs/sources/glibc-build/stdlib/test-canon.o -Wl,-rpath-link=/mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/math:/mnt/lfs/sources/glibc-build/elf:/mnt/lfs/sources/glibc-build/dlfcn:/mnt/lfs/sources/glibc-build/nss:/mnt/lfs/sources/glibc-build/nis:/mnt/lfs/sources/glibc-build/rt:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-build/crypt:/mnt/lfs/sources/glibc-build/nptl /mnt/lfs/sources/glibc-build/libc.so.6 /mnt/lfs/sources/glibc-build/libc_nonshared.a -lgcc -Wl,--as-needed -lgcc_s -Wl,--no-as-needed `gcc -B/tools/bin/ --print-file-name=crtend.o` /mnt/lfs/sources/glibc-build/csu/crtn.o
GCONV_PATH=/mnt/lfs/sources/glibc-build/iconvdata LC_ALL=C /mnt/lfs/sources/glibc-build/elf/ld-linux.so.2 --library-path /mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/math:/mnt/lfs/sources/glibc-build/elf:/mnt/lfs/sources/glibc-build/dlfcn:/mnt/lfs/sources/glibc-build/nss:/mnt/lfs/sources/glibc-build/nis:/mnt/lfs/sources/glibc-build/rt:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-build/crypt:/mnt/lfs/sources/glibc-build/nptl /mnt/lfs/sources/glibc-build/stdlib/test-canon --test-dir=/mnt/lfs/sources/glibc-build/stdlib > /mnt/lfs/sources/glibc-build/stdlib/test-canon.out
make[2]: *** [/mnt/lfs/sources/glibc-build/stdlib/test-canon.out] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.5/stdlib'
make[1]: *** [stdlib/tests] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.5'
make: *** [check] Error 2
/mnt/lfs/sources/glibc-build %
Any ideas?
|
|
|
All times are GMT -5. The time now is 12:46 AM.
|
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
|
|