Error when tuning the toolchain

Simone Dalmasso simone.dalmasso at gmail.com
Mon Oct 26 06:43:29 PDT 2009


Hi list. I'm using the lfs live cd on an empty virtual machine. I'm
following the lfs book but I get an error when I try to adjust the toolchain
in the chapter 5.7.
The error is:
sudo gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&@g' \
> `dirname $(gcc -print-libgcc-file-name)`/specs
password: gcc unrecognized option "-mtune=pentiumpro"
sed: can't read (dirname /tools/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc.a):
no such file or directory
sed: can't read /specs: No such file or directory

A similar error occurs even when I type:
GCC_INCLUDEDIR=`dirname $(gcc -print-libgcc-file-name)`/include &&
find ${GCC_INCLUDEDIR}/* -maxdepth 0 -xtype d -exec rm -rvf '{}' \; &&
rm -vf `grep -l "DO NOT EDIT THIS FILE" ${GCC_INCLUDEDIR}/*` &&
unset GCC_INCLUDEDIR

Can you help me?

Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20091026/c3a0fc38/attachment.html>


More information about the lfs-support mailing list