LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1350|回复: 3

帮我看看,lfs6.4第6章gmp-4.2.4 configure出错是什么原因?

[复制链接]
发表于 2009-1-18 22:10:18 | 显示全部楼层 |阅读模式
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GNU MP configure 4.2.4, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --prefix=/usr --enable-cxx --enable-mpbsd

## --------- ##
## Platform. ##
## --------- ##

hostname = chenyuan-desktop
uname -m = i686
uname -r = 2.6.27-9-generic
uname -s = Linux
uname -v = #1 SMP Thu Nov 20 21:57:00 UTC 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:1654: checking build system type
configure:1672: result: pentium4-pc-linux-gnu
configure:1680: checking host system type
configure:1694: result: pentium4-pc-linux-gnu
configure:1717: checking for a BSD-compatible install
configure:1772: result: /tools/bin/install -c
configure:1783: checking whether build environment is sane
configure:1826: result: yes
configure:1883: checking for gawk
configure:1899: found /tools/bin/gawk
configure:1909: result: gawk
configure:1919: checking whether make sets $(MAKE)
configure:1939: result: yes
configure:2105: checking whether to enable maintainer-specific portions of Makefiles
configure:2114: result: no
User:
ABI=
CC=
CFLAGS=(unset)
CPPFLAGS=(unset)
MPN_PATH=
GMP:
abilist=64 32
cclist=gcc icc cc
configure:3803: gcc 2>&1 | grep xlc >/dev/null
configure:3806: $? = 1
configure:3860: checking compiler gcc -O2 -m64
Test compile:
configure:3874: gcc -O2 -m64  conftest.c >&5
conftest.c:1: sorry, unimplemented: 64-bit mode not compiled in
configure:3877: $? = 1
failed program was:

int main () { return 0; }
configure:4900: result: no
configure:3803: gcc 2>&1 | grep xlc >/dev/null
configure:3806: $? = 1
configure:3860: checking compiler gcc -m32 -O2 -fomit-frame-pointer
Test compile:
configure:3874: gcc -m32 -O2 -fomit-frame-pointer  conftest.c >&5
configure:3877: $? = 0
configure:3882: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:3885: $? = 0
Test compile: function pointer return
configure:3928: gcc -m32 -O2 -fomit-frame-pointer  conftest.c >&5
configure:3931: $? = 0
configure:3936: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:3939: $? = 0
Test compile: cmov instruction
configure:3984: gcc -m32 -O2 -fomit-frame-pointer  conftest.c >&5
configure:3987: $? = 0
configure:3992: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:3995: $? = 0
Test compile: double -> ulong conversion
configure:4041: gcc -m32 -O2 -fomit-frame-pointer  conftest.c >&5
configure:4044: $? = 0
configure:4049: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4052: $? = 0
Test compile: double negation
configure:4096: gcc -m32 -O2 -fomit-frame-pointer  conftest.c >&5
configure:4099: $? = 0
configure:4104: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4107: $? = 0
Test compile: double -> float conversion
configure:4152: gcc -m32 -O2 -fomit-frame-pointer  conftest.c >&5
configure:4155: $? = 0
configure:4160: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4163: $? = 0
Test compile: gnupro alpha ev6 char spilling
configure:4237: gcc -m32 -O2 -fomit-frame-pointer  conftest.c >&5
configure:4240: $? = 0
configure:4245: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4248: $? = 0
Test compile: __builtin_alloca availability
configure:4288: gcc -m32 -O2 -fomit-frame-pointer  conftest.c >&5
/usr/lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
configure:4291: $? = 1
failed program was:
int k; int foo () { __builtin_alloca (k); }
Test compile: abs int -> double conversion
configure:4412: gcc -m32 -O2 -fomit-frame-pointer  conftest.c >&5
configure:4415: $? = 0
configure:4420: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4423: $? = 0
Test compile: long long reliability test 1
configure:4476: gcc -m32 -O2 -fomit-frame-pointer  conftest.c >&5
configure:4479: $? = 0
configure:4484: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4487: $? = 0
Test compile: long long reliability test 2
configure:4536: gcc -m32 -O2 -fomit-frame-pointer  conftest.c >&5
configure:4539: $? = 0
configure:4544: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4547: $? = 0
Test compile: mpn_lshift_com optimization
configure:4635: gcc -m32 -O2 -fomit-frame-pointer  conftest.c >&5
configure:4638: $? = 0
configure:4643: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4646: $? = 0
Test compile: mpn_lshift_com optimization 2
configure:4743: gcc -m32 -O2 -fomit-frame-pointer  conftest.c >&5
configure:4746: $? = 0
configure:4751: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:4754: $? = 0
Testing gcc GOT with eax emitted
configure:4802: gcc -m32 -O2 -fomit-frame-pointer  -fPIC -S conftest.c >&5 2>&1
configure:4805: $? = 0
Result: no
configure:4900: result: yes
configure: testlist sizeof-long-4
configure:5075: checking compiler gcc -m32 -O2 -fomit-frame-pointer has sizeof(long)==4
configure:5088: gcc -m32 -O2 -fomit-frame-pointer -c conftest.c >&5
configure:5091: $? = 0
configure:5096: result: yes
configure:5369: checking compiler gcc -m32 -O2 -fomit-frame-pointer  -mtune=pentium4
Test compile:
configure:5383: gcc -m32 -O2 -fomit-frame-pointer  -mtune=pentium4 conftest.c >&5
configure:5386: $? = 0
configure:5391: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5394: $? = 0
Test compile: function pointer return
configure:5437: gcc -m32 -O2 -fomit-frame-pointer  -mtune=pentium4 conftest.c >&5
configure:5440: $? = 0
configure:5445: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5448: $? = 0
Test compile: cmov instruction
configure:5493: gcc -m32 -O2 -fomit-frame-pointer  -mtune=pentium4 conftest.c >&5
configure:5496: $? = 0
configure:5501: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5504: $? = 0
Test compile: double -> ulong conversion
configure:5550: gcc -m32 -O2 -fomit-frame-pointer  -mtune=pentium4 conftest.c >&5
configure:5553: $? = 0
configure:5558: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5561: $? = 0
Test compile: double negation
configure:5605: gcc -m32 -O2 -fomit-frame-pointer  -mtune=pentium4 conftest.c >&5
configure:5608: $? = 0
configure:5613: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5616: $? = 0
Test compile: double -> float conversion
configure:5661: gcc -m32 -O2 -fomit-frame-pointer  -mtune=pentium4 conftest.c >&5
configure:5664: $? = 0
configure:5669: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5672: $? = 0
Test compile: gnupro alpha ev6 char spilling
configure:5746: gcc -m32 -O2 -fomit-frame-pointer  -mtune=pentium4 conftest.c >&5
configure:5749: $? = 0
configure:5754: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5757: $? = 0
Test compile: __builtin_alloca availability
configure:5797: gcc -m32 -O2 -fomit-frame-pointer  -mtune=pentium4 conftest.c >&5
/usr/lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
configure:5800: $? = 1
failed program was:
int k; int foo () { __builtin_alloca (k); }
Test compile: abs int -> double conversion
configure:5921: gcc -m32 -O2 -fomit-frame-pointer  -mtune=pentium4 conftest.c >&5
configure:5924: $? = 0
configure:5929: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5932: $? = 0
Test compile: long long reliability test 1
configure:5985: gcc -m32 -O2 -fomit-frame-pointer  -mtune=pentium4 conftest.c >&5
configure:5988: $? = 0
configure:5993: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5996: $? = 0
Test compile: long long reliability test 2
configure:6045: gcc -m32 -O2 -fomit-frame-pointer  -mtune=pentium4 conftest.c >&5
configure:6048: $? = 0
configure:6053: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:6056: $? = 0
Test compile: mpn_lshift_com optimization
configure:6144: gcc -m32 -O2 -fomit-frame-pointer  -mtune=pentium4 conftest.c >&5
configure:6147: $? = 0
configure:6152: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:6155: $? = 0
Test compile: mpn_lshift_com optimization 2
configure:6252: gcc -m32 -O2 -fomit-frame-pointer  -mtune=pentium4 conftest.c >&5
configure:6255: $? = 0
configure:6260: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:6263: $? = 0
Testing gcc GOT with eax emitted
configure:6311: gcc -m32 -O2 -fomit-frame-pointer  -mtune=pentium4 -fPIC -S conftest.c >&5 2>&1
configure:6314: $? = 0
Result: no
configure:6409: result: yes
configure:5177: checking whether gcc is good for sse2
configure:5183: result: yes
configure:5191: checking whether the operating system supports XMM registers
configure:5210: gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4  conftest.s -o conftest >&5
configure:5213: $? = 0
configure:5216: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
./configure: line 5217: ./a.out: No such file or directory
./configure: line 5217: ./b.out: No such file or directory
./configure: line 5217: ./a.exe: No such file or directory
./configure: line 5217: ./a_out.exe: No such file or directory
configure:5219: $? = 0
configure:5244: result: yes
configure:5369: checking compiler gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4  -march=pentium4
Test compile:
configure:5383: gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4  -march=pentium4 conftest.c >&5
configure:5386: $? = 0
configure:5391: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5394: $? = 0
Test compile: function pointer return
configure:5437: gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4  -march=pentium4 conftest.c >&5
configure:5440: $? = 0
configure:5445: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5448: $? = 0
Test compile: cmov instruction
configure:5493: gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4  -march=pentium4 conftest.c >&5
configure:5496: $? = 0
configure:5501: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5504: $? = 0
Test compile: double -> ulong conversion
configure:5550: gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4  -march=pentium4 conftest.c >&5
configure:5553: $? = 0
configure:5558: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5561: $? = 0
Test compile: double negation
configure:5605: gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4  -march=pentium4 conftest.c >&5
configure:5608: $? = 0
configure:5613: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5616: $? = 0
Test compile: double -> float conversion
configure:5661: gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4  -march=pentium4 conftest.c >&5
configure:5664: $? = 0
configure:5669: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5672: $? = 0
Test compile: gnupro alpha ev6 char spilling
configure:5746: gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4  -march=pentium4 conftest.c >&5
configure:5749: $? = 0
configure:5754: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5757: $? = 0
Test compile: __builtin_alloca availability
configure:5797: gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4  -march=pentium4 conftest.c >&5
/usr/lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
configure:5800: $? = 1
failed program was:
int k; int foo () { __builtin_alloca (k); }
Test compile: abs int -> double conversion
configure:5921: gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4  -march=pentium4 conftest.c >&5
configure:5924: $? = 0
configure:5929: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5932: $? = 0
Test compile: long long reliability test 1
configure:5985: gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4  -march=pentium4 conftest.c >&5
configure:5988: $? = 0
configure:5993: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:5996: $? = 0
Test compile: long long reliability test 2
configure:6045: gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4  -march=pentium4 conftest.c >&5
configure:6048: $? = 0
configure:6053: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:6056: $? = 0
Test compile: mpn_lshift_com optimization
configure:6144: gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4  -march=pentium4 conftest.c >&5
configure:6147: $? = 0
configure:6152: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:6155: $? = 0
Test compile: mpn_lshift_com optimization 2
configure:6252: gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4  -march=pentium4 conftest.c >&5
configure:6255: $? = 0
configure:6260: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:6263: $? = 0
Testing gcc GOT with eax emitted
configure:6311: gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4  -march=pentium4 -fPIC -S conftest.c >&5 2>&1
configure:6314: $? = 0
Result: no
configure:6409: result: yes
configure:6558: checking for gcc
configure:6584: result: gcc
configure:6828: checking for C compiler version
configure:6831: 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:6834: $? = 0
configure:6836: 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:6839: $? = 0
configure:6841: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:6844: $? = 1
configure:6867: checking for C compiler default output file name
configure:6870: gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4 -march=pentium4   conftest.c  >&5
configure:6873: $? = 0
configure:6919: result: a.out
configure:6924: checking whether the C compiler works
configure:6930: ./a.out
configure:6933: $? = 0
configure:6950: result: yes
configure:6957: checking whether we are cross compiling
configure:6959: result: no
configure:6962: checking for suffix of executables
configure:6964: gcc -o conftest -m32 -O2 -fomit-frame-pointer -mtune=pentium4 -march=pentium4   conftest.c  >&5
configure:6967: $? = 0
configure:6992: result:
configure:6998: checking for suffix of object files
configure:7019: gcc -c -m32 -O2 -fomit-frame-pointer -mtune=pentium4 -march=pentium4  conftest.c >&5
configure:7022: $? = 0
configure:7044: result: o
configure:7048: checking whether we are using the GNU C compiler
configure:7072: gcc -c -m32 -O2 -fomit-frame-pointer -mtune=pentium4 -march=pentium4  conftest.c >&5
configure:7078: $? = 0
configure:7082: test -z
                         || test ! -s conftest.err
configure:7085: $? = 0
configure:7088: test -s conftest.o
configure:7091: $? = 0
configure:7104: result: yes
configure:7110: checking whether gcc accepts -g
configure:7131: gcc -c -g  conftest.c >&5
configure:7137: $? = 0
configure:7141: test -z
                         || test ! -s conftest.err
configure:7144: $? = 0
configure:7147: test -s conftest.o
configure:7150: $? = 0
configure:7161: result: yes
configure:7178: checking for gcc option to accept ANSI C
configure:7248: gcc  -c -m32 -O2 -fomit-frame-pointer -mtune=pentium4 -march=pentium4  conftest.c >&5
configure:7254: $? = 0
configure:7258: test -z
                         || test ! -s conftest.err
configure:7261: $? = 0
configure:7264: test -s conftest.o
configure:7267: $? = 0
configure:7285: result: none needed
configure:7303: gcc -c -m32 -O2 -fomit-frame-pointer -mtune=pentium4 -march=pentium4  conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
configure:7309: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:7448: checking how to run the C preprocessor
configure:7483: gcc -E  conftest.c
configure:7489: $? = 0
configure:7521: gcc -E  conftest.c
conftest.c:15:28: error: ac_nonexistent.h: No such file or directory
configure:7527: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU MP"
| #define PACKAGE_TARNAME "gmp"
| #define PACKAGE_VERSION "4.2.4"
| #define PACKAGE_STRING "GNU MP 4.2.4"
| #define PACKAGE_BUGREPORT "gmp-bugs@swox.com"
| #define PACKAGE "gmp"
| #define VERSION "4.2.4"
| #define WANT_FFT 1
| #define HAVE_HOST_CPU_pentium4 1
| #define HAVE_SPEED_CYCLECOUNTER 2
| #define HAVE_CALLING_CONVENTIONS 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:7566: result: gcc -E
configure:7590: gcc -E  conftest.c
configure:7596: $? = 0
configure:7628: gcc -E  conftest.c
conftest.c:15:28: error: ac_nonexistent.h: No such file or directory
configure:7634: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU MP"
| #define PACKAGE_TARNAME "gmp"
| #define PACKAGE_VERSION "4.2.4"
| #define PACKAGE_STRING "GNU MP 4.2.4"
| #define PACKAGE_BUGREPORT "gmp-bugs@swox.com"
| #define PACKAGE "gmp"
| #define VERSION "4.2.4"
| #define WANT_FFT 1
| #define HAVE_HOST_CPU_pentium4 1
| #define HAVE_SPEED_CYCLECOUNTER 2
| #define HAVE_CALLING_CONVENTIONS 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:7709: gcc -c -m32 -O2 -fomit-frame-pointer -mtune=pentium4 -march=pentium4  conftest.c >&5
configure:7715: $? = 0
configure:7719: test -z
                         || test ! -s conftest.err
configure:7722: $? = 0
configure:7725: test -s conftest.o
configure:7728: $? = 0
configure:7816: checking build system compiler gcc
configure:7829: gcc conftest.c
conftest.c: In function 'main':
conftest.c:4: warning: incompatible implicit declaration of built-in function 'exit'
configure:7832: $? = 0
configure:7839: result: yes
configure:7860: checking for build system preprocessor
configure:7871: gcc -E conftest.c
# 1 "conftest.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "conftest.c"
configure:7874: $? = 0
configure:7891: result: gcc -E
configure:7898: checking for build system executable suffix
configure:7912: gcc conftest.c -o conftest.exe
conftest.c: In function 'main':
conftest.c:4: warning: incompatible implicit declaration of built-in function 'exit'
configure:7915: $? = 0
./configure: line 7917: ./conftest: No such file or directory
configure:7912: gcc conftest.c -o conftest,ff8
conftest.c: In function 'main':
conftest.c:4: warning: incompatible implicit declaration of built-in function 'exit'
configure:7915: $? = 0
./configure: line 7917: ./conftest: No such file or directory
configure:7912: gcc conftest.c -o conftest
conftest.c: In function 'main':
conftest.c:4: warning: incompatible implicit declaration of built-in function 'exit'
configure:7915: $? = 0
configure:7931: result:
configure:7937: checking whether build system compiler is ANSI
configure:7950: gcc conftest.c
conftest.c: In function 'main':
conftest.c:4: warning: incompatible implicit declaration of built-in function 'exit'
configure:7953: $? = 0
configure:7962: result: yes
configure:7972: checking for build system compiler math library
configure:7991: gcc conftest.c -lm
conftest.c: In function 'main':
conftest.c:4: warning: incompatible implicit declaration of built-in function 'exit'
conftest.c: In function 'foo':
conftest.c:10: warning: incompatible implicit declaration of built-in function 'log'
configure:7994: $? = 0
configure:8003: result: -lm
configure:8078: checking for g++
configure:8094: found /tools/bin/g++
configure:8104: result: g++
configure:8120: checking for C++ compiler version
configure:8123: 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:8126: $? = 0
configure:8128: 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:8131: $? = 0
configure:8133: g++ -V </dev/null >&5
g++: '-V' option must have argument
configure:8136: $? = 1
configure:8139: checking whether we are using the GNU C++ compiler
configure:8163: g++ -c   conftest.cc >&5
configure:8169: $? = 0
configure:8173: test -z
                         || test ! -s conftest.err
configure:8176: $? = 0
configure:8179: test -s conftest.o
configure:8182: $? = 0
configure:8195: result: yes
configure:8201: checking whether g++ accepts -g
configure:8222: g++ -c -g  conftest.cc >&5
configure:8228: $? = 0
configure:8232: test -z
                         || test ! -s conftest.err
configure:8235: $? = 0
configure:8238: test -s conftest.o
configure:8241: $? = 0
configure:8252: result: yes
configure:8294: g++ -c -g -O2  conftest.cc >&5
configure:8300: $? = 0
configure:8304: test -z
                         || test ! -s conftest.err
configure:8307: $? = 0
configure:8310: test -s conftest.o
configure:8313: $? = 0
configure:8339: g++ -c -g -O2  conftest.cc >&5
conftest.cc: In function 'int main()':
conftest.cc:19: error: 'exit' was not declared in this scope
configure:8345: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU MP"
| #define PACKAGE_TARNAME "gmp"
| #define PACKAGE_VERSION "4.2.4"
| #define PACKAGE_STRING "GNU MP 4.2.4"
| #define PACKAGE_BUGREPORT "gmp-bugs@swox.com"
| #define PACKAGE "gmp"
| #define VERSION "4.2.4"
| #define WANT_FFT 1
| #define HAVE_HOST_CPU_pentium4 1
| #define HAVE_SPEED_CYCLECOUNTER 2
| #define HAVE_CALLING_CONVENTIONS 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:8294: g++ -c -g -O2  conftest.cc >&5
conftest.cc:15: error: 'void std::exit(int)' should have been declared inside 'std'
configure:8300: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU MP"
| #define PACKAGE_TARNAME "gmp"
| #define PACKAGE_VERSION "4.2.4"
| #define PACKAGE_STRING "GNU MP 4.2.4"
| #define PACKAGE_BUGREPORT "gmp-bugs@swox.com"
| #define PACKAGE "gmp"
| #define VERSION "4.2.4"
| #define WANT_FFT 1
| #define HAVE_HOST_CPU_pentium4 1
| #define HAVE_SPEED_CYCLECOUNTER 2
| #define HAVE_CALLING_CONVENTIONS 1
| /* end confdefs.h.  */
| extern "C" void std::exit (int) throw (); using std::exit;
| #include <stdlib.h>
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:8294: g++ -c -g -O2  conftest.cc >&5
conftest.cc:15: error: 'void std::exit(int)' should have been declared inside 'std'
In file included from conftest.cc:16:
/usr/include/stdlib.h:531: error: declaration of 'void std::exit(int) throw ()' throws different exceptions
conftest.cc:15: error: from previous declaration 'void std::exit(int)'
configure:8300: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU MP"
| #define PACKAGE_TARNAME "gmp"
| #define PACKAGE_VERSION "4.2.4"
| #define PACKAGE_STRING "GNU MP 4.2.4"
| #define PACKAGE_BUGREPORT "gmp-bugs@swox.com"
| #define PACKAGE "gmp"
| #define VERSION "4.2.4"
| #define WANT_FFT 1
| #define HAVE_HOST_CPU_pentium4 1
| #define HAVE_SPEED_CYCLECOUNTER 2
| #define HAVE_CALLING_CONVENTIONS 1
| /* end confdefs.h.  */
| extern "C" void std::exit (int); using std::exit;
| #include <stdlib.h>
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:8294: g++ -c -g -O2  conftest.cc >&5
configure:8300: $? = 0
configure:8304: test -z
                         || test ! -s conftest.err
configure:8307: $? = 0
configure:8310: test -s conftest.o
configure:8313: $? = 0
configure:8339: g++ -c -g -O2  conftest.cc >&5
configure:8345: $? = 0
configure:8349: test -z
                         || test ! -s conftest.err
configure:8352: $? = 0
configure:8355: test -s conftest.o
configure:8358: $? = 0
CXXFLAGS chosen by autoconf: -g -O2
configure:8408: checking C++ compiler g++  -m32 -O2 -fomit-frame-pointer -mtune=pentium4 -march=pentium4
Test compile:
configure:8422: g++  -m32 -O2 -fomit-frame-pointer -mtune=pentium4 -march=pentium4 conftest.cc >&5
/tools/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
configure:8425: $? = 1
failed program was:

int main (void) { return 0; }
configure:8537: result: no
configure:8408: checking C++ compiler g++  -g -O2
Test compile:
configure:8422: g++  -g -O2 conftest.cc >&5
/tools/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
configure:8425: $? = 1
failed program was:

int main (void) { return 0; }
configure:8537: result: no
configure:8553: error: C++ compiler not available, see config.log for details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=pentium4-pc-linux-gnu
ac_cv_build_alias=pentium4-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_ABI_set=
ac_cv_env_ABI_value=
ac_cv_env_CC_FOR_BUILD_set=
ac_cv_env_CC_FOR_BUILD_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_CPP_FOR_BUILD_set=
ac_cv_env_CPP_FOR_BUILD_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_M4_set=
ac_cv_env_M4_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=pentium4-pc-linux-gnu
ac_cv_host_alias=pentium4-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_install='/tools/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_g=yes
ac_cv_prog_make_make_set=yes
gmp_cv_c_for_build_ansi=yes
gmp_cv_check_libm_for_build=-lm
gmp_cv_os_x86_xmm=yes
gmp_cv_prog_cpp_for_build='gcc -E'
gmp_cv_prog_exeext_for_build=

## ----------------- ##
## Output variables. ##
## ----------------- ##

ABI='32'
ACLOCAL='${SHELL} /sources/gmp-4.2.4/missing --run aclocal-1.8'
AMTAR='${SHELL} /sources/gmp-4.2.4/missing --run tar'
ANSI2KNR=''
AR=''
AS=''
ASMFLAGS=''
AUTOCONF='${SHELL} /sources/gmp-4.2.4/missing --run autoconf'
AUTOHEADER='${SHELL} /sources/gmp-4.2.4/missing --run autoheader'
AUTOMAKE='${SHELL} /sources/gmp-4.2.4/missing --run automake-1.8'
AWK='gawk'
BITS_PER_MP_LIMB=''
CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
CC='gcc'
CCAS='gcc -c'
CC_FOR_BUILD='gcc'
CFLAGS='-m32 -O2 -fomit-frame-pointer -mtune=pentium4 -march=pentium4'
CPP='gcc -E'
CPPFLAGS=''
CPP_FOR_BUILD='gcc -E'
CXX='g++'
CXXCPP=''
CXXFLAGS='-g -O2'
CYGPATH_W='echo'
DEFN_LONG_LONG_LIMB='/* #undef _LONG_LONG_LIMB */'
DEFS=''
DLLTOOL=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_STATIC_FALSE=''
ENABLE_STATIC_TRUE=''
EXEEXT=''
EXEEXT_FOR_BUILD=''
GMP_LDFLAGS=''
GMP_NAIL_BITS='0'
HAVE_CLOCK_01=''
HAVE_CPUTIME_01=''
HAVE_GETRUSAGE_01=''
HAVE_GETTIMEOFDAY_01=''
HAVE_HOST_CPU_FAMILY_power='0'
HAVE_HOST_CPU_FAMILY_powerpc='0'
HAVE_SIGACTION_01=''
HAVE_SIGALTSTACK_01=''
HAVE_SIGSTACK_01=''
HAVE_STACK_T_01=''
HAVE_SYS_RESOURCE_H_01=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBCURSES=''
LIBGMPXX_LDFLAGS=''
LIBGMP_DLL=''
LIBGMP_LDFLAGS=''
LIBM=''
LIBM_FOR_BUILD='-lm'
LIBOBJS=''
LIBREADLINE=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
M4=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /sources/gmp-4.2.4/missing --run makeinfo'
OBJDUMP=''
OBJEXT='o'
PACKAGE='gmp'
PACKAGE_BUGREPORT='gmp-bugs@swox.com'
PACKAGE_NAME='GNU MP'
PACKAGE_STRING='GNU MP 4.2.4'
PACKAGE_TARNAME='gmp'
PACKAGE_VERSION='4.2.4'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
SPEED_CYCLECOUNTER_OBJ='pentium.lo'
STRIP=''
TAL_OBJECT=''
TUNE_SQR_OBJ=''
U=''
U_FOR_BUILD=''
VERSION='4.2.4'
WANT_CXX_FALSE=''
WANT_CXX_TRUE=''
WANT_MPBSD_FALSE='#'
WANT_MPBSD_TRUE=''
WITH_READLINE_01=''
YACC=''
ac_ct_AR=''
ac_ct_AS=''
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_ct_DLLTOOL=''
ac_ct_OBJDUMP=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__leading_dot='.'
bindir='${exec_prefix}/bin'
build='pentium4-pc-linux-gnu'
build_alias=''
build_cpu='pentium4'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
gmp_srclinks=''
host='pentium4-pc-linux-gnu'
host_alias=''
host_cpu='pentium4'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/sources/gmp-4.2.4/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p -- .'
mpn_objects=''
mpn_objs_in_libgmp=''
mpn_objs_in_libmp=''
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define HAVE_CALLING_CONVENTIONS 1
#define HAVE_HOST_CPU_pentium4 1
#define HAVE_SPEED_CYCLECOUNTER 2
#define PACKAGE "gmp"
#define PACKAGE_BUGREPORT "gmp-bugs@swox.com"
#define PACKAGE_NAME "GNU MP"
#define PACKAGE_STRING "GNU MP 4.2.4"
#define PACKAGE_TARNAME "gmp"
#define PACKAGE_VERSION "4.2.4"
#define VERSION "4.2.4"
#define WANT_FFT 1
#endif
#ifdef __cplusplus
extern "C" void exit (int) throw ();

configure: exit 1
发表于 2009-1-18 22:55:41 | 显示全部楼层
/tools/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status


看看 /usr/lib/libstdc++.so 是否存在

是否做漏了6.6. Creating Essential Files and Symlinks
http://www.linuxfromscratch.org/ ... 06/createfiles.html 這一步
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-1-19 09:32:11 | 显示全部楼层
喔,谢谢,昨晚我也怀疑少做了一步,/tools/lib/下有libstdc++.so,/lib和/usr/lib下没有,看前面步骤时,没有看到这里
回复 支持 反对

使用道具 举报

发表于 2009-4-15 17:38:13 | 显示全部楼层

谢谢

谢谢,原来如此。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表