Problem building gcc
Posted: Sat Oct 06, 2012 7:50 pm
*** Sorry for my bad english, my native language is spanish ***
Hello everybody, i've been trying to build the gcc (GCC 4.0.0 / Binutils 2.20.1a) compiler but with no success. I'm using Ubuntu 9.04, i've installed GMP, MPFR, MPC, flex and Bison, but i couldn't make it work. I've followed all the steps in the tutorial - http://wiki.osdev.org/GCC_Cross-Compiler - but i can't manage this error message (i've run configure first, as far as i know, with no errors):
Hello everybody, i've been trying to build the gcc (GCC 4.0.0 / Binutils 2.20.1a) compiler but with no success. I'm using Ubuntu 9.04, i've installed GMP, MPFR, MPC, flex and Bison, but i couldn't make it work. I've followed all the steps in the tutorial - http://wiki.osdev.org/GCC_Cross-Compiler - but i can't manage this error message (i've run configure first, as far as i know, with no errors):
I want to say that i'm new on Linux, i've been programming on Windows my whole life, so maybe i'm not realizing something essential. Thank you everybody, and i hope you can help meroot@luciano-desktop:/usr/src/build-gcc/gcc-4.0.0# make all-gcc
Configuring in intl
configure: loading cache ./config.cache
configure: error: `CFLAGS' has changed since the previous run:
configure: former value: -g -O2
configure: current value: -g -O2
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
make: *** [configure-intl] Error 1
root@luciano-desktop:/usr/src/build-gcc/gcc-4.0.0# sudo make all-gcc
Configuring in intl
configure: loading cache ./config.cache
configure: error: `CFLAGS' has changed since the previous run:
configure: former value: -g -O2
configure: current value: -g -O2
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
make: *** [configure-intl] Error 1