Page 1 of 1

Problem building gcc

Posted: Sat Oct 06, 2012 7:50 pm
by 2cool2you
*** 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):
root@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
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 me :D

Re: Problem building gcc

Posted: Sat Oct 06, 2012 9:19 pm
by Owen
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
(do the first; the latter wouldn't apply throughout the whole GCC tree)

Re: Problem building gcc

Posted: Sun Oct 07, 2012 12:27 pm
by 2cool2you
If you're referring to 'make distclean', i've ran it serveral times (running ./configure again after that), but it didn't solve the problem. Anyway, i've repared my problem by installing Cygwin on Windows 2000. Thanks for your reply.