Dear friends,
i'm trying to do the point 5.12. "GCC-4.3.2 - Pass 2"
Now, i've this error when i do the make:
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/mnt/lfs/gcc-build'
make: *** [all] Error 2
Below the config.log but i don't understand where is the problem
Could you please help me?

Thanks
PART 1
## --------- ##
## Platform. ##
## --------- ##
hostname = zenwalk
uname -m = i686
uname -r = 2.6.27.10
uname -s = Linux
uname -v = #1 SMP PREEMPT Thu Dec 18 21:57:50 CET 2008
/usr/bin/uname -p = Intel(R) Pentium(R) 4 CPU 2.93GHz
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /tools/bin
PATH: /bin
PATH: /usr/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1505: checking build system type
configure:1523: result: i686-pc-linux-gnu
configure:1558: checking host system type
configure:1572: result: i686-pc-linux-gnu
configure:1580: checking target system type
configure:1594: result: i686-pc-linux-gnu
configure:1637: checking for a BSD-compatible install
configure:1692: result: /bin/ginstall -c
configure:1703: checking whether ln works
configure:1725: result: yes
configure:1729: checking whether ln -s works
configure:1733: result: yes
configure:2885: checking for gcc
configure:2901: found /tools/bin/gcc
configure:2911: result: gcc
configure:3155: checking for C compiler version
configure:3158: gcc --version </dev/null >&5
gcc (GCC) 4.3.2
Copyright (C) 2008 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:3161: $? = 0
configure:3163: gcc -v </dev/null >&5
Reading specs from /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.3.2/specs
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.3.2/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --disable-shared --disable-libssp --enable-languages=c
Thread model: posix
gcc version 4.3.2 (GCC)
configure:3166: $? = 0
configure:3168: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:3171: $? = 1
configure:3194: checking for C compiler default output file name
configure:3197: gcc conftest.c >&5
configure:3200: $? = 0
configure:3246: result: a.out
configure:3251: checking whether the C compiler works
configure:3257: ./a.out
configure:3260: $? = 0
configure:3277: result: yes
configure:3284: checking whether we are cross compiling
configure:3286: result: no
configure:3289: checking for suffix of executables
configure:3291: gcc -o conftest conftest.c >&5
configure:3294: $? = 0
configure:3319: result:
configure:3325: checking for suffix of object files
configure:3346: gcc -c conftest.c >&5
configure:3349: $? = 0
configure:3371: result: o
configure:3375: checking whether we are using the GNU C compiler
configure:3399: gcc -c conftest.c >&5
configure:3405: $? = 0
configure:3409: test -z
|| test ! -s conftest.err
configure:3412: $? = 0
configure:3415: test -s conftest.o
configure:3418: $? = 0
configure:3431: result: yes
configure:3437: checking whether gcc accepts -g
configure:3458: gcc -c -g conftest.c >&5
configure:3464: $? = 0
configure:3468: test -z
|| test ! -s conftest.err
configure:3471: $? = 0
configure:3474: test -s conftest.o
configure:3477: $? = 0
configure:3488: result: yes
configure:3505: checking for gcc option to accept ANSI C
configure:3575: gcc -c -g -O2 conftest.c >&5
configure:3581: $? = 0
configure:3585: test -z
|| test ! -s conftest.err
configure:3588: $? = 0
configure:3591: test -s conftest.o
configure:3594: $? = 0
configure:3612: result: none needed
configure:3630: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
configure:3636: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:3821: checking for g++
configure:3837: found /usr/bin/g++
configure:3847: result: g++
configure:3863: checking for C++ compiler version
configure:3866: g++ --version </dev/null >&5
g++ (GCC) 4.2.4
Copyright (C) 2007 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:3869: $? = 0
configure:3871: g++ -v </dev/null >&5
Reading specs from /usr/lib/gcc/i486-slackware-linux/4.2.4/specs
Target: i486-slackware-linux
Configured with: ../gcc-4.2.4/configure --prefix=/usr --enable-shared --enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --with-arch=i486 --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 4.2.4
configure:3874: $? = 0
configure:3876: g++ -V </dev/null >&5
g++: '-V' option must have argument
configure:3879: $? = 1
configure:3882: checking whether we are using the GNU C++ compiler
configure:3906: g++ -c conftest.cc >&5
configure:3912: $? = 0
configure:3916: test -z
|| test ! -s conftest.err
configure:3919: $? = 0
configure:3922: test -s conftest.o
configure:3925: $? = 0
configure:3938: result: yes
configure:3944: checking whether g++ accepts -g
configure:3965: g++ -c -g conftest.cc >&5
configure:3971: $? = 0
configure:3975: test -z
|| test ! -s conftest.err
configure:3978: $? = 0
configure:3981: test -s conftest.o
configure:3984: $? = 0
configure:3995: result: yes
configure:4037: g++ -c -g -O2 conftest.cc >&5
configure:4043: $? = 0
configure:4047: test -z
|| test ! -s conftest.err
configure:4050: $? = 0
configure:4053: test -s conftest.o
configure:4056: $? = 0
configure:4082: g++ -c -g -O2 conftest.cc >&5
conftest.cc: In function 'int main()':
conftest.cc:13: error: 'exit' was not declared in this scope
configure:4088: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
| exit (42);
| ;
| return 0;
| }
configure:4037: g++ -c -g -O2 conftest.cc >&5
conftest.cc:9: error: 'void std::exit(int)' should have been declared inside 'std'
configure:4043: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| extern "C" void std::exit (int) throw (); using std::exit;
| #include <stdlib.h>
| int
| main ()
| {
| exit (42);
| ;
| return 0;
| }
configure:4037: g++ -c -g -O2 conftest.cc >&5
conftest.cc:9: error: 'void std::exit(int)' should have been declared inside 'std'
In file included from conftest.cc:10:
/usr/include/stdlib.h:531: error: declaration of 'void std::exit(int) throw ()' throws different exceptions
conftest.cc:9: error: from previous declaration 'void std::exit(int)'
configure:4043: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| extern "C" void std::exit (int); using std::exit;
| #include <stdlib.h>
| int
| main ()
| {
| exit (42);
| ;
| return 0;
| }
configure:4037: g++ -c -g -O2 conftest.cc >&5
configure:4043: $? = 0
configure:4047: test -z
|| test ! -s conftest.err
configure:4050: $? = 0
configure:4053: test -s conftest.o
configure:4056: $? = 0
configure:4082: g++ -c -g -O2 conftest.cc >&5
configure:4088: $? = 0
configure:4092: test -z
|| test ! -s conftest.err
configure:4095: $? = 0
configure:4098: test -s conftest.o
configure:4101: $? = 0
configure:4188: checking for gnatbind
configure:4215: result: no
configure:4268: checking for gnatmake
configure:4295: result: no
configure:4307: checking whether compiler driver understands Ada
configure:4330: result: no
configure:4339: checking how to compare bootstrapped objects
configure:4364: result: cmp --ignore-initial=16 $$f1 $$f2
configure:4484: checking for correct version of gmp.h
configure:4507: gcc -c -g -O2 -I/mnt/lfs/gmp/include -I/mnt/lfs/mpfr/include conftest.c >&5
configure:4513: $? = 0
configure:4517: test -z
|| test ! -s conftest.err
configure:4520: $? = 0
configure:4523: test -s conftest.o
configure:4526: $? = 0
configure:4528: result: yes
configure:4542: checking for correct version of mpfr.h
configure:4573: gcc -o conftest -g -O2 -I/mnt/lfs/gmp/include -I/mnt/lfs/mpfr/include conftest.c -L/mnt/lfs/gmp/lib -L/mnt/lfs/mpfr/lib -lmpfr -lgmp >&5
configure:4579: $? = 0
configure:4583: test -z
|| test ! -s conftest.err
configure:4586: $? = 0
configure:4589: test -s conftest
configure:4592: $? = 0
configure:4616: gcc -o conftest -g -O2 -I/mnt/lfs/gmp/include -I/mnt/lfs/mpfr/include conftest.c -L/mnt/lfs/gmp/lib -L/mnt/lfs/mpfr/lib -lmpfr -lgmp >&5
configure:4622: $? = 0
configure:4626: test -z
|| test ! -s conftest.err
configure:4629: $? = 0
configure:4632: test -s conftest
configure:4635: $? = 0
configure:4637: result: yes
configure:5971: checking for bison
configure:5987: found /usr/bin/bison
configure:5997: result: bison -y
configure:6017: checking for bison
configure:6033: found /usr/bin/bison
configure:6043: result: bison
configure:6062: checking for gm4
configure:6091: result: no
configure:6062: checking for gnum4
configure:6091: result: no
configure:6062: checking for m4
configure:6078: found /usr/bin/m4
configure:6088: result: m4
configure:6107: checking for flex
configure:6123: found /usr/bin/flex
configure:6133: result: flex
configure:6153: checking for flex
configure:6169: found /usr/bin/flex
configure:6179: result: flex
configure:6198: checking for makeinfo
configure:6214: found /usr/bin/makeinfo
configure:6224: result: makeinfo
configure:6257: checking for expect
configure:6273: found /tools/bin/expect
configure:6283: result: expect
configure:6304: checking for runtest
configure:6320: found /tools/bin/runtest
configure:6330: result: runtest
configure:6443: checking for ar
configure:6459: found /tools/bin/ar
configure:6469: result: ar
configure:6578: checking for as
configure:6594: found /tools/bin/as
configure:6604: result: as
configure:6713: checking for dlltool
configure:6742: result: no
configure:6771: checking for ld
configure:6797: result: /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.3.2/../../../../i686-pc-linux-gnu/bin/ld
configure:6983: checking for lipo
configure:7012: result: no
configure:7118: checking for nm
configure:7134: found /tools/bin/nm
configure:7144: result: nm
configure:7253: checking for ranlib
configure:7269: found /tools/bin/ranlib
configure:7279: result: ranlib
configure:7383: checking for strip
configure:7399: found /tools/bin/strip
configure:7409: result: strip
configure:7513: checking for windres
configure:7542: result: no
configure:7648: checking for windmc
configure:7677: result: no
configure:7783: checking for objcopy
configure:7799: found /tools/bin/objcopy
configure:7809: result: objcopy
configure:7918: checking for objdump
configure:7934: found /tools/bin/objdump
configure:7944: result: objdump
configure:8092: checking for cc
configure:8108: found /tools/bin/cc
configure:8118: result: cc
configure:8247: checking for c++
configure:8263: found /usr/bin/c++
configure:8273: result: c++
configure:8402: checking for gcc
configure:8418: found /tools/bin/gcc
configure:8428: result: gcc
configure:8552: checking for gcj
configure:8581: result: no
configure:8707: checking for gfortran
configure:8736: result: no
configure:8796: checking for ar
configure:8814: found /tools/i686-pc-linux-gnu/bin/ar
configure:8826: result: /tools/i686-pc-linux-gnu/bin/ar
configure:9019: checking for as
configure:9037: found /tools/i686-pc-linux-gnu/bin/as
configure:9049: result: /tools/i686-pc-linux-gnu/bin/as
configure:9242: checking for dlltool
configure:9275: result: no
configure:9387: checking for dlltool
configure:9416: result: no
configure:9465: checking for ld
configure:9483: found /tools/i686-pc-linux-gnu/bin/ld
configure:9495: result: /tools/i686-pc-linux-gnu/bin/ld
configure:9688: checking for lipo
configure:9721: result: no
configure:9833: checking for lipo
configure:9862: result: no
configure:9911: checking for nm
configure:9929: found /tools/i686-pc-linux-gnu/bin/nm
configure:9941: result: /tools/i686-pc-linux-gnu/bin/nm
configure:10134: checking for objdump
configure:10152: found /tools/i686-pc-linux-gnu/bin/objdump
configure:10164: result: /tools/i686-pc-linux-gnu/bin/objdump
configure:10357: checking for ranlib
configure:10375: found /tools/i686-pc-linux-gnu/bin/ranlib
configure:10387: result: /tools/i686-pc-linux-gnu/bin/ranlib
configure:10580: checking for strip
configure:10598: found /tools/i686-pc-linux-gnu/bin/strip
configure:10610: result: /tools/i686-pc-linux-gnu/bin/strip
configure:10803: checking for windres
configure:10836: result: no
configure:10948: checking for windres
configure:10977: result: no
configure:11026: checking for windmc
configure:11059: result: no
configure:11171: checking for windmc
configure:11200: result: no
configure:11227: checking where to find the target ar
configure:11255: result: pre-installed in /tools/i686-pc-linux-gnu/bin
configure:11269: checking where to find the target as
configure:11297: result: pre-installed in /tools/i686-pc-linux-gnu/bin
configure:11311: checking where to find the target cc
configure:11334: result: just compiled
configure:11353: checking where to find the target c++
configure:11379: result: just compiled
configure:11398: checking where to find the target c++ for libstdc++
configure:11424: result: just compiled
configure:11443: checking where to find the target dlltool
configure:11476: result: host tool
configure:11485: checking where to find the target gcc
configure:11508: result: just compiled
configure:11527: checking where to find the target gcj
configure:11563: result: host tool
configure:11572: checking where to find the target gfortran
configure:11608: result: host tool
configure:11617: checking where to find the target ld
configure:11645: result: pre-installed in /tools/i686-pc-linux-gnu/bin
configure:11659: checking where to find the target lipo
configure:11681: result: host tool
configure:11690: checking where to find the target nm
configure:11718: result: pre-installed in /tools/i686-pc-linux-gnu/bin
configure:11732: checking where to find the target objdump
configure:11760: result: pre-installed in /tools/i686-pc-linux-gnu/bin
configure:11774: checking where to find the target ranlib
configure:11802: result: pre-installed in /tools/i686-pc-linux-gnu/bin
configure:11816: checking where to find the target strip
configure:11844: result: pre-installed in /tools/i686-pc-linux-gnu/bin
configure:11858: checking where to find the target windres
configure:11891: result: host tool
configure:11900: checking where to find the target windmc
configure:11933: result: host tool
configure:11970: checking whether to enable maintainer-specific portions of Makefiles
configure:11979: result: no
configure:12012: checking whether -fkeep-inline-functions is supported
configure:12036: gcc -c -g -O2 -fkeep-inline-functions conftest.c >&5
configure:12042: $? = 0
configure:12046: test -z
|| test ! -s conftest.err
configure:12049: $? = 0
configure:12052: test -s conftest.o
configure:12055: $? = 0
configure:12057: result: yes
configure:12274: creating ./config.status