Ch 6 re-adjusted toolchain.

Jim Gifford lfs at jg555.com
Wed Jan 19 11:44:47 PST 2005


Thad Harroun wrote:

> Greetings all,
>
> I'm working through 6.1-testing-20050109, while keeping an eye on 
> changes from 6.0.  Build host: Knoppix 3.7
>
> In the Chapter 6 Readjusting the Toolchain (6.12) the instructions 
> switch from sed (v6.0) to perl (6.1-testing) to alter the gcc specs 
> file.  The 6.0 sed scripts removes one instance of 
> /tools/lib/ld-linux.so.2 on line 48. The 6.1 perl command also removes 
> line 102, which oringinally contained "/usr/lib".
>
> Trying to compile dummy.c with 6.1-testing results in the error:
> /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: 
> cannot find -lgcc_s
>
> With 6.0 it dummy.c compiles fine, and the correct response from the 
> sanity check (ie. [Requesting program interpreter: /lib/ld-linux.so.2]).
>
> What exactly are the changes we should look for in the specs file?
>
> Furhter to this question, at this same point under 6.0, when I run
>
> gcc dummy.c -W1,--verbose 2>&1 | grep succeeded
>
> all of the called libraries are successfully opened from 
> /tools/lib/...stuff.
>
> Are these libraries the correctly linked ones?
>
> Thanks,
>
> Thad
> ----------------
> thad.harroun at nrc.gc.ca

I think the problem is the with perl sed , a lot of people are having 
some issues with it. Try this and let me know if it works for you. Use 
this instead of

perl -pi -e 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2 at g;' \
    -e 's@\*startfile_prefix_spec:\n@$_/usr/lib/@g;' \
    `gcc --print-file specs`

use this

sed -i 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2 at g' \
    `gcc --print-file specs`


-- 
------
jim at linuxfromscratch.org
lfs at jg555.com

LFS User # 2577
Registered Linux User # 299986

FWD: 275410
IPKall: 360-968-1517




More information about the lfs-support mailing list