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 08-02-2006, 11:16 AM   #1
tech9ic
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:

Code:
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: ld-linux.so.2, needed by /lib/libc.so.6, not found (try using -rpath or -rpath-link)
/lib/libc.so.6: undefined reference to `_rtld_global@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `__libc_enable_secure@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `__libc_stack_end@GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_rtld_global_ro@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_out_of_memory@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `___tls_get_addr@GLIBC_2.3'
/lib/libc.so.6: undefined reference to `_r_debug@GLIBC_2.0'
/lib/libc.so.6: 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:

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

Rep: Reputation: 0
Hi!

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!
 
  


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
Configure a PowerEdge 2400 with SuSE 9.1 - Step by Step ServerStorm Suse/Novell 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


All times are GMT -5. The time now is 03:37 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