LFS 6.3 chpt 5.7 step cmd problem

Wolfgang Messingschlager w.mess at freenet.de
Sun Nov 30 12:33:05 PST 2008


Stealth wrote:
> On Sunday 30 November 2008 02:17:30 pm Herman Gerritsen wrote:
>>> gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&@g' \
>>>
>>>  > `dirname $(gcc -print-libgcc-file-name)`/specs
>>>
>>> and I get:
>>>
>>> sed: can't read /usr/lib/gcc/i486-pc-linux-gnu/4.1.2/specs: No
>>> such file or directory
>> Did you check your $PATH variable?
>> I believe the directory that is returned by "gcc
>> --print-libgcc-file-name" Should start with /mnt/lfs/...
>> It looks like you are using your hosts gcc in this case.
>> Your $PATH variable sould start with PATH=/tools/bin;
> 
> $PATH is:
> 
> PATH=/tools/bin:/bin:/usr/bin

have you issued "export PATH"?

> 
> As it is written in the book 6.3
> 
> this is where my specs file is located:
> 
> /mnt/lfs/sources/gcc-build/gcc

What is the output of

echo $PATH
which gcc

> 
> What did I do wrong?
> 




More information about the lfs-support mailing list