This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Your config-ml.in change broke cris-axis-elf newlib multilib build
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: sje at cup dot hp dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 15 Apr 2007 00:22:11 +0200
- Subject: Your config-ml.in change broke cris-axis-elf newlib multilib build
...but thanks anyway for your work to update to a newer libtool. 8)
This is a note rather than a PR, though I will enter a PR if the
situation remains for 48h. The following happened with newlib
as of two days ago (Apr 13 04:15 CET) with gcc in a combined
tree as of 123829 but worked with 123816. I see nothing in src
that would help (only the config-ml.in change, which is
overwritten by the gcc version). I guess this would be the same
for all newlib multilib systems. To repeat, use e.g. the
simtest-howto.html instructions to build, configure with
--target=cris-elf. Beware of the overlong lines.
...
Checking multilib configuration for newlib...
mkdir -p -- cris-elf/newlib
Configuring in cris-elf/newlib
configure: creating cache ./config.cache
checking build system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking host system type... cris-axis-elf
checking for cris-elf-strip... /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/strip
checking for gcc... /tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/xgcc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/ -nostdinc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/newlib/ -isystem /tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/newlib/targ-include -isystem /tmp/hpautotest-gcc1/gcc/newlib/libc/include -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/ -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/lib/ -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/include -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/sys-include
checking dependency style of /tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/xgcc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/ -nostdinc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/newlib/ -isystem /tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/newlib/targ-include -isystem /tmp/hpautotest-gcc1/gcc/newlib/libc/include -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/ -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/lib/ -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/include -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/sys-include... gcc3
checking whether we are using GNU C... yes
checking whether /tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/xgcc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/ -nostdinc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/newlib/ -isystem /tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/newlib/targ-include -isystem /tmp/hpautotest-gcc1/gcc/newlib/libc/include -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/ -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/lib/ -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/include -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/sys-include accepts -g... no
checking for cris-elf-as... /tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/as
checking for cris-elf-ar... /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/ar
checking for cris-elf-ranlib... /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/ranlib
checking for cris-elf-readelf... cris-elf-readelf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether to enable maintainer-specific portions of Makefiles... no
checking for .preinit_array/.init_array/.fini_array support... yes
checking for array aliasing support... no
updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
Adding multilib support to Makefile in /tmp/hpautotest-gcc1/gcc/newlib
multidirs=v10
with_multisubdir=
Running configure in multilib subdirs v10
pwd: /tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/newlib
Running configure in multilib subdir v10
pwd: /tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf
configure: creating cache ./config.cache
checking build system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking host system type... cris-axis-elf
checking for cris-elf-strip... /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/strip
checking for gcc... /tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/xgcc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/ -nostdinc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/ -isystem /tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/targ-include -isystem /tmp/hpautotest-gcc1/gcc/newlib/libc/include -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/ -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/lib/ -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/include -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/sys-include -march=v10 -mbest-lib-options
checking dependency style of /tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/xgcc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/ -nostdinc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/ -isystem /tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/targ-include -isystem /tmp/hpautotest-gcc1/gcc/newlib/libc/include -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/ -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/lib/ -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/include -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/sys-include -march=v10 -mbest-lib-options... gcc3
checking whether we are using GNU C... yes
checking whether /tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/xgcc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/ -nostdinc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/ -isystem /tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/targ-include -isystem /tmp/hpautotest-gcc1/gcc/newlib/libc/include -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/ -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/lib/ -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/include -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/sys-include -march=v10 -mbest-lib-options accepts -g... no
checking for cris-elf-as... /tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/as
checking for cris-elf-ar... /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/ar
checking for cris-elf-ranlib... /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/ranlib
checking for cris-elf-readelf... cris-elf-readelf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether to enable maintainer-specific portions of Makefiles... no
checking for .preinit_array/.init_array/.fini_array support... yes
checking for array aliasing support... no
updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
Adding multilib support to Makefile in /tmp/hpautotest-gcc1/gcc/newlib
with_multisubdir=v10
config.status: creating newlib.h
config.status: executing depfiles commands
configure: configuring in libc
configure: running /bin/sh '/tmp/hpautotest-gcc1/gcc/newlib/libc/configure' --prefix=/tmp/hpautotest-gcc1/cris-elf/pre '--with-multisubdir=v10' '--with-multisrctop=' '--cache-file=./config.cache' '--enable-multilib' '--with-cross-host=x86_64-unknown-linux-gnu' '--prefix=/tmp/hpautotest-gcc1/cris-elf/pre' '--with-gnu-ld' '--with-gnu-as' '--with-newlib' '--enable-languages=c,c++,objc' '--program-transform-name=s,^,cris-elf-,' '--with-target-subdir=cris-elf' '--build=x86_64-unknown-linux-gnu' '--host=cris-elf' '--target=cris-elf' '--srcdir=/tmp/hpautotest-gcc1/gcc/newlib' 'CC=/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/xgcc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/ -nostdinc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/newlib/ -isystem /tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/newlib/targ-include -isystem /tmp/hpautotest-gcc1/gcc/newlib/libc/include -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/ -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/lib/ -isystem /tmp/hpaut!
otest-gcc1/cris-elf/pre/cris-elf/include -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/sys-include' 'CFLAGS=-O2 -g -O2 ' 'CPPFLAGS=' 'LDFLAGS=' 'build_alias=x86_64-unknown-linux-gnu' 'host_alias=cris-elf' 'target_alias=cris-elf' 'CC=/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/xgcc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/ -nostdinc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/ -isystem /tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/targ-include -isystem /tmp/hpautotest-gcc1/gcc/newlib/libc/include -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/ -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/lib/ -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/include -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/sys-include -march=v10 -mbest-lib-options' 'CXX=/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/g++ -B/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/ -nostdinc++ -L/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/libstdc++-v3/src -L/tmp/hpautotest-!
gcc1/cris-elf/gccobj/cris-elf/v10/libstdc++-v3/src/.libs -nost!
dinc -B/
tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/ -isystem /tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/targ-include -isystem /tmp/hpautotest-gcc1/gcc/newlib/libc/include -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/ -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/lib/ -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/include -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/sys-include -march=v10 -mbest-lib-options' 'F77= -march=v10 -mbest-lib-options' 'GCJ=cris-elf-gcj -nostdinc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/ -isystem /tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/targ-include -isystem /tmp/hpautotest-gcc1/gcc/newlib/libc/include -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/ -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/lib/ -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/include -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/sys-include -march=v10 -mbest-lib-options' 'GFORTRAN=cris-elf-gfortran -no!
stdinc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/ -isystem /tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/targ-include -isystem /tmp/hpautotest-gcc1/gcc/newlib/libc/include -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/ -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/lib/ -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/include -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/sys-include -march=v10 -mbest-lib-options' 'LD_LIBRARY_PATH=/tmp/hpautotest-gcc1/cris-elf/gccobj/./gmp/.libs:/tmp/hpautotest-gcc1/cris-elf/gccobj/./prev-gmp/.libs:/tmp/hpautotest-gcc1/cris-elf/gccobj/./mpfr/.libs:/tmp/hpautotest-gcc1/cris-elf/gccobj/./prev-mpfr/.libs:/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/libstdc++-v3/.libs:/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/libssp/.libs:/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc:/tmp/hpautotest-gcc1/cris-elf/gccobj/./prev-gcc' '-srcdir=/tmp/hpautotest-gcc1/gcc/newlib' --cache-file=.././config.cache --srcdir=/t!
mp/hpautotest-gcc1/gcc/newlib/libc
configure: loading cache .././config.cache
configure: error: `CC' has changed since the previous run:
configure: former value: /tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/xgcc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/ -nostdinc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/ -isystem /tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/targ-include -isystem /tmp/hpautotest-gcc1/gcc/newlib/libc/include -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/ -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/lib/ -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/include -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/sys-include -march=v10 -mbest-lib-options
configure: current value: /tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/xgcc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/ -nostdinc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/ -isystem /tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v10/newlib/targ-include -isystem /tmp/hpautotest-gcc1/gcc/newlib/libc/include -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/ -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/lib/ -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/include -isystem /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/sys-include -march=v10 -mbest-lib-options
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm .././config.cache' and start over
configure: error: /bin/sh '/tmp/hpautotest-gcc1/gcc/newlib/libc/configure' failed for libc
make[1]: *** [configure-target-newlib] Error 1
make[1]: Leaving directory `/tmp/hpautotest-gcc1/cris-elf/gccobj'
make: *** [all] Error 2
brgds, H-P