" collect2: fatal error: cannot find 'ld' " after leave chroot environment
Hi everyone,
I've been trying for a few days now to build LFS 7.8 with Slackware 14.1 as host system. Yesterday I reached chapter 6.11, even configured Glibc and installed Zlib, all working fine. However, today after restarting my system I'm getting the following error (below I was trying to make linux headers again, since yesterday i did it without errors) : Code:
root:/sources/linux-4.2# make INSTALL_HDR_PATH=dest headers_install Code:
root:/sources/linux-4.2# echo 'int main(){}' > dummy.c The book says Quote:
Why I did not have this problem yesterday? Is there any further step i need to take to resume installation? Any help would be great. Thanks. |
Quote:
Your error says there is no 'a.out' file. The cc command should have dumped its output into the file dummy.log. Inspect that file for clues of what went wrong. Maybe exit from the chroot environment, ensure that all devices are mounted properly as per the book 6.2.2 and 6.2.3, then re-enter the chroot environment, being careful to type (or copy) the chroot command correctly. |
huffdad,
I inspected dummy.log and the only error message was "collect2: fatal error: cannot find 'ld'". All my attempts to configure return the same message. I left chroot and entered it again copying the commands in the book, so I think this is not the problem. I suspect the problem is something that has to do with links (since I have successfully installed the software, my system is just not finding it), but don't know what. Supposing i would like to start again the build, do i need to recompile all the chapter 5 packages? Thanks. |
Quote:
|
What has links got to do with the kernel headers?
Basically once you have reached chap 6 after a successful build of the tool chain what you do in the mhost system is irelevent, once you are in the chroot environment your LFS build knows nothing about your host system, you HAVE made a mistake in chrooting or in the tool chain. |
kcirick,
I wasn't. I followed strictly the book and the procedure didn't go well. Keith Hedger, I will try to build the packages again, because i really think the problem isn't "chrooting" (i've done it several times following the book). Thank you for your help guys. As soon as I fix this problem I'll post here (I will try to build everything again :cry:). |
All times are GMT -5. The time now is 01:15 PM. |