LFS 7.2 - Chapter 6.7 - make headers_check fails
Hello,
I use the LFS book 7.2 and I just finished the temporary system. Now I want to use my tools for the first time, but it just doesn't work from the beginning. :cry: After make headers_check in chapter 6.7 I get Code:
root:/sources/7.2/linux-3.5.2# make headers_check What could I do now? I hope it isn't necessary to start with LFS again. |
as is part of binutils (installed in chapter 5.8). Have you checked /tools for its presence? The above error merssage looks in /tools/i686-pc-linux-gnu/bin/, but do check all the dirs in /tools.
If it isn't present you made a mistake in chapter 5 (probably chapter 5.8). I'm not sure if you can fix this without starting from scratch. |
In chapter 5.33 did you do the following commands
Code:
strip --strip-debug /tools/lib/* Code:
Take care not to use --strip-unneeded on the libraries. The static ones would be destroyed and the toolchain packages would need to be built all over again. |
Quote:
@ celticdevildog Yes, I did the stripping. How can I be sure that I didn't kill any libraries? I just copied the commands into my console. So there is no way just to build the binutils again without starting from the beginning, right? xD Desperating, this LFS stuff. I think there are some examples missing in the book which tell you how it should look like at a certain point. ;) |
Quote:
Quote:
The (binutils) assembler and linker should be installed in /tools/bin and /tools/$LFS_TGT/bin Quote:
Quote:
|
Before you stripped out the debugging files did you exit chroot and re-enter again with the chroot command given at the beginning of the chapter?
I ask because I didn't do that and had major problems after stripping the files to where I ended up building from scratch again. A decision that made me want to pull my hair out for sure. Quote:
|
Hm okay.
From the beginning for the second time.:banghead: Am I allowed to do the strip command later? I first try to execute the make_headers command before that and see what happens... |
I didn't strip them the second time since I didn't need to keep a small system. But I believe you can strip the binaries later. I'm sure someone more knowledgeable than me can give you a better answer.
|
Quote:
As long as you use the commands that are in the book you are safe. Do mind that you should not use the strip command from chapter 5 once you start working on chapter 6! Just build and decide if you need the extra space, if not don't strip. |
same but different
I seem to be having this same issue as the op with the "make headers_check" command..
Although, I was able to locate the "as" command located at "/tools/i686-pc-linux-gnu/bin/as". I have followed every command in the book with no issues until now. I have also tried googling and haven't found any solutions. It seems I have the appropriate executable in what seems to be the appropriate directory, but I still can't seem to figure this one out. Anyone?.. Quote:
|
Quote:
I would say try backing completely out of the current environment and then re-enter it. I would log out of chroot, unmount the virtual filesystems, and do again the steps to mount the virtual filesystems and re-enter the chroot environment. Along the way while doing that, double-check or redo the various steps that create directories and links. Try moving ahead again. Skip over that entire 6.3 section on package management. |
Thanks for the response.. I'll try and retrace my steps and see what gives.
|
For me restarting helped. I did a very very veeery stupid mistake.
I didn't delete the compiled sources. After installing you need to delete them and extract them again when they are needed. Because there are first and second passes of important system tools, I couldn't expect them to work at all! You always need to read and follow the book carefully... |
May I reopen the question here, please!? :-)
I am stuck in a similar situation on LFS version 7.4. Unlike the OP here, I am able to see the path /tools/i686-pc-linux-gnu/xxxxx path in my chroot environment. But I am getting the error on running make headers_check. Here is the output: root:/sources/linux-3.10.10# make headers_check CHK include/generated/uapi/linux/version.h HOSTCC scripts/basic/fixdep gcc: error trying to exec '/tools/lib/gcc/i686-pc-linux-gnu/4.8.1/../../../../i686-pc-linux-gnu/bin/as': execv: No such file or directory make[1]: *** [scripts/basic/fixdep] Error 1 make: *** [scripts_basic] Error 2 root:/sources/linux-3.10.10# When I cd to this path manually I can see 'as' there: /tools/lib/gcc/i686-pc-linux-gnu/4.8.1/../../../../i686-pc-linux-gnu/bin/as I have been diligently following the book so far. Any ideas/help is much appreciated. Thanks, Aashish |
Quote:
- You are not the OP of this thread, - This thread deals with LFS 7.2 and not 7.4 Open a new thread instead. |
Post #5 here saved the day for me!
http://www.linuxquestions.org/questi...-fails-708371/ Many Thanks!! :-) Regards, Aashish |
Quote:
Its just that I couldn't wait after having slogged thru the book for 2 days straight and getting stuck here. Besides, I felt that the basic problem was the same, so... Anyway, won't hijack a thread again. Regards, Aashish |
All times are GMT -5. The time now is 08:22 AM. |