LinuxQuestions.org
Visit Jeremy's Blog.
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 04-07-2007, 10:36 AM   #1
slade17
LQ Newbie
 
Registered: Apr 2007
Posts: 3

Rep: Reputation: 0
problem setting up c compiler in toolchain


I just tried testing the c compiler, via the instructions in the LFS book, and it didn't work:

Code:
lfs@debian:/mnt/lfs/sources/linux-libc-headers-2.6.12.0$ cc dummy.c
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
does anyone know what went wrong? if anything, my guess would be that glibc didn't compile properly, but i don't know how to find out or fix it.
 
Old 04-07-2007, 05:15 PM   #2
Zention
Member
 
Registered: Mar 2007
Posts: 119

Rep: Reputation: 16
Yeah it cannot find the c library.

Redo the glibc install and ensure you have installed in the correct location.
 
Old 04-07-2007, 11:12 PM   #3
slade17
LQ Newbie
 
Registered: Apr 2007
Posts: 3

Original Poster
Rep: Reputation: 0
thanks. i entered the command as given in the LFS book with --prefix=/tools (which links to /mnt/lfs/tools). do you know where i should install it or what i should change when i recompile glibc?
 
Old 04-08-2007, 08:45 AM   #4
slade17
LQ Newbie
 
Registered: Apr 2007
Posts: 3

Original Poster
Rep: Reputation: 0
now when i try to compile glibc, i get the error:

Code:
checking for long double... yes
checking size of long double... configure: error: cannot compute sizeof (long double), 77
this didnt happen before.
 
Old 04-09-2007, 05:59 PM   #5
Zention
Member
 
Registered: Mar 2007
Posts: 119

Rep: Reputation: 16
You may need to back up a few steps here.

If you are building the initial toolchain then you should be doing that with your GCC on the system (or live disk). If you have gone ahead a few steps and are in the chroot then you will be doing it with the version in there.

So, you need to review where you are, and ensure you have not broken your system toolchain (if you are using a live disk though you can just reboot).
 
  


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
Adjusting toolchain problem (in temport system) ChrisScott Linux From Scratch 6 01-21-2007 09:26 AM
Python upgradation,setting compiler $PATH jared78 Linux - Newbie 9 01-20-2006 12:12 AM
LiveCD 6.12 Re-Adj Toolchain - specs file problem jlgreer1 Linux From Scratch 1 12-29-2005 12:50 PM
ARM Toolchain Problem richardji Linux - General 2 08-08-2005 10:24 PM
setting environmental variable cc to a working compiler blathen Linux - Newbie 2 10-27-2003 12:30 AM

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

All times are GMT -5. The time now is 01:03 PM.

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