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 04-18-2006, 03:36 AM   #1
juras
LQ Newbie
 
Registered: Feb 2004
Distribution: LFS 6.1.1/BLFS 6.1
Posts: 6

Rep: Reputation: 0
cc dummy.c fails - chap. 6.12 of LFS 6.1.1 - please help


I was sure that I am following the book, however I must have missed something.
Please help me find a way to repair my LFS.

glibc compilation and tests were OK,
ld was installed properly, and so was (I guess) the gcc specs amendments.

search order of ld:
ld --verbose | grep SEARCH

answers:
SEARCH_DIR("/tools/i686-pc-linux-gnu/lib");SEARCH_DIR("/usr/lib");SEARCH_DIR("/lib");

and the dummy test fails:

cc dummy.c

says:

crt1.o: no such file or directory
collect2: ld returned 1 exit status

It seams like ld is trying to find crt1.o somewhere else, not in /usr/lib where it is.

From "gcc -v dummy.c" I could see that crt1.o, crti.o and crtn.o didn't have any path-prefix in the command line invoking collect2. There were several -L directives, all beginning with /tools/...

I am looking forward for your comments...
juras
 
Old 04-18-2006, 07:06 AM   #2
juras
LQ Newbie
 
Registered: Feb 2004
Distribution: LFS 6.1.1/BLFS 6.1
Posts: 6

Original Poster
Rep: Reputation: 0
I found the solution myself.
The problem was in the specs amendment (as the book says).

After invoking the perl script the specs should become:
[...]
*startfile_prefix_spec:
/usr/lib/
[...]

I was missing the trailing slash.
It was it.
Now everything works perfect!

Sorry for my bothering you.
Still, someone may make similar mistake, and my post may be useful.

Right says the FAQ: "book good - follow the book".
 
  


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
Chap 6.14. GCC-3.4.1 fails make -k check ralpha6 Linux From Scratch 5 05-17-2006 03:29 PM
make configure-host for binutils-2.16.1 fails under 7.0-cross-lfs-20051019-x86_64 Basel Linux From Scratch 2 10-24-2005 11:07 PM
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
LFS 6-1: Glibc Test Suite Fails at end with 2 errors in Chapter 6 TGWDNGHN Linux From Scratch 1 07-26-2005 12:23 PM
LFS Chap 5 - gcc first make command errors antken Linux From Scratch 3 03-17-2003 10:38 PM

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

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