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.
Do you perhaps have unusual hardware?
Normally critical errors are caught in LFS by others, so you must have done something strange, or your hardware is strange.
I don't think I have any strange hardware. My hardware is a bit old, but not strange. I have an old P4 processor, an nvidia graphics card that came with this computer when I got it, and other things like that. If that is strange then I guess I have strange hardware.
cody0416,
have you tried just starting all over again to see if the same mistake would happen at the same point in time?
I had a problem with the first pass of glibc because I omitted some commands by accident. I tried it a second time and noticed that I omitted the commands. The second time the glibc went fine.
I am not saying that you necesserily forgot any commands or had a typo but I think it is a good idea to just try to do it all over again to (almost) rule out those sources of error. (of course you can have typos or forget commands the second time around too, but you'd probably get a different error then)
I had other problems the very first time I tried it. After that, I started over and tried again. The second time through, I made it past my previous errors, but then I ran into this problem. When I couldn't figure it out, I tried starting over again to see if I had made any more mistakes. When I got back to this point, I had the same problem. I have now ran into this problem 3 times after restarting, and every time it is in the same spot. After this, I tried searching for help, but couldn't find any. I have no idea why I am getting this error.
I found the following message on the CLFS-support list from someone who, though following a different set of instructions, got the same error as you. It appears it may be an issue with the host's configuration. Have you tried using the LiveCD?
Also, you seem to be using the Development version of the book; is there a reason for that? Especially since as you said this is your first time attempting to build an LFS system, you may want to try following the Stable (6.4) version, at least initially.
Somehow, I have managed to get past this error, but then when I run make I get
Code:
make[1]: *** No rule to make target `/mnt/lfs/glibc-build/Versions.all', needed by `/mnt/lfs/glibc-build/abi-versions.h'. Stop.
I did a search, and it seems like this error usually comes up when someone uses mawk instead of gawk, but I checked this, and I appear to have gawk set up correctly. It even shows
Code:
checking for gawk... gawk
in one of the lines, and
Code:
AWK='gawk'
in config.log.
When I tried again, I got the same error I had originally. Then I tried again, and I got this error again. Now I seem to be going back and forth between these two errors, but now I can't get past this one.
Did you verify the host system requirements (Section iv)? Specifically what, is the output of
Code:
gawk --version | head -n1
if [ -e /usr/bin/awk ];
then echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`";
else echo "awk not found"; fi
It's hard to tell what is going on because you are only providing a little information; you did read section 1.5 before you started posting, didn't you?
The first problem you've encountered is not likely caused by unusual hardware. It's a problem with glibc finding one of the add-ons that was requested. config.log may have more information. The second problem is often caused by the host system not using gawk and/or having awk as a symlink to something other than the gawk binary.
cody, you're not wrong, the book does (unless specifically stated otherwise) list the *minimum* versions of the host packages needed; however, I'll ask again, have you tried using the LiveCD as host to see if you get the same errors? And, again, is there a reason you're using the Development book instead of Stable?
I don't mean to discourage you, and certainly a "bug hunting" process like this can be a great learning experience in and of itself, but it can also be frustrating, particularly for a first time LFSer. The Development book isn't generally recommended to those new to LFS since - by virtue of the name alone - it's a moving target, changing frequently, and as such less thoroughly tested and polished than the Stable, released version.
No I have not tried the live cd, and since I only have a VERY poor dial-up internet connection, I don't want to take the time to download it; especially when my internet is disconnecting every 20-30 seconds. I am using the development version of the book mostly for the learning experience, and I don't mind the frustration. But, even if I build with the stable version, I will still want to try it with this version also, so instead of building twice, I thought I would just start with this version and build once...if I can.
I also like using newer software.
I had identical problem today. I'm using Debian Lenny as host too and stable version of the book. Based on what I found at google, I tried to replace "--enable-add-ons" with "--enable-add-ons=nptl". After that glibc compiled and installed without further errors. I hope there will be no problems in future because of that change.
BTW I couldn't find version 2.8-20080929 of glibc, so I used 2.8-20090223
cody, I did some more digging on this earlier; in case Fido's solution doesn't work for you (either because he's using a more recent snapshot of glibc and/or because he's using the Stable book), see the following info from the DIY Linux Reference Build:
Quote:
`AUTOCONF=no' is used here for robustness. It simply prevents unnecessary Autoconf invocations when the Makefiles detect a `configure' file older than its respective `configure.in'. This is usually the case when working with CVS snapshots, but it also applies to release tarballs prior to glibc-2.3.5 when the issue was finally addressed. These unnecessary Autoconf invocations have been known to cause build failures on Debian hosts. An alternative approach is to run `find . -name configure | xargs touch' in the src dir before running `configure'. Note: `--without-cvs' does not address the issue.
That issue with Autoconf *might* be the problem here. You could always try that find command on a freshly extracted glibc tarball and hope it solves your second error, at least.
I had identical problem today. I'm using Debian Lenny as host too and stable version of the book. Based on what I found at google, I tried to replace "--enable-add-ons" with "--enable-add-ons=nptl". After that glibc compiled and installed without further errors. I hope there will be no problems in future because of that change.
BTW I couldn't find version 2.8-20080929 of glibc, so I used 2.8-20090223
Thank you Fido. That worked like a charm, and I am now finished with the book. I only ran into a few minor errors the rest of the way through. I had tried doing that with the first error that I got, but it didn't seem to do anything because I was still getting the same error. For some reason, once I got past that one, I never even thought of trying it again for the second error.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.