Another LFS newb is stuck: Linux API headers won't install
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.
Another LFS newb is stuck: Linux API headers won't install
Thank you to anyone who bothers to read this...I realize I'm not the only one with issues. I've successfully compiled GCC and now am at section 5.5 where I am told to install the linux API headers with the following commands:
make mrproper
make headers_check
make INSTALL_HDR_PATH=dest headers_install
cp -rv dest/include/* /tools/include
I executed these commands in the linux-2.6.22.5 directory, but headers_check leads to the following errors:
make[3]: *** No rule to make target `/mnt/lfs/linux-2.6.22.5/include/linux/netfilter/xt_CONNMARK.h', needed by `/mnt/lfs/linux-2.6.22.5/usr/include/linux/netfilter/xt_CONNMARK.h'. Stop.
make[2]: *** [netfilter] Error 2
make[1]: *** [linux] Error 2
make: *** [headers_install] Error 2
This is strange.
You put all the commands on different lines? (must ask)
Could you send some log?
Try running
Code:
make headers_check 2>&1 | tee logfile
That will create a file named logfile containing more info.
Maybe that'll help you and if not paste some of it in this thread.
Paste the lines beginning with the first strange entry or error.
I performed the command you recommended and here's what the logfile says:
Quote:
CHK include/linux/version.h
make[1]: `scripts/unifdef' is up to date.
make[3]: *** No rule to make target `/mnt/lfs/sources/linux-2.6.22.5/include/linux/netfilter/xt_CONNMARK.h', needed by `/mnt/lfs/sources/linux-2.6.22.5/usr/include/linux/netfilter/xt_CONNMARK.h'. Stop.
make[2]: *** [netfilter] Error 2
make[1]: *** [linux] Error 2
make: *** [headers_install] Error 2
Okay, I ran your commands too. But found no problem.
Could you maybe extract the file xt_CONNMARK.h from the archive and then try the make command again?
I guess that could do the trick because, I presume the file was accidentally deleted before.
dracayr> Oh, and of course it's the file you got the error with, and it's location is in the error message too.
No, its location is not in the error message, due to the insertion of "usr/" within the path.
make[3]: *** No rule to make target `/mnt/lfs/sources/linux-2.6.22.5/include/linux/netfilter/xt_CONNMARK.h', needed by `/mnt/lfs/sources/linux-2.6.22.5/usr/include/linux/netfilter/xt_CONNMARK.h'. Stop.
What is the arch that is not working?
Since the error message has a different path than the actual sources, it suggests that the problem is in the kernel build process or the sanitizing of the C headers.
It looks like I solved the compiler problem, but the original headers_check problem is still there. Did you mean I should delete xt_connmark.h? I did so and it didn't solve it.
No, I meant you should try to extract it from the archive where you extracted the kernel from.
But it's strange that it is there in the first place because make thinks it not judging by the errormessage.
It was already extracted with all the other files in the linux-2.6.22.5 package, so I'm not sure why that would make a difference. I'm using the LFS LiveCD using the packages included, and have read the directions in scrutinizing detail, but I still can't get past headers_check after 3 weeks of trying...
Anyone have any ideas? I'm getting kinda desperate. If the directions don't work on their own custom distro, there must be something wrong with the directions. I hope I'm not the only person who can't get past headers_check :-(
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.