crosstool-ng make cross-toolchain 4.2.2 problem

[ERROR]    /tmp/crosstool-ng/targets/src/gcc-4.2.2/gcc/regrename.c:1646: error: 'IFCVT_ALLOW_MODIFY_TEST_IN_INSN' undeclared (first use in this function)
[ERROR]    /tmp/crosstool-ng/targets/src/gcc-4.2.2/gcc/regrename.c:1646: error: (Each undeclared identifier is reported only once
[ERROR]    /tmp/crosstool-ng/targets/src/gcc-4.2.2/gcc/regrename.c:1646: error: for each function it appears in.)
[ERROR]    make[2]: *** [regrename.o] Error 1
[ERROR]    make[1]: *** [all-gcc] Error 2
[ERROR]    Build failed in step 'Installing static core C compiler'
[ERROR]    Error happened in '/opt/crosstool-ng/lib/ct-ng-1.8.2/scripts/functions' in function 'CT_DoExecLog' (line unknown, sorry)
[ERROR]          called from '/opt/crosstool-ng/lib/ct-ng-1.8.2/scripts/build/cc/gcc.sh' at line # 274 in function 'do_cc_core'
[ERROR]          called from '/opt/crosstool-ng/lib/ct-ng-1.8.2/scripts/build/cc/gcc.sh' at line # 52 in function 'do_cc_core_pass_1'
[ERROR]          called from '/opt/crosstool-ng/lib/ct-ng-1.8.2/scripts/crosstool-NG.sh' at line # 586 in function 'main'
[ERROR]    Look at '/root/arm-unknown-linux-gnueabi/build.log' for more info on this error.
[ERROR]  (elapsed: 8:52.72)
[08:52] / make: *** [build] Error 2


1646 行开始针对的是AVR,所以选择屏蔽掉 1646--1688。

problem2:

[root@localhost crosstool-ng]# arm-unknown-linux-gnueabi-gcc -v
Using built-in specs.
Target: arm-unknown-linux-gnueabi
Configured with: /tmp/crosstool-ng/targets/src/gcc-4.2.2/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-unknown-linux-gnueabi --prefix=/root/arm-unknown-linux-gnueabi --with-sysroot=/root/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi//sys-root --enable-languages=c,c++,java --disable-multilib --with-arch=armv5t --with-tune=xscale --with-float=soft --disable-sjlj-exceptions --enable-__cxa_atexit --disable-libmudflap --enable-threads=posix --enable-target-optspace --with-local-prefix=/root/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi//sys-root --disable-nls --enable-symvers=gnu --enable-c99 --enable-long-long
Thread model: posix

gcc version 4.2.2-atmel.1.1.3.avr32linux.1

竟然多了 "atmel..1.3.avr32linux.1"

后来查看原因是因为一个patch: 300-avr32-atmel-v1.1.3.patch

#define VERSUFFIX "-atmel.1.1.3.avr32linux.1"

更改为你要的版本号。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值