Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 08-02-2006, 11:16 AM   #1
LQ Newbie
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
cannot configure gcc. LFS step 5.4.

I'm trying to do this LFS but i got stuck on step 5.4 where it needs me to do a configure on gcc here is the error:

lfs@lfslivecd /mnt/lfs/sources/gcc-build: ../gcc-3.4.3/configure --prefix=/tools \
>     --libexecdir=/tools/lib --with-local-prefix=/tools \
>     --disable-nls --enable-shared --enable-languages=c
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
*** This configuration is not supported in the following subdirectories:
     target-libstdc++-v3 target-libf2c target-libffi target-boehm-gc target-zlib target-libjava zlib fastjar target-libobjc
    (Any other directories should still work fine.)
/tools/bin/ld: warning:, needed by /lib/, not found (try using -rpath or -rpath-link)
/lib/ undefined reference to `_rtld_global@GLIBC_PRIVATE'
/lib/ undefined reference to `__libc_enable_secure@GLIBC_PRIVATE'
/lib/ undefined reference to `__libc_stack_end@GLIBC_2.1'
/lib/ undefined reference to `_rtld_global_ro@GLIBC_PRIVATE'
/lib/ undefined reference to `_dl_out_of_memory@GLIBC_PRIVATE'
/lib/ undefined reference to `___tls_get_addr@GLIBC_2.3'
/lib/ undefined reference to `_r_debug@GLIBC_2.0'
/lib/ undefined reference to `_dl_argv@GLIBC_PRIVATE'
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
the following is the output of echo $CC:

Any help would be appreciated
Old 08-02-2006, 01:01 PM   #2
LQ Newbie
Registered: Aug 2006
Distribution: Gentoo
Posts: 1

Rep: Reputation: 0

I got the same error when I built my LFS.

In my case I was using an improper version of binutils (2.16), I downgraded to 2.15 and it went smooth...

Hope this helps.

Good luck!


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
Configure a PowerEdge 2400 with SuSE 9.1 - Step by Step ServerStorm SUSE / openSUSE 4 08-16-2007 02:30 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
LFS 6.1 step 5.7: "ld: no input file" when compiling dummy.c zonk Linux From Scratch 6 09-05-2005 01:51 AM
Step 4.4 of LFS 6.0: Setting up the Environment dimaash Linux From Scratch 2 07-17-2005 11:18 PM
Where can i get a step by step guide to configure sendmail or qmail? zatka Red Hat 6 01-22-2004 10:51 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:42 AM.

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