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]

Re: combined bootstrap with --enable-gold


On Sat, Sep 19, 2009 at 12:54 AM, Ralf Wildenhues
<Ralf.Wildenhues@gmx.de> wrote:
> 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


I think you rather have --enable-stage1-languages=c,c++ instead (I
think that is the spelling of the configure option).
--enable-build-with-cxx is a different.

-- Pinski


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