LFS 6.4,在第6.14章GCC4.3.2,MAKE时出现ERROR
时间:2009-02-05
来源:互联网
=============================================================
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 '/sources/gcc-build'
make: *** [all] Error 2
=============================================================
以下则是config.log的内容
=============================================================
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ../gcc-4.3.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-bootstrap
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost.localdomain
uname -m = i686
uname -r = 2.6.27.5-117.fc10.i686
uname -s = Linux
uname -v = #1 SMP Tue Nov 18 12:19:59 EST 2008
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /bin
PATH: /usr/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /tools/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: /tools/bin/install -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 /tools/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 --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-bootstrap
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 /tools/bin/g++
configure:3847: result: g++
configure:3863: checking for C++ compiler version
configure:3866: g++ --version </dev/null >&5
g++ (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:3869: $? = 0
configure:3871: g++ -v </dev/null >&5
Reading specs from /tools/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 --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-bootstrap
Thread model: posix
gcc version 4.3.2 (GCC)
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 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 conftest.c -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 conftest.c -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:6000: result: no
configure:5971: checking for byacc
configure:6000: result: no
configure:5971: checking for yacc
configure:6000: result: no
configure:6017: checking for bison
configure:6046: result: no
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 /tools/bin/m4
configure:6088: result: m4
configure:6107: checking for flex
configure:6136: result: no
configure:6107: checking for lex
configure:6136: result: no
configure:6153: checking for flex
configure:6182: result: no
configure:6198: checking for makeinfo
configure:6214: found /tools/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 /usr/bin/ar
configure:6469: result: ar
configure:6578: checking for as
configure:6594: found /usr/bin/as
configure:6604: result: as
configure:6713: checking for dlltool
configure:6742: result: no
configure:6771: checking for ld
configure:6797: result: /tools/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 /usr/bin/nm
configure:7144: result: nm
configure:7253: checking for ranlib
configure:7269: found /usr/bin/ranlib
configure:7279: result: ranlib
configure:7383: checking for strip
configure:7399: found /usr/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 /usr/bin/objcopy
configure:7809: result: objcopy
configure:7918: checking for objdump
configure:7934: found /usr/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 /tools/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:8829: result: no
configure:8941: checking for ar
configure:8957: found /usr/bin/ar
configure:8967: result: ar
configure:9019: checking for as
configure:9052: result: no
configure:9164: checking for as
configure:9180: found /usr/bin/as
configure:9190: result: 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:9498: result: no
configure:9610: checking for ld
configure:9626: found /usr/bin/ld
configure:9636: result: 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:9944: result: no
configure:10056: checking for nm
configure:10072: found /usr/bin/nm
configure:10082: result: nm
configure:10134: checking for objdump
configure:10167: result: no
configure:10279: checking for objdump
configure:10295: found /usr/bin/objdump
configure:10305: result: objdump
configure:10357: checking for ranlib
configure:10390: result: no
configure:10502: checking for ranlib
configure:10518: found /usr/bin/ranlib
configure:10528: result: ranlib
configure:10580: checking for strip
configure:10613: result: no
configure:10725: checking for strip
configure:10741: found /usr/bin/strip
configure:10751: result: 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:11260: result: host tool
configure:11269: checking where to find the target as
configure:11302: result: host tool
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:11650: result: host tool
configure:11659: checking where to find the target lipo
configure:11681: result: host tool
configure:11690: checking where to find the target nm
configure:11723: result: host tool
configure:11732: checking where to find the target objdump
configure:11765: result: host tool
configure:11774: checking where to find the target ranlib
configure:11807: result: host tool
configure:11816: checking where to find the target strip
configure:11849: result: host tool
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
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by config.status, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status
on localhost.localdomain
config.status:762: creating Makefile
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=
ac_cv_env_AS_value=
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GCJ_FOR_TARGET_set=
ac_cv_env_GCJ_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=
ac_cv_env_NM_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=
ac_cv_env_STRIP_value=
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_install='/tools/bin/install -c'
ac_cv_prog_AR=ar
ac_cv_prog_AR_FOR_TARGET=ar
ac_cv_prog_AS=as
ac_cv_prog_AS_FOR_TARGET=as
ac_cv_prog_CC_FOR_TARGET=cc
ac_cv_prog_CXX_FOR_TARGET=c++
ac_cv_prog_EXPECT=expect
ac_cv_prog_GCC_FOR_TARGET=gcc
ac_cv_prog_LD=/tools/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../../i686-pc-linux-gnu/bin/ld
ac_cv_prog_LD_FOR_TARGET=ld
ac_cv_prog_M4=m4
ac_cv_prog_MAKEINFO=makeinfo
ac_cv_prog_NM=nm
ac_cv_prog_NM_FOR_TARGET=nm
ac_cv_prog_OBJCOPY=objcopy
ac_cv_prog_OBJDUMP=objdump
ac_cv_prog_OBJDUMP_FOR_TARGET=objdump
ac_cv_prog_RANLIB=ranlib
ac_cv_prog_RANLIB_FOR_TARGET=ranlib
ac_cv_prog_RUNTEST=runtest
ac_cv_prog_STRIP=strip
ac_cv_prog_STRIP_FOR_TARGET=strip
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_GNATBIND=no
ac_cv_prog_ac_ct_GNATMAKE=no
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_g=yes
ac_cv_target=i686-pc-linux-gnu
ac_cv_target_alias=i686-pc-linux-gnu
acx_cv_cc_gcc_supports_ada=no
acx_cv_prog_LN=ln
gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
gcc_cv_tool_dirs=/usr/libexec/gcc/i686-pc-linux-gnu/4.3.2:/usr/libexec/gcc/i686-pc-linux-gnu:/usr/lib/gcc/i686-pc-linux-gnu/4.3.2:/usr/lib/gcc/i686-pc-linux-gnu:/usr/i686-pc-linux-gnu/bin/i686-pc-linux-gnu/4.3.2:/usr/i686-pc-linux-gnu/bin:
gcc_cv_tool_prefix=/usr
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR='ar'
AR_FOR_BUILD='$(AR)'
AR_FOR_TARGET='$(AR)'
AS='as'
AS_FOR_BUILD='$(AS)'
AS_FOR_TARGET='$(AS)'
BISON='/sources/gcc-4.3.2/missing bison'
CC='gcc'
CC_FOR_BUILD='$(CC)'
CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
CFLAGS='-g -O2'
CFLAGS_FOR_BUILD='-g -O2'
COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX='g++'
CXXFLAGS='-g -O2'
CXXFLAGS_FOR_BUILD='-g -O2'
CXX_FOR_BUILD='$(CXX)'
CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" '
DLLTOOL='dlltool'
DLLTOOL_FOR_BUILD='$(DLLTOOL)'
DLLTOOL_FOR_TARGET='$(DLLTOOL)'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXPECT='expect'
FLAGS_FOR_TARGET=' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
FLEX='/sources/gcc-4.3.2/missing flex'
GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
GCJ_FOR_BUILD='$(GCJ)'
GCJ_FOR_TARGET='$(GCJ)'
GDB_TK=''
GFORTRAN_FOR_BUILD='$(GFORTRAN)'
GFORTRAN_FOR_TARGET='$(GFORTRAN)'
GNATBIND='no'
GNATMAKE='no'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD='/tools/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../../i686-pc-linux-gnu/bin/ld'
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LD_FOR_BUILD='$(LD)'
LD_FOR_TARGET='$(LD)'
LEX='/sources/gcc-4.3.2/missing flex'
LIBOBJS=''
LIBS=''
LIPO='lipo'
LIPO_FOR_TARGET='$(LIPO)'
LN='ln'
LN_S='ln -s'
LTLIBOBJS=''
M4='m4'
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='makeinfo'
NM='nm'
NM_FOR_BUILD='$(NM)'
NM_FOR_TARGET='$(NM)'
OBJCOPY='objcopy'
OBJDUMP='objdump'
OBJDUMP_FOR_TARGET='$(OBJDUMP)'
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB='ranlib'
RANLIB_FOR_BUILD='$(RANLIB)'
RANLIB_FOR_TARGET='$(RANLIB)'
RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
RPATH_ENVVAR='LD_LIBRARY_PATH'
RUNTEST='runtest'
SHELL='/bin/sh'
STRIP='strip'
STRIP_FOR_TARGET='$(STRIP)'
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='../gcc-4.3.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --disable-bootstrap'
WINDMC='windmc'
WINDMC_FOR_BUILD='$(WINDMC)'
WINDMC_FOR_TARGET='$(WINDMC)'
WINDRES='windres'
WINDRES_FOR_BUILD='$(WINDRES)'
WINDRES_FOR_TARGET='$(WINDRES)'
YACC='/sources/gcc-4.3.2/missing bison -y'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_ct_GNATBIND='no'
ac_ct_GNATMAKE='no'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_configargs='--cache-file=../config.cache '--prefix=/usr' '--libexecdir=/usr/lib' '--enable-shared' '--enable-threads=posix' '--enable-__cxa_atexit' '--enable-clocale=gnu' '--disable-bootstrap' '--enable-languages=c,c++' --program-transform-name='s,y,y,''
build_configdirs=' libiberty fixincludes'
build_cpu='i686'
build_libsubdir='build-i686-pc-linux-gnu'
build_noncanonical='i686-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-i686-pc-linux-gnu'
build_tooldir='${exec_prefix}/i686-pc-linux-gnu'
build_vendor='pc'
config_shell='/bin/sh'
configdirs=' intl libiberty libcpp libdecnumber fixincludes gcc'
datadir='${prefix}/share'
datarootdir='${prefix}/share'
do_compare='cmp --ignore-initial=16 $$f1 $$f2'
docdir='${datarootdir}/doc'
exec_prefix='${prefix}'
gmpinc=''
gmplibs='-lmpfr -lgmp'
host='i686-pc-linux-gnu'
host_alias=''
host_configargs='--cache-file=./config.cache '--prefix=/usr' '--libexecdir=/usr/lib' '--enable-shared' '--enable-threads=posix' '--enable-__cxa_atexit' '--enable-clocale=gnu' '--disable-bootstrap' '--enable-languages=c,c++' --program-transform-name='s,y,y,''
host_cpu='i686'
host_noncanonical='i686-pc-linux-gnu'
host_os='linux-gnu'
host_subdir='.'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='/usr/lib'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,y,y,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags='-g -fkeep-inline-functions'
stage1_checking='--enable-checking=yes,types'
stage1_languages='c'
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_configargs='--cache-file=./config.cache --enable-multilib '--prefix=/usr' '--libexecdir=/usr/lib' '--enable-shared' '--enable-threads=posix' '--enable-__cxa_atexit' '--enable-clocale=gnu' '--disable-bootstrap' '--enable-languages=c,c++' --program-transform-name='s,y,y,''
target_cpu='i686'
target_noncanonical='i686-pc-linux-gnu'
target_os='linux-gnu'
target_subdir='i686-pc-linux-gnu'
target_vendor='pc'
tooldir='${exec_prefix}/i686-pc-linux-gnu'
## ------------- ##
## Output files. ##
## ------------- ##
alphaieee_frag='/dev/null'
host_makefile_frag='../gcc-4.3.2/config/mh-x86omitfp'
ospace_frag='/dev/null'
serialization_dependencies='serdep.tmp'
target_makefile_frag='../gcc-4.3.2/config/mt-gnu'
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#endif
#ifdef __cplusplus
extern "C" void exit (int) throw ();
configure: exit 0
./configure --prefix=/usr \
--libexecdir=/usr/lib --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-clocale=gnu --enable-languages=c,c++ \
--disable-bootstrap
=============================================================
懇请前辈救救小弟,谢谢。
作者: shinjiyano 发布时间: 2009-02-05
是我的讯息不够完整吗?
作者: shinjiyano 发布时间: 2009-02-06
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
configure:3636: $? = 1
configure: failed program was:
| #ifndef __cplusplus #cplusplus=c++,看起来和c++有关
| choke me
| #endif
楼主继续google这方面的信息吧
作者: marffin 发布时间: 2009-02-08
是否能有更详细的解决之道?
作者: shinjiyano 发布时间: 2009-02-09
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2605: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
此讯息是否有用?
作者: shinjiyano 发布时间: 2009-02-09
在Binutil-2.18"make check"时FAIL相当多
=== binutils Summary ===
#of expected passes 3
#of unexpected failures 32
#of unresolved testcased 1
#of untested testcases 4
可是不管如何尝试再装binutils,都是此结果
请问有解吗
作者: shinjiyano 发布时间: 2009-02-11
1.下载 gmp 和 mpfr 压缩包 , 在 binutils 之前编译
gmp 压缩包缺省配置configure 然后make , make install 这样会吧 gmp 库安装到 /usr/local 下的include和lib
2. mpfr 配置,注意指定 gmp 的安装路径
3. 设置环境变量 export LD_LIBRARY_PATH=/usr/local/lib
4. 编译binutils
5. gcc ,注意指定mpfr 和gmp的位置。这样就不会出现,什么suffix的问题了。
在之后的编译过程中,也许到某一步要 unset LD_LIBRARY_PATH ,整个过程可以继续进行。
作者: arthur.hawkings 发布时间: 2009-02-15
谢谢,谢谢!
作者: summer_liuwei 发布时间: 2009-10-09
具体原因不明
作者: qweyzh 发布时间: 2009-10-11
作者: qweyzh
在此说说小菜的方法,本人把binutils,glibc以及gcc都重新编译1遍,问题就解决了
具体原因不明 |
请问是按lfs原来的顺序重新编译吗?
作者: summer_liuwei 发布时间: 2009-10-12
我的方法是把gcc文件夹以及gcc-build文件夹删掉,重新解压后再编译的
作者: qweyzh 发布时间: 2009-10-13
我现在使用clfss的svn版(是64位那个),可以编译到完成工具部分即交叉编译部分。
作者: zswlb9999 发布时间: 2009-10-13
作者: zswlb9999
很可能是你使用的是64为宿主机系统。据前辈介绍。lfs 6.4不能用于64位。为此,我折腾了10多天。编译无数次。
我现在使用clfss的svn版(是64位那个),可以编译到完成工具部分即交叉编译部分。 |
config.log和error提示与楼主完全相同,试过好多方法依然无果。
摸索等待中...
作者: summer_liuwei 发布时间: 2009-10-14
作者: qweyzh
就是如果你在遇到这个错误的时候,已经编译了第2遍GCC,就只要重新做这第2遍就好了,其他同样如此。
我的方法是把gcc文件夹以及gcc-build文件夹删掉,重新解压后再编译的 |
这里是gcc pass3。删掉重新编译也不行,还是相同的问题。我从第六章重新做起,到section6.14还是这个问题过不去。
作者: summer_liuwei 发布时间: 2009-10-18
作者: cqcya 发布时间: 2009-10-23
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28