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.
Ok I'll try but It'll completely break my current learning. The other way should be that I find a precompiled gcc 4.6.2 for x64 arch, skipping the gcc compilation phase on the book. Could someone give me a link for the pre-compiled package? Thank you
Another thing to consider is to start over with the 7.1 book. Know why? Because you've made various changes to the book's steps along the way such as mostly recently discovered, the symlink in your host to $LFS/tools. Perhaps there are others long forgotten. You could start over with the resolve to trust the book and follow every step as written. FWIW, I can whole-heartedly vouch for the 7.1 book. In fact, IMO, it's actually more risky to deviate from the book, not less so.
Another thing to consider is to start over with the 7.1 book. Know why? Because you've made various changes to the book's steps along the way such as mostly recently discovered, the symlink in your host to $LFS/tools. Perhaps there are others long forgotten. You could start over with the resolve to trust the book and follow every step as written. FWIW, I can whole-heartedly vouch for the 7.1 book. In fact, IMO, it's actually more risky to deviate from the book, not less so.
The only things I did not follow in the book was the creation of the symlink (and of course my $LFS var which was LFS instead of lfs) and the versions check. Now I created the symlink, renamed my $LFS var and saw that the only version of my package which not correspond to those on the book is my gcc version (4.6.3 instead of 4.6.2) so I don't think it's coming from me as I followed EXACTLY the book's steps now... Anyway, I tried to compile gcc 4.7.1 and now I have:
Code:
supports shared libraries... yes
checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[2]: *** [configure-stage1-target-libstdc++-v3] Error 1
make[2]: Leaving directory `/home/e-kami/workspace/OS_work/test_files/gcc-test-build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/e-kami/workspace/OS_work/test_files/gcc-test-build'
make: *** [all] Error 2
compiling gcc is a real pain... I never had such problems with compilation with any other programs in the past...
Hi are you building a 64 bit if so did you create the symlink at the end of binutils
I restarted to build from 0, including the creation of the symlink for binutils and now the compilation worked!! Thanks a lot!
Does it mean that the gcc compilation used the binutils I compiled instead of the one installed on my host?
Is it because of the --prefix argument?
Thanks a lot again!
I dont know what was wrong but at least you got it working. What lfs are you following?
LFS 7.1. Now glibc seems to not compile, printing a message like "waiting for unfinished jobs" as an error.
I'll try to recompile it without the -j4 flag.
Am I cursed or what?...
Now when I try to compile glibc I get:
Code:
In file included from ../sysdeps/unix/sysv/linux/syslog.c:10:0:
../misc/syslog.c: In function '__vsyslog_chk':
../misc/syslog.c:144:9: warning: variable 'prioff' set but not used [-Wunused-but-set-variable]
../misc/syslog.c:123:1: sorry, unimplemented: inlining failed in call to 'syslog': function body not available
../misc/syslog.c:155:9: sorry, unimplemented: called from here
make[2]: *** [/mnt/lfs/source/glibc-build/misc/syslog.o] Error 1
make[2]: Leaving directory `/mnt/lfs/source/glibc-2.14.1/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/source/glibc-2.14.1'
make: *** [all] Error 2
---------- Post added 07-21-12 at 12:48 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.