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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-27-2005, 01:16 PM
|
#1
|
LQ Newbie
Registered: May 2004
Location: North Carolina
Distribution: Fedora Core 2 1.92 V3
Posts: 18
Rep:
|
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?
|
|
|
07-27-2005, 01:22 PM
|
#2
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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. )
|
|
|
07-28-2005, 07:39 PM
|
#3
|
LQ Newbie
Registered: May 2004
Location: North Carolina
Distribution: Fedora Core 2 1.92 V3
Posts: 18
Original Poster
Rep:
|
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.
|
|
|
07-29-2005, 10:56 AM
|
#4
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,184
|
configure produces a config.log file that is very useful. Detailed error messages will be found there.
|
|
|
07-29-2005, 10:59 AM
|
#5
|
LQ Newbie
Registered: May 2004
Location: North Carolina
Distribution: Fedora Core 2 1.92 V3
Posts: 18
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 01:13 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|