Error when tuning the toolchain

Simone Dalmasso simone.dalmasso at
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/' \
> `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}/*` &&

Can you help me?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the lfs-support mailing list