https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80556
--- Comment #14 from Tristan Gingold <gingold at adacore dot com> --- On 09/05/2017 15:14, dominiq at lps dot ens.fr wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80556 > > --- Comment #13 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- >> Did you try to get gnat1 built without -static-libgcc ? > > How am I supposed to do that? I have used the same clean configure > > ../p_work/configure --prefix=/opt/gcc/gcc8p-247298p1 > --enable-languages=c,c++,lto,fortran,ada,objc,obj-c++ --with-gmp=/opt/mp-new > --with-system-zlib --enable-checking=release --with-isl=/opt/mp-new > --enable-lto --enable-plugin --with-arch=corei7 --with-cpu=corei7 > > and bootstrap for r247298 (bootstraps) and r247302 (fails). > > The bootstrap compiler is > > gcc version 8.0.0 20170425 (experimental) [trunk revision 247256] > > configured with > > ../_clean/configure --prefix=/opt/gcc/gcc8a > --enable-languages=c,c++,fortran,ada,lto --with-gmp=/opt/mp-new > --with-system-zlib --enable-checking=release --with-isl=/opt/mp-new > --enable-lto --enable-plugin You should add: --with-stage1-ldflags=-static-libstdc++ --with-boot-ldflags=-static-libstdc++ to your configure line.