-   Linux From Scratch (
-   -   6.7 Chapter 6.9 - Glibc Install Error (

Axelman0 11-28-2010 09:33 AM

6.7 Chapter 6.9 - Glibc Install Error
I haven't posted here in awhile, but I've been trying to do an LFS build and I'm having a bit of trouble installing Glibc (3rd pass). During compile I get the exact output stated in this thread, but if I read it right those errors shouldn't pose a problem on installation. This is my install error:


CC="gcc" /usr/bin/perl scripts/ /usr/src/glibc-build/
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../x86_64-unknown-linux-gnu/bin/ld: : No such file: No such file or directory
collect2: ld returned 1 exit status
Execution of gcc failed!

I checked for improper symbolic links as was suggested further down the error message, but couldn't find any. I'm building on Ubuntu Studio 10.10 but at this point I don't think the host system has anything to do with the build. It's a 64 bit machine and I have redone this chapter a few times so I'm pretty sure it wasn't some typo or skipped step. I did see an 'ld-audit' patch in the patch download directory, but the description said it was a security fix so I don't think it's relevant either. A search in '/tools/lib/gcc/x86_64-unknown-linux-gnu/4.5.1' for 'x86_64-unknown-linux-gnu' returned no results. There is also a '/tools/lib/gcc/x86_64-lfs-linux-gnu/ directory, should this be the one the program is looking in?. Is something pointing to the wrong directory or should there be a file called 'ld' in that directory? I greatly appreciate any help. I want to get this first build out of the way so I can do a CLFS for a really old i686 machine that I want to bring back to life!

corbis_demon 11-30-2010 10:36 AM


Originally Posted by Axelman0 (Post 4173531)
During compile I get the exact output stated in this thread, but if I read it right those errors shouldn't pose a problem on installation.

Although I didn't get any errors immediately after the base installation, I had to rebuild Glibc, and the entire system eventually, because of a regression introduced by a kernel patch I was using. I have since abandoned said patch and the new system works perfectly now. This is pertinent because I had used the patched kernel to build the kernel headers. I still use a heavily patched kernel; Con Kolivas' kernel patchset, TuxOnIce, the BFQ scheduler, the reiser4 patch, a patch for improved functionality with atop, and a couple of others. I also use the linux-libre kernel, instead of mainline. Also I now use a different kernel version from my previous build and have had to go to some measure to get things working properly. You might have gotten the same errors as I did, but even at the point you presently are, you aren't completely independent from your host system's idiosyncracies. You might be in a chroot jail, but having tried building LFS and failed more than 15-odd times on a variety of architectures, I have seen stranger things happen.

Axelman0 12-02-2010 09:38 AM

I'll install a 'purer' distro and see what happens

Axelman0 12-16-2010 03:26 AM

Well I installed arch a couple of weeks ago and I'm having a great time with it. I decided to forgo the regular LFS and jump straight into cross compiling, and it went relatively smoothly. There are a couple of relatively major typos in the stable LFS 6.7 book that don't do any harm, just require you to know a little about what you're doing. I'll post a bug report in a few days, one of the typos is an argument surrounded by a set of quotes, and the command will not work unless those quotes are replaced with parentheses and a preceding dollar sign. Jumping from the host system to the target system was somewhat a leap of faith. I ended up putting ConnocheatOS on the laptop and using that as a base system for the final stage of the build. Unfortunately I got stuck at, once again, the third pass of Glibc haha. It was a completely different problem though. I'm gonna give it a rest for now but I certainly learned alot from what I did accomplish.

Using a simpler OS did seem to eliminate the hassles of working from within Ubuntu.

All times are GMT -5. The time now is 04:39 AM.