On Mon, Jun 8, 2020 at 6:54 AM Martin Jambor <mjam...@suse.cz> wrote:
> Hi, > > On Fri, May 15 2020, Jason Merrill via Gcc-patches wrote: > > commit f466a9f3f121f16b97071162806255fb464718f2 > > Author: Jason Merrill <ja...@redhat.com> > > Date: Fri May 15 17:15:38 2020 -0400 > > > > bootstrap: Update requirement to C++11. > > > > There was general agreement last November that we would move to > allowing > > C++11 features to be used in GCC 11; this patch implements that > direction. > > > > since this commit (gcc-11-462-g5329b59a2e1) I cannot bootstrap GCC on > gcc45.fsffrance.org compile farm machine which is an i586-linux-gnu box > where the system compiler is GCC 4.9.2 which I believe should be new > enough. Still, stage 1 fails with the errors below. > > What baffles me is that only bootstrap fails on the old machine. If I > configure with --disable-bootstrap, make finishes fine. For the record, > I configure gcc there with: > > /home/jamborm/gcc/trunk/src/configure > --prefix=/home/jamborm/gcc/trunk/inst --enable-languages=c,c++ > --enable-checking=yes --disable-libsanitizer --disable-multilib > --disable-libcilkrts --with-gmp=/opt/cfarm/gmp-latest > --with-mpfr=/opt/cfarm/mpfr-latest --with-mpc=/opt/cfarm/mpc-latest > > In my other i686 testing environment, which is a chroot with gcc 8.3.0 > as the system compiler, I can bootstrap without any issues. > > I can open a PR if you want me to. > > Thanks, > > Martin > > > g++ -std=c++11 -fno-PIE -c -g -DIN_GCC -fno-exceptions -fno-rtti > -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings > -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual > -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings > -fno-common -DHAVE_CONFIG_H -I. -I. -I/home/jamborm/gcc/trunk/src/gcc > -I/home/jamborm/gcc/trunk/src/gcc/. > -I/home/jamborm/gcc/trunk/src/gcc/../include > -I/home/jamborm/gcc/trunk/src/gcc/../libcpp/include > -I/opt/cfarm/gmp-latest/include -I/opt/cfarm/mpfr-latest/include > -I/opt/cfarm/mpc-latest/include > -I/home/jamborm/gcc/trunk/src/gcc/../libdecnumber > -I/home/jamborm/gcc/trunk/src/gcc/../libdecnumber/bid -I../libdecnumber > -I/home/jamborm/gcc/trunk/src/gcc/../libbacktrace -o i386-options.o -MT > i386-options.o -MMD -MP -MF ./.deps/i386-options.TPo > /home/jamborm/gcc/trunk/src/gcc/config/i386/i386-options.c > In file included from > /home/jamborm/gcc/trunk/src/gcc/config/i386/i386-options.c:94:0: > /home/jamborm/gcc/trunk/src/gcc/config/i386/x86-tune-costs.h:32:56: error: > uninitialized const member ‘stringop_algs::stringop_strategy::max’ > {rep_prefix_1_byte, {{-1, rep_prefix_1_byte, false}}}}; > ^ > /home/jamborm/gcc/trunk/src/gcc/config/i386/x86-tune-costs.h:32:56: > warning: missing initializer for member > ‘stringop_algs::stringop_strategy::max’ [-Wmissing-field-initializers] > Hmm, yes, this was PR 49132, fixed in GCC 5. I think we will want to work around it by removing the 'const's from stringop_strategy. Jason