当前位置: 技术问答>linux和unix
Binutils target为arm-linux时编译失败,要怎么搞?
来源: 互联网 发布时间:2016-08-30
本文导语: Binutils编译: 普通编译,一次到位: binutils配置: [root@localhost binutils-2.20]# ./configure binutils编译成功: make[4]: Leaving directory `/var/ftp/pub/build/binutils-2.20/ld' make[3]: Leaving directory `/var/ftp/pub/build/binutils-2.20/ld' make[2]: Le...
Binutils编译:
普通编译,一次到位:
binutils配置:
[root@localhost binutils-2.20]# ./configure
binutils编译成功:
make[4]: Leaving directory `/var/ftp/pub/build/binutils-2.20/ld'
make[3]: Leaving directory `/var/ftp/pub/build/binutils-2.20/ld'
make[2]: Leaving directory `/var/ftp/pub/build/binutils-2.20/ld'
make[1]: Nothing to be done for `all-target'.
make[1]: Leaving directory `/var/ftp/pub/build/binutils-2.20'
arm-linux目标代码编译:
编译配置,不能使用arm-linu,这里使用的是arm-linux:
[root@localhost binutils-2.20]# ./configure --target=arm-linux // 配置成功
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile
编译失败,怎么就编译失败了呢?:
make
cc1: warnings being treated as errors
config/tc-arm.c: In function ‘make_mapping_symbol’:
config/tc-arm.c:2489: 警告:if 语句体为空
make[4]: *** [tc-arm.o] 错误 1
make[4]: Leaving directory `/var/ftp/pub/build/binutils-2.20/gas'
make[3]: *** [all-recursive] 错误 1
make[3]: Leaving directory `/var/ftp/pub/build/binutils-2.20/gas'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/var/ftp/pub/build/binutils-2.20/gas'
make[1]: *** [all-gas] 错误 2
make[1]: Leaving directory `/var/ftp/pub/build/binutils-2.20'
make: *** [all] 错误 2
普通编译,一次到位:
binutils配置:
[root@localhost binutils-2.20]# ./configure
binutils编译成功:
make[4]: Leaving directory `/var/ftp/pub/build/binutils-2.20/ld'
make[3]: Leaving directory `/var/ftp/pub/build/binutils-2.20/ld'
make[2]: Leaving directory `/var/ftp/pub/build/binutils-2.20/ld'
make[1]: Nothing to be done for `all-target'.
make[1]: Leaving directory `/var/ftp/pub/build/binutils-2.20'
arm-linux目标代码编译:
编译配置,不能使用arm-linu,这里使用的是arm-linux:
[root@localhost binutils-2.20]# ./configure --target=arm-linux // 配置成功
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile
编译失败,怎么就编译失败了呢?:
make
cc1: warnings being treated as errors
config/tc-arm.c: In function ‘make_mapping_symbol’:
config/tc-arm.c:2489: 警告:if 语句体为空
make[4]: *** [tc-arm.o] 错误 1
make[4]: Leaving directory `/var/ftp/pub/build/binutils-2.20/gas'
make[3]: *** [all-recursive] 错误 1
make[3]: Leaving directory `/var/ftp/pub/build/binutils-2.20/gas'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/var/ftp/pub/build/binutils-2.20/gas'
make[1]: *** [all-gas] 错误 2
make[1]: Leaving directory `/var/ftp/pub/build/binutils-2.20'
make: *** [all] 错误 2
|
en ..我来接分
|
汗。。。
LZ。
你终于通过了
LZ。
你终于通过了
|
楼主啊 非3楼不可吗!!