Jiang Long wrote:
Hello,
I am compiling GCC-4.0.1 with the following :

../gcc-4.0.1/configure --enable-tree-browser=yes
--prefix=/home/jiang/DEV/gcc-dev/trunk/install
--enable-languages=c,c++ --enable-maintainer-mode=yes


After a while I got the following errors with :


Adding multilib support to Makefile in ../../../gcc-4.0.1/libmudflap
multidirs=
with_multisubdir=
config.status: executing depfiles commands
make[1]: Entering directory `/home/jiang/DEV/gcc-dev/trunk/obj/i686-pc-linux-gnu
/libmudflap'
cd ../../../gcc-4.0.1/libmudflap && /bin/sh /home/jiang/DEV/gcc-dev/trunk/gcc-4.
0.1/missing --run aclocal-1.9 -I .. -I ../config
 cd ../../../gcc-4.0.1/libmudflap && /bin/sh /home/jiang/DEV/gcc-dev/trunk/gcc-4
.0.1/missing --run automake-1.9 --foreign cd ../../../gcc-4.0.1/libmudflap && /bin/sh /home/jiang/DEV/gcc-dev/trunk/gcc-4.
0.1/missing --run autoconf
/bin/sh ./config.status --recheck
running /bin/sh /home/jiang/DEV/gcc-dev/trunk/gcc-4.0.1/libmudflap/configure  --
cache-file=./config.cache --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --e
nable-multilib --enable-tree-browser=yes --prefix=/home/jiang/DEV/gcc-dev/trunk/
install --with-cflags=-g3 -O0 --enable-maintainer-mode=yes --with-gcc-version-tr
igger=/home/jiang/DEV/gcc-dev/trunk/gcc-4.0.1/gcc/version.c --enable-languages=c
,c++ --program-transform-name=s,y,y, --srcdir=../../../gcc-4.0.1/libmudflap --wi
th-target-subdir=i686-pc-linux-gnu CPPFLAGS= build_alias=i686-pc-linux-gnu host_
alias=i686-pc-linux-gnu  --no-create --no-recursion
configure: loading cache ./config.cache
configure: error: `target_alias' was not set in the previous run
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]: *** [config.status] Error 1
make[1]: Leaving directory `/home/jiang/DEV/gcc-dev/trunk/obj/i686-pc-linux-gnu/
libmudflap'
make: *** [all-target-libmudflap] Error 2
Any suggestions?

-Jiang


I have met the same question. My solution to this is just to remove ./config.cache in every sub-directories and try again. This solution is effective although I am not sure about it. Anyone could confirm or deny this.

I think "make distclean" should be done before ./configure if the option of configure is changed.
--
Regards, Yao

Yao Qi  <[EMAIL PROTECTED]>

Reply via email to