LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 12-09-2009, 03:39 PM   #1
Linux_ftw
LQ Newbie
 
Registered: Dec 2009
Location: Florida
Distribution: Ubuntu 9.10
Posts: 2

Rep: Reputation: 0
Chapter 5 glibc configure: as and ld too old?


Hello

So far I have followed the book (LFS-Version 6.5) exactly and have had no troubles until 5.7. It says to configure glibc:

../glibc-2.10.1/configure --prefix=/tools \
--host=$LFS_TGT --build=$(../glibc-2.10.1/scripts/config.guess) \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.18 --with-headers=/tools/include \
libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes

When I type this in (well, copy-and-paste) to the terminal it gives me a couple of things:

configure: WARNING: using cross tools not prefixed with host triplet

some ways down:

checking for as... as
checking version of as... 2.20, bad
checking for ld... ld
checking version of ld... 2.20, bad

and at the end:

configure: error:
*** These critical programs are missing or too old: as ld

I have, so far, used the exact versions of each package specified in the book. The binutils version I downloaded for LFS was 2.19.1. As you can see, it's trying to use my host assembler and linker even though the second line in configure tells it to use the ones in $LFS/tools directory:

--host=$LFS_TGT --build=$(../glibc-2.10.1/scripts/config.guess)

Just to make sure the $LFS_TGT variable was set, I ran:

echo $LFS_TGT

And got:

i686-lfs-linux-gnu

I have a feeling that this is just some small thing I'm overlooking but I can't seem to figure it out.

Thanks in advance!
 
Old 12-09-2009, 08:53 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,496

Rep: Reputation: 68
Do a echo $PATH and make sure that /tools/bin is before anything else. Looks like its trying to use something from the hosts binutils instead of the one you should have just compiled. Also make sure when installing binutils that you do not do the instructions for x86_64 if your not building for that platform shown below.
Code:
 
case $(uname -m) in
  x86_64) mkdir -v /tools/lib && ln -sv lib /tools/lib64 ;;
esac
 
Old 12-10-2009, 06:16 AM   #3
Linux_ftw
LQ Newbie
 
Registered: Dec 2009
Location: Florida
Distribution: Ubuntu 9.10
Posts: 2

Original Poster
Rep: Reputation: 0
Fixed

Thanks for the quick reply exvor, I finally figured it out.

I ran the 'echo $PATH' command and everything was okay, then I noticed the owner of the config.log file was root instead of lfs for some reason (when I ran configure before, it said 'permission denied', so I was running it as sudo). After changing the owner back to lfs and running configure without 'sudo' it finally configured correctly.

The permissions in Ubuntu are wierd. Maybe I should try to build this in a different distro...
 
  


Reply


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
Yet another glibc, chapter 6.9 problem... gViscardi Linux From Scratch 4 10-25-2008 01:10 PM
glibc chapter 6.9 error jol123 Linux From Scratch 1 03-28-2007 05:03 PM
Chapter 6 glibc-2.3.1 install gabebster Linux From Scratch 14 09-24-2003 11:38 PM
Chapter 6, Glibc: configure fails while testing CPP Electrode Linux From Scratch 9 08-31-2003 03:38 PM
Chapter 6 Glibc error in configure MasterC Linux From Scratch 6 07-17-2003 02:17 PM


All times are GMT -5. The time now is 07:08 AM.

Main Menu
Advertisement
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