This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

combined bootstrap with --enable-gold


Bootstrapping a combined tree with --enable-gold but without
--enable-build-with-cxx fails when building gold in stage 2:

make[5]: Entering directory `/tmp/combined/build-maint/gold'
source='../../src/gold/archive.cc' object='archive.o' libtool=no \
        DEPDIR=.deps depmode=none /bin/sh ../../src/gold/../depcomp \
        /tmp/combined/build-maint/./prev-gcc/g++ -B/tmp/combined/build-maint/./prev-gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -I/tmp/combined/build-maint/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/tmp/combined/build-maint/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/tmp/combined/build-maint/../src/libstdc++-v3/libsupc++ -L/tmp/combined/build-maint/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -DHAVE_CONFIG_H -I. -I../../src/gold  -I../../src/gold -I../../src/gold/../include -I../../src/gold/../elfcpp -DLOCALEDIR="\"/usr/local/share/locale\"" -DBINDIR="\"/usr/local/bin\"" -DTOOLBINDIR="\"/usr/local/x86_64-unknown-linux-gnu/bin\""   -W -Wall   -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=archive.o -g -O2 -gtoggle -c -o archive.o ../../src/gold/archive.cc
../../src/gold/../depcomp: line 611: /tmp/combined/build-maint/./prev-gcc/g++: No such file or directory
../../src/gold/../depcomp: line 611: exec: /tmp/combined/build-maint/./prev-gcc/g++: cannot execute: No such file or directory
make[5]: *** [archive.o] Error 126
make[5]: Leaving directory `/tmp/combined/build-maint/gold'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/tmp/combined/build-maint/gold'
make[3]: *** [all] Error 2


I think the most sensible solution would be to ask for
--enable-build-with-cxx in that case, no?

OK to apply to GCC and src?

I ensured that adding --enable-build-with-cxx allows this tree to
bootstrap (well, except for the comparison failure described in the mail
to gcc@); further, that a combined tree can be bootstrapped without
--enable-gold or with the gold directory removed, and that a combined
tree without --enable-build-with-cxx can be built with --enable-gold but
also --disable-bootstrap, all on x86_64-unknown-linux-gnu.

Thanks,
Ralf

Require --enable-build-with-cxx with --enable-gold in combined bootstrap.

ChangeLog:
2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	* configure.ac: If bootstrapping a combined tree with
	--enable-gold, require --enable-build-with-cxx.
	* configure: Regenerate.

diff --git a/configure.ac b/configure.ac
index 61de320..716d611 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2472,6 +2472,14 @@ case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
     ;;
 esac
 
+case "$ENABLE_GOLD:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap: $configdirs " in
+  no:*) ;;
+  *:yes:yes:*) ;;
+  *:*:yes:*\ gold\ *)
+    AC_MSG_ERROR([in a combined tree, bootstrapping with --enable-gold requires --enable-build-with-cxx])
+    ;;
+esac
+
 # Adjust the toplevel makefile according to whether bootstrap was selected.
 case $enable_bootstrap in
   yes)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]