LinuxSir.cn,穿越时空的Linuxsir!

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

Binutils-2.15.94.0.2出错

[复制链接]
发表于 2005-5-13 23:08:51 | 显示全部楼层 |阅读模式
lfs@box:/mnt/lfs/sources/binutils-build$ ../binutils-2.15.94.0.2/configure --prefix=/tools --disable-nls
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... yes
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gnatbind... no
checking whether compiler driver understands Ada... (cached) no
checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
checking for bison... (cached) bison
checking for bison... (cached) bison -y
checking for gm4... (cached) m4
checking for flex... (cached) flex
checking for flex... (cached) flex
checking for makeinfo... (cached) makeinfo
checking for i686-pc-linux-gnu-ar... no
checking for ar... (cached) ar
checking for i686-pc-linux-gnu-as... no
checking for as... (cached) as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... (cached) dlltool
checking for i686-pc-linux-gnu-ld... no
checking for ld... (cached) ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... (cached) nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... (cached) windres
checking for i686-pc-linux-gnu-objcopy... no
checking for objcopy... (cached) objcopy
checking for i686-pc-linux-gnu-objdump... no
checking for objdump... (cached) objdump
checking for i686-pc-linux-gnu-ar... no
checking for ar... (cached) ar
checking for i686-pc-linux-gnu-as... no
checking for as... (cached) as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... (cached) dlltool
checking for i686-pc-linux-gnu-ld... no
checking for ld... (cached) ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... (cached) nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... (cached) windres
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... (cached) yes
creating ./config.status
creating Makefile
lfs@box:/mnt/lfs/sources/binutils-build$ make configure-host
Configuring in libiberty
configure: loading cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo
checking for perl... perl
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-ar... ar
checking for i686-pc-linux-gnu-ranlib... ranlib
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make: *** [configure-libiberty] Error 1
lfs@box:/mnt/lfs/sources/binutils-build$ ../binutils-2.15.94.0.2/configure --prefix=/tools --disable-nls
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... yes
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gnatbind... no
checking whether compiler driver understands Ada... (cached) no
checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
checking for bison... (cached) bison
checking for bison... (cached) bison -y
checking for gm4... (cached) m4
checking for flex... (cached) flex
checking for flex... (cached) flex
checking for makeinfo... (cached) makeinfo
checking for i686-pc-linux-gnu-ar... no
checking for ar... (cached) ar
checking for i686-pc-linux-gnu-as... no
checking for as... (cached) as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... (cached) dlltool
checking for i686-pc-linux-gnu-ld... no
checking for ld... (cached) ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... (cached) nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... (cached) windres
checking for i686-pc-linux-gnu-objcopy... no
checking for objcopy... (cached) objcopy
checking for i686-pc-linux-gnu-objdump... no
checking for objdump... (cached) objdump
checking for i686-pc-linux-gnu-ar... no
checking for ar... (cached) ar
checking for i686-pc-linux-gnu-as... no
checking for as... (cached) as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... (cached) dlltool
checking for i686-pc-linux-gnu-ld... no
checking for ld... (cached) ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... (cached) nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... (cached) windres
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... (cached) yes
creating ./config.status
creating Makefile
lfs@box:/mnt/lfs/sources/binutils-build$ make
Configuring in libiberty
configure: loading cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo
checking for perl... perl
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-ar... ar
checking for i686-pc-linux-gnu-ranlib... ranlib
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make: *** [configure-libiberty] Error 1
 楼主| 发表于 2005-5-13 23:10:57 | 显示全部楼层
lfs@box:/mnt/lfs/sources/binutils-build$ cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:595: checking host system type
configure:616: checking target system type
configure:634: checking build system type
configure:689: checking for a BSD compatible install
configure:742: checking whether ln works
configure:766: checking whether ln -s works
configure:1798: checking for gcc
configure:1911: checking whether the C compiler (gcc  ) works
configure:1927: gcc -o conftest    conftest.c  1>&5
configure:1953: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1958: checking whether we are using GNU C
configure:1986: checking whether gcc accepts -g
configure:2053: checking for gnatbind
configure:2118: checking whether compiler driver understands Ada
configure:2151: checking how to compare bootstrapped objects
configure:2249: checking for correct version of gmp.h
configure:2262: gcc -c -g -O2   conftest.c 1>&5
configure:2252:17: gmp.h: No such file or directory
configure: In function `main':
configure:2256: error: `choke' undeclared (first use in this function)
configure:2256: error: (Each undeclared identifier is reported only once
configure:2256: error: for each function it appears in.)
configure:2256: error: parse error before "me"
configure: failed program was:
#line 2251 "configure"
#include "confdefs.h"
#include "gmp.h"
int main() {

#if __GNU_MP_VERSION < 3
choke me
#endif

; return 0; }
configure:2775: checking for bison
configure:2810: checking for bison
configure:2845: checking for gm4
configure:2880: checking for flex
configure:2915: checking for flex
configure:2950: checking for makeinfo
configure:3596: checking for i686-pc-linux-gnu-ar
configure:3629: checking for ar
configure:3668: checking for i686-pc-linux-gnu-as
configure:3701: checking for as
configure:3740: checking for i686-pc-linux-gnu-dlltool
configure:3773: checking for dlltool
configure:3812: checking for i686-pc-linux-gnu-ld
configure:3845: checking for ld
configure:3884: checking for i686-pc-linux-gnu-nm
configure:3917: checking for nm
configure:3956: checking for i686-pc-linux-gnu-ranlib
configure:3989: checking for ranlib
configure:4028: checking for i686-pc-linux-gnu-windres
configure:4061: checking for windres
configure:4100: checking for i686-pc-linux-gnu-objcopy
configure:4133: checking for objcopy
configure:4172: checking for i686-pc-linux-gnu-objdump
configure:4205: checking for objdump
configure:4251: checking for i686-pc-linux-gnu-ar
configure:4284: checking for ar
configure:4323: checking for i686-pc-linux-gnu-as
configure:4356: checking for as
configure:4395: checking for i686-pc-linux-gnu-dlltool
configure:4428: checking for dlltool
configure:4467: checking for i686-pc-linux-gnu-ld
configure:4500: checking for ld
configure:4539: checking for i686-pc-linux-gnu-nm
configure:4572: checking for nm
configure:4611: checking for i686-pc-linux-gnu-ranlib
configure:4644: checking for ranlib
configure:4683: checking for i686-pc-linux-gnu-windres
configure:4716: checking for windres
configure:4801: checking whether to enable maintainer-specific portions of Makefiles
configure:4848: checking if symbolic links between directories work
lfs@box:/mnt/lfs/sources/binutils-build$
回复 支持 反对

使用道具 举报

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

本版积分规则

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