building trunk fails due to C++

Tobias Burnus burnus@net-b.de
Wed Nov 9 22:23:00 GMT 2011


Steve Kargl wrote:
> With top of tree, I'm seeing
>
> % ../gcc4x/configure --prefix=$HOME/work --enable-languages=c,fortran \
> --disable-libmudflap --disable-bootstrap
> % gmake

I think the issue is that by default the trunk is build (stage 1) by the 
system C compiler and the next stages (Stage 2 and 3) are build by the 
just-build C++ compiler. Thus, the C++ compiler supports the latest C++ 
features and also the latest options.

If one now uses --disable-bootstrap, the system C++ compiler is used to 
compile the first and last stage - but if the system C++ compiler is 
slightly older, it might not support the newest compiler flags.

I am not sure how to best solve this issues for --disable-bootstrap.

Besides bootstrapping, you could use --disable-libitm or it might also 
work to specify --disable-build-poststage1-with-cxx which also saves you 
from building the C++ compiler if you don't want it.

Tobias



More information about the Gcc-patches mailing list