On Apr 18, 2006, at 3:13 PM, Ashit Kumar wrote:
Hi,
I tried to cross compile the GCC.I first configured,make and make
install
the binutils and newlibc respectively.Then i compiled the GCC for
sparc-linux machine.It worked fine.
Then i am trying to cross-compile for the arm-none-eabi but i am
getting
the following error
Configuring in ./libiberty
configure: loading cache ./config.cache
configure: error: `target_alias' has changed since the previous run:
configure: former value: sparc-linux
configure: current value: arm-none-eabi
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
`/resources/u04130/cross_sparc_18apr/combined-arm-none-eabi-4-0-2/src'
make: *** [all] Error 2
Can anyone help me out and figure out what the problem is.
Delete your build directory between builds.
-eric