linux gcc出错,编译arm-linux-gcc出错

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

在ubuntu12.04下编译arm的交叉编译工具链

执行../gcc-4.6.0/configure --target=$TARGET --prefix=$PREFIX --without-headers --enable-languages=c --disable-threads --with-newlib --disable-shared --disable-libmudflap --disable-libssp

make

make install

显示

configure: loading cache ./config.cache

configure: error: `CXXFLAGS' has changed since the previous run:

configure: former value: `'

configure: current value: `-g -O2'

configure: error: in `/home/john/code/embedded/2440/build-tools/build-boot-gcc/gcc':

configure: error: changes in the environment can compromise the build

configure: error: run `make distclean' and/or `rm ./config.cache' and start over

make[1]: *** [configure-gcc] Error 1

make[1]: Leaving directory `/home/john/code/embedded/2440/build-tools/build-boot-gcc'

make: *** [all] Error 2

但是我并不知道这个CXXFLAGS是个什么东西……

搞了半天也搞不定,也不知道是不是其他地方的问题

请各位帮帮我

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值