![]() |
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 I'd be grateful for any help here. |
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 logfileMaybe 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. |
Yes, I put all commands on different lines. The error starts with headers_check. Here's the full text of the command:
Quote:
Quote:
|
Strange, I don't know.
I should look at the Makefile. You execute the commands with sudo so it's not a permission problem. Maybe I'll have a look at the Makefile. If I do I will let you know. |
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. |
hi,
I have the same problem :( EDIT: your solution worked :) Although I have no Idea why the xt_CONNMARK.h file wasn't working (it was present) thanks, dracayr |
Quote:
|
always consult google first :)
a quick google search reveals: the file is located at Linux/include/linux/netfilter/xt_CONNMARK.h in the linux-headers archive Oh, and of course it's the file you got the error with, and it's location is in the error message too. dracayr |
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. Gerald |
Really weird, I started over and now I can't even prepare Binutils for compilation:
Code:
smoochie@smoochie-desktop:/mnt/lfs/sources/binutils-build$ sudo CC="gcc -B/usr/bin/" ../binutils-2.17/configure \ |
can you compile dummy files with gcc?
try this: Create two dummy files tot test the C and C++ compiler respectively Code:
echo "main() {}" > dummy.cCode:
gcc -v dummy.cAnd post also the content of PATH Code:
echo $PATH |
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 :-(
|
| All times are GMT -5. The time now is 02:53 PM. |