LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-27-2005, 01:16 PM   #1
mlinuxk
LQ Newbie
 
Registered: May 2004
Location: North Carolina
Distribution: Fedora Core 2 1.92 V3
Posts: 18

Rep: Reputation: 0
gcc and cc do not work


../glibc-2.3.4/configure --prefix=/usr \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc

I run this under /tools/glibc-build/ and it bombs.

I get

checking for gcc... gcc
checking for suffix of object files... configure :error cannot compute suffix of object files.

I checked config.log files and it said that /tools/bin/gcc does not exist

I went to /tools/bin/ and gcc is there. I tried to execute it and "No such file or directory "

I tried ./gcc, cc but no dice. I had a link to /bin/gcc, but I removed it. IMHO I don't know. Any suggestions?
 
Old 07-27-2005, 01:22 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
What do you get for

ls -l /tools/bin/gcc

Is it a link to somewhere else? Do you have a working copy of gcc ( you need gcc to compile gcc I know its circular but true. )
 
Old 07-28-2005, 07:39 PM   #3
mlinuxk
LQ Newbie
 
Registered: May 2004
Location: North Carolina
Distribution: Fedora Core 2 1.92 V3
Posts: 18

Original Poster
Rep: Reputation: 0
The file is there and has smilely faces inside it so it is executable.

It think it had a broken link to the original gcc. I backed tracked and recompliled gcc as root, but all of the other parts were built with this gcc, so I fdisk /dev/hda and started over. I built gcc in the /gcc source file instead of the build file and something did not link just right. I reread the section where I messed up and as this is a learning endevour anyway, so as long as I learn and am still having fun it is worth it. Thank you.
 
Old 07-29-2005, 10:56 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,708
Blog Entries: 4

Rep: Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949
configure produces a config.log file that is very useful. Detailed error messages will be found there.
 
Old 07-29-2005, 10:59 AM   #5
mlinuxk
LQ Newbie
 
Registered: May 2004
Location: North Carolina
Distribution: Fedora Core 2 1.92 V3
Posts: 18

Original Poster
Rep: Reputation: 0
As many have said the instructions are sort of vague in th LFS book, but this is good because it requires you to think. I recompiled the program "Create a separate build directory again", I had been recycling the first pass build directory with bad results. Create another new build directory, recompile and it made just fine.
 
  


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
Getting gcc to work gamor Linux - Newbie 13 11-12-2004 01:31 PM
How does the gcc-java program work? vdogvictor Programming 4 06-22-2004 11:40 PM
Upgraded GCC; now many programs don't work Zoombie Linux - Software 13 02-24-2004 06:08 AM
gcc -static doesn't work ! tceast Programming 8 09-08-2003 07:15 AM
Getting gcc to work on 3.0 bf2.4 Biren Debian 4 07-21-2003 09:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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