天天看点

自己编译arm 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是个什么东西……

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

请各位帮帮我