On Mon, Jul 02, 2012 at 08:07:32AM +0800, Archie Arevalo wrote: > > > lfs:/mnt/lfs/sources/gcc-build$ cat i686-lfs-linux-gnu/libgcc/config.log > > ~/libgcc-configlog.txt > > On the host ... > > ## ----------- ## > ## Core tests. ## > ## ----------- ## > > configure:1742: creating cache ./config.cache > configure:1903: checking for --enable-version-specific-runtime-libs > configure:1916: result: no > configure:1964: checking for a BSD-compatible install > configure:2032: result: /usr/bin/install -c > configure:2048: checking for gawk > configure:2075: result: gawk > configure:2095: checking build system type > configure:2109: result: i686-pc-linux-gnu > configure:2129: checking host system type > configure:2142: result: i686-lfs-linux-gnu > configure:2245: checking for i686-lfs-linux-gnu-ar > configure:2272: result: i686-lfs-linux-gnu-ar > configure:2337: checking for i686-lfs-linux-gnu-lipo > configure:2364: result: i686-lfs-linux-gnu-lipo > configure:2429: checking for i686-lfs-linux-gnu-nm > configure:2456: result: /mnt/lfs/sources/gcc-build/./gcc/nm > configure:2521: checking for i686-lfs-linux-gnu-ranlib > configure:2548: result: i686-lfs-linux-gnu-ranlib > configure:2613: checking for i686-lfs-linux-gnu-strip > configure:2640: result: i686-lfs-linux-gnu-strip It has found the cross-binutils programs.
> configure:2702: checking whether ln -s works > configure:2706: result: yes > configure:2723: checking for i686-lfs-linux-gnu-gcc > configure:2750: result: /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 I think this means it's in the second "phase" of gcc's build (xgcc), i.e. it successfully created xgcc and is now going to use that to build everything. > configure:3019: checking for C compiler version > configure:3028: /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 --version >&5 > xgcc (GCC) 4.6.2 > Copyright (C) 2011 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > configure:3039: $? = 0 > configure:3028: /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 -v >&5 > Reading specs from /mnt/lfs/sources/gcc-build/./gcc/specs > COLLECT_GCC=/mnt/lfs/sources/gcc-build/./gcc/xgcc > COLLECT_LTO_WRAPPER=/mnt/lfs/sources/gcc-build/./gcc/lto-wrapper > Target: i686-lfs-linux-gnu > Configured with: ../gcc-4.6.2/configure --target=i686-lfs-linux-gnu -- > prefix=/tools --disable-nls --disable-shared --disable-multilib --disable- > decimal-float --disable-threads --disable-libmudflap --disable-libssp > --disable- > libgomp --disable-libquadmath --disable-target-libiberty > --disable-target-zlib > --enable-languages=c --without-ppl --without-cloog --with-mpfr- > include=/mnt/lfs/sources/gcc-build/../gcc-4.6.2/mpfr/src --with-mpfr- > lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs Looks correct > Thread model: single > gcc version 4.6.2 (GCC) > configure:3039: $? = 0 > configure:3028: /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 -V >&5 > xgcc: error: unrecognized option '-V' > xgcc: fatal error: no input files > compilation terminated. I'm surprised it doesn't say *what* it was testing for here, but the result looks ok. > configure:3039: $? = 1 > configure:3028: /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 -qversion >&5 > xgcc: error: unrecognized option '-qversion' > xgcc: fatal error: no input files > compilation terminated. > configure:3039: $? = 1 Again, ok > configure:3055: /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:3058: $? = 1 > configure:3246: checking for suffix of object files > configure:3268: /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:3272: $? = 1 Those exec: --: invalid option messages from 'as' are the problem. Looking for similar errors on google suggests that your cross-binutils is not installed correctly. I'm lacking ideas. Is your PATH /tools/bin:/bin:/usr/bin ? Is /tools a symlink to /mnt/lfs/tools ? Can you see the binutils programs in /mnt/lfs/tools/i686-lfs-linux-gnu/bin/ ? What do 'file' and 'ldd' say about the 'as' program there ? Sorry, I'm scratching around for ideas and getting nowhere. Can you run 'i686-lfs-linux-gnu-ld -V' ? It ought to say it's GNU ld and report a few lines of emulations. ( It's the same file as i686-lfs-linux-gnu-bin/ld i.e. they are hardlinks, but the plain 'ld' version is not on your PATH ) Desperate question : You're not really on x86_64 are you ? ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
