On Apr 7, 2013, at 8:11 PM, francisco martinez wrote:

> @William Harrington i see, thanks a lot william, i was looking at  
> the other one.

Your configure line:

../gcc-4.7.2/configure --target=i686-lfs-linux-gnu --prefix=/tools -- 
with-sysroot=/mnt/lfs --with-newlib --without-headers --with-local- 
prefix=/tools --with-native-system-header-dir=/tools/include --disable- 
nls --disable-shared --disable-multilib --disable-decimal-float -- 
disable-threads --disable-libmudflap --disable-libssp --disable- 
libgomp --disable-libquadmath --enable-languages=c --with-mpfr- 
include=/mnt/lfs/sources/gcc-build/../gcc-4.7.2/mpfr/src --with-mpfr- 
lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs

The book's configure line:

../gcc-4.7.2/configure --target=$LFS_TGT --prefix=/tools  --with- 
sysroot=$LFS --with-newlib --without-headers --with-local-prefix=/ 
tools --with-native-system-header-dir=/tools/include --disable-nls -- 
disable-shared --disable-multilib --disable-decimal-float --disable- 
threads --disable-libmudflap --disable-libssp --disable-libgomp -- 
disable-libquadmath--enable-languages=c --with-mpfr-include=$(pwd)/../ 
gcc-4.7.2/mpfr/src --with-mpfr-lib=$(pwd)/mpfr/src/.libs

Looks okay:

  this is what caused the error:

configure:3371: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/ 
sources/gcc-build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/ -B/tools/ 
i686-lfs-linux-gnu/lib/ -isystem /tools/i686-lfs-linux-gnu/include - 
isystem /tools/i686-lfs-linux-gnu/sys-include    -o conftest -g -O2    
conftest.c  >&5
/mnt/lfs/sources/gcc-build/./gcc/as: line 87: exec: --: invalid option
exec: usage: exec [-cl] [-a name] [command [arguments ...]]  
[redirection ...]
configure:3374: $? = 1
configure:3562: checking for suffix of object files
configure:3584: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/ 
sources/gcc-build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/ -B/tools/ 
i686-lfs-linux-gnu/lib/ -isystem /tools/i686-lfs-linux-gnu/include - 
isystem /tools/i686-lfs-linux-gnu/sys-include    -c -g -O2  conftest.c  
 >&5
/mnt/lfs/sources/gcc-build/./gcc/as: line 87: exec: --: invalid option
exec: usage: exec [-cl] [-a name] [command [arguments ...]]  
[redirection ...]
configure:3588: $? = 1

You can view this thread, but not sure where to go from there. 
http://www.mail-archive.com/lfs-support@linuxfromscratch.org/msg17752.html

SIncerely,

William Harrington
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to