LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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

Reply
 
Search this Thread
Old 11-28-2010, 08:33 AM   #1
Axelman0
LQ Newbie
 
Registered: May 2010
Location: Chicago
Distribution: UbuntuStudio 10.10, Arch
Posts: 10

Rep: Reputation: 0
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:

Code:
CC="gcc" /usr/bin/perl scripts/test-installation.pl /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!
 
Old 11-30-2010, 09:36 AM   #2
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 496

Rep: Reputation: 35
Quote:
Originally Posted by Axelman0 View Post
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.
 
Old 12-02-2010, 08:38 AM   #3
Axelman0
LQ Newbie
 
Registered: May 2010
Location: Chicago
Distribution: UbuntuStudio 10.10, Arch
Posts: 10

Original Poster
Rep: Reputation: 0
I'll install a 'purer' distro and see what happens
 
Old 12-16-2010, 02:26 AM   #4
Axelman0
LQ Newbie
 
Registered: May 2010
Location: Chicago
Distribution: UbuntuStudio 10.10, Arch
Posts: 10

Original Poster
Rep: Reputation: 0
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.
 
  


Reply

Tags
error, glibc, install, lfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error compiling Glibc 2.11.1 (Chapter 6.9) EricTRA Linux From Scratch 4 03-27-2013 02:41 AM
Chapter 6.9 glibc make install error FLLinux Linux From Scratch 1 07-21-2008 04:37 PM
glibc chapter 6.9 error jol123 Linux From Scratch 1 03-28-2007 04:03 PM
glibc-2.3.3 in chapter 6 error znif Linux From Scratch 11 06-28-2004 07:15 AM
Chapter 6 Glibc error in configure MasterC Linux From Scratch 6 07-17-2003 01:17 PM


All times are GMT -5. The time now is 05:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration