HI ALL,
I want to cross compile GDB to ARM platform , the configure run is fine , but it occurred error when make file,
Here is my make script,
Code:
export PATH=/tools/arm-none-linux-gnueabi/bin:$PATH
export CC=arm-none-linux-gnueabi-gcc
export CXX=arm-none-linux-gnueabi-g++
export CXX=CC
./configure \
--prefix=/root/Download/Packages/gdb-6.5/arm \
--verbose \
--host=arm-none-linux-gnueabi \
--build=i686-pc-linux-gnu \
--target=arm-none-linux-gnueabi \
make
It always return following error message when make,
Quote:
[root@localhost gdb-6.5]# make
make[1]: Entering directory `/root/Download/Packages/gdb-6.5'
Configuring in ./libiberty
configure: loading cache ./config.cache
configure: error: `CC' has changed since the previous run:
configure: former value: gcc
configure: current value: arm-none-linux-gnueabi-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-libiberty] Error 1
make[1]: Leaving directory `/root/Download/Packages/gdb-6.5'
make: *** [all] Error 2
|
Best Regards,
Ke Tao