Share your knowledge at the LQ Wiki.
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 01-06-2007, 05:32 PM   #1
LQ Newbie
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
C compiler doesn't seem to exist at 5.11


I am on chapter 5.11 and am trying to make gcc for the second time. It keeps failing after it checks to see whether the C compiler works.

checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use '--host'.
See 'config.log' for more details.
make: *** [configure-target-libstdc++-v3] Error 1
I am compiling on a 64-bit architecture. The OS I'm using is Fedora Core 4 x86_64. When I perform a test I get this:

readelf -l /tools/bin/expect | grep interpreter
     [Requesting program interpreter: /tools/lib/
Expect successfully compiled so I don't know why gcc can't. Expect also shows that it was compiled with the correct interpreter in the LFS distro.

readelf -l /bin/ls | grep interpreter
     [Requesting program interpreter: /lib64/
The ls program on Fedora Core (not compiled with lfs' gcc) shows the difference between the two interpreters. My host machine's interpreter is in the /lib64 folder.

If anyone could help me with this problem I'd be might gracious. Thanks!
Old 01-07-2007, 03:54 AM   #2
Harmaa Kettu
Registered: Apr 2005
Location: Finland
Posts: 196

Rep: Reputation: 30
Normal LFS supports only x86. For x86_64, see Cross-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
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 01:35 PM
C++ IDE+Compiler?Java IDE+compiler? Boby Linux - Software 3 05-31-2005 02:12 PM
Compiler conundrum: Which came first, a compiler, or it's source code? fr0zen Programming 21 01-29-2004 05:31 AM
No compiler to compiler the compliler NewtonIX Linux - Newbie 13 11-03-2003 06:32 AM
compile a compiler without a compiler? lackluster Linux - General 18 01-02-2003 08:55 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:43 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
Open Source Consulting | Domain Registration