https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125598

            Bug ID: 125598
           Summary: Comparing stages 2 and 3 with
                    -with-build-config=bootstrap-O3
           Product: gcc
           Version: 16.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dilyan.palauzov at aegee dot org
  Target Milestone: ---

Compling gcc 16.1 using ld.bfd 2.46.50.20260603 and gcc 15.1.0 with:

export CONFIG_SITE=a
mkdir -p build && cd build && ../configure --enable-threads=posix
--enable-host-shared --enable-nls --disable-multilib --enable-interpreter
--with-system-zlib --enable-languages=c,c++,go,lto,jit,rust
--enable-targets=all --with-system-unwind --without-x
--with-linker-hash-style=gnu --enable-shared --with-build-config=bootstrap-O3
&> ../c-out && make -l2 && make -l2 install && make -l2 distclean && cd .. &&
rmdir build

fails when comparing stages 2 and 3 (first make output, then ./configure
output):
-------------
make output (last lines before failure)

make[2]: Entering directory '/src/gcc-16.1.0/build'
make[3]: Entering directory '/src/gcc-16.1.0/build'
rm -f stage_current
make[3]: Leaving directory '/src/gcc-16.1.0/build'
Comparing stages 2 and 3
Bootstrap comparison failure!
gcc/ipa-modref-tree.o differs
gcc/recog.o differs
gcc/loop-unroll.o differs
gcc/tree-ssa-loop-niter.o differs
gcc/fold-const.o differs
gcc/prime-paths.o differs
gcc/tree-nested.o differs
gcc/varpool.o differs
gcc/tree-tailcall.o differs
gcc/path-coverage.o differs
gcc/btfout.o differs
gcc/tree-ssa-strlen.o differs
gcc/tree-ssa-threadedge.o differs
gcc/bb-reorder.o differs
gcc/gimple-crc-optimization.o differs
gcc/tree-ssa-alias.o differs
gcc/dwarf2cfi.o differs
gcc/tree-affine.o differs
gcc/double-int.o differs
gcc/omp-oacc-kernels-decompose.o differs
gcc/generic-match-8.o differs
gcc/ubsan.o differs
gcc/omp-low.o differs
gcc/tree-ssa-loop-ivopts.o differs
gcc/tree-outof-ssa.o differs
gcc/cfgrtl.o differs
gcc/tree-cfgcleanup.o differs
gcc/substring-locations.o differs
gcc/tree-ssa-reassoc.o differs
gcc/var-tracking.o differs
gcc/rtlanal.o differs
gcc/ipa-inline.o differs
gcc/lra.o differs
gcc/simplify-rtx.o differs
gcc/tree-eh.o differs
gcc/options-save.o differs
gcc/late-combine.o differs
gcc/range-op-float.o differs
gcc/fold-const-call.o differs
gcc/timevar.o differs
gcc/dwarf2out.o differs
gcc/gcov.o differs
gcc/cp/constraint.o differs
gcc/cp/decl.o differs
gcc/cp/typeck.o differs
gcc/cp/name-lookup.o differs
gcc/cp/search.o differs
gcc/cp/coroutines.o differs
gcc/cp/module.o differs
gcc/cp/contracts.o differs
gcc/cp/semantics.o differs
gcc/cp/rtti.o differs
gcc/cp/logic.o differs
gcc/cp/lambda.o differs
gcc/cp/reflect.o differs
gcc/cp/parser.o differs
gcc/cp/constexpr.o differs
gcc/cp/pt.o differs
gcc/cp/mapper-resolver.o differs
gcc/alias.o differs
gcc/haifa-sched.o differs
gcc/gtype-desc.o differs
gcc/tree-into-ssa.o differs
gcc/gimple-pretty-print.o differs
gcc/final.o differs
gcc/gimple-loop-jam.o differs
gcc/tree-cfg.o differs
gcc/graphite-scop-detection.o differs
gcc/cfgloop.o differs
gcc/optabs.o differs
gcc/tree-ssa-phiopt.o differs
gcc/ipa-cp.o differs
gcc/ipa-param-manipulation.o differs
gcc/tree-loop-distribution.o differs
gcc/asan.o differs
gcc/tree-vect-generic.o differs
gcc/optabs-tree.o differs
gcc/ipa.o differs
gcc/ipa-prop.o differs
gcc/cfganal.o differs
gcc/lto/lto-common.o differs
gcc/lto/lto-partition.o differs
gcc/ipa-icf.o differs
gcc/tree-ssa-pre.o differs
gcc/ipa-free-lang-data.o differs
gcc/omp-oacc-neuter-broadcast.o differs
gcc/ipa-comdats.o differs
gcc/build/vec.o differs
gcc/build/genmatch.o differs
gcc/tree-vectorizer.o differs
gcc/json.o differs
gcc/fwprop.o differs
gcc/go/go-gcc.o differs
gcc/go/import-archive.o differs
gcc/go/parse.o differs
gcc/go/export.o differs
gcc/go/escape.o differs
gcc/go/embed.o differs
gcc/go/gogo.o differs
gcc/go/expressions.o differs
gcc/go/types.o differs
gcc/omp-expand.o differs
gcc/predict.o differs
gcc/internal-fn.o differs
gcc/rtl-ssa/accesses.o differs
gcc/ipa-utils.o differs
gcc/lto-streamer-out.o differs
gcc/c-family/c-gimplify.o differs
gcc/c-family/c-common.o differs
gcc/c-family/c-attribs.o differs
gcc/c-family/c-indentation.o differs
gcc/function.o differs
gcc/expr.o differs
gcc/gimple-range-phi.o differs
gcc/pair-fusion.o differs
gcc/tree-vect-slp.o differs
gcc/sym-exec/sym-exec-state.o differs
gcc/lto-ltrans-cache.o differs
gcc/ipa-devirt.o differs
gcc/tree-ssa-loop-im.o differs
gcc/tree-ssa-loop-unswitch.o differs
gcc/gimple-ssa-warn-access.o differs
gcc/gimple-ssa-strength-reduction.o differs
gcc/tree-parloops.o differs
gcc/tree-ssa.o differs
gcc/tree-data-ref.o differs
gcc/passes.o differs
gcc/analyzer/ranges.o differs
gcc/analyzer/region-model-reachability.o differs
gcc/analyzer/ana-state-to-diagnostic-state.o differs
gcc/analyzer/trimmed-graph.o differs
gcc/analyzer/state-purge.o differs
gcc/analyzer/constraint-manager.o differs
gcc/analyzer/program-point.o differs
gcc/analyzer/infinite-loop.o differs
gcc/analyzer/call-summary.o differs
gcc/analyzer/region-model.o differs
gcc/analyzer/store.o differs
gcc/analyzer/known-function-manager.o differs
gcc/analyzer/engine.o differs
gcc/analyzer/ops.o differs
gcc/analyzer/diagnostic-manager.o differs
gcc/analyzer/program-state.o differs
gcc/graphviz.o differs
gcc/expmed.o differs
gcc/tree.o differs
gcc/input.o differs
gcc/value-prof.o differs
gcc/ipa-sra.o differs
gcc/jit/dummy-frontend.o differs
gcc/jit/jit-builtins.o differs
gcc/gimple-low.o differs
gcc/c/c-parser.o differs
gcc/c/c-decl.o differs
gcc/c/c-typeck.o differs
gcc/c/gimple-parser.o differs
gcc/lto-cgraph.o differs
gcc/collect-utils.o differs
gcc/ipa-icf-gimple.o differs
gcc/cfgexpand.o differs
gcc/gimple-expr.o differs
gcc/tree-inline.o differs
gcc/cse.o differs
gcc/value-range-storage.o differs
gcc/emit-rtl.o differs
gcc/targhooks.o differs
gcc/tree-vect-stmts.o differs
gcc/gimple-ssa-isolate-paths.o differs
gcc/graphite.o differs
gcc/rust/rust-parse-impl-macro.o differs
gcc/rust/rust-ast-lower-base.o differs
gcc/rust/rust-unsafe-checker.o differs
gcc/rust/rust-parse-impl-lexer.o differs
gcc/rust/rust-tyty-subst.o differs
gcc/rust/rust-ast-visitor.o differs
gcc/rust/rust-late-name-resolver-2.0.o differs
gcc/rust/rust-ast-lower-type.o differs
gcc/rust/rust-cfg-strip.o differs
gcc/rust/rust-macro-builtins-asm.o differs
gcc/rust/rust-macro-substitute-ctx.o differs
gcc/rust/rust-session-manager.o differs
gcc/rust/rust-forever-stack.o differs
gcc/rust/rust-parse.o differs
gcc/rust/rust-ast-pointer-visitor.o differs
gcc/rust/rust-import-archive.o differs
gcc/rust/rust-hir-dot-operator.o differs
gcc/rust/rust-type-util.o differs
gcc/rust/rust-hir-type-check-struct.o differs
gcc/rust/rust-tyty-variance-analysis.o differs
gcc/rust/rust-typecheck-context.o differs
gcc/rust/rust-macro-builtins.o differs
gcc/rust/rust-bir-builder-expr-stmt.o differs
gcc/rust/rust-lex.o differs
gcc/rust/rust-hir-type-check-path.o differs
gcc/rust/rust-hir-visitor.o differs
gcc/rust/rust-macro-expand.o differs
gcc/rust/rust-pattern.o differs
gcc/rust/rust-hir-path.o differs
gcc/rust/rust-derive-copy.o differs
gcc/rust/rust-borrow-checker-diagnostics.o differs
gcc/rust/rust-ast.o differs
gcc/rust/rust-hir-type-check-expr.o differs
gcc/rust/rust-hir.o differs
gcc/rust/rust-early-name-resolver-2.0.o differs
gcc/rust/rust-constexpr.o differs
gcc/rust/rust-punycode.o differs
gcc/rust/rust-mangle-v0.o differs
gcc/rust/rust-ast-lower-expr.o differs
gcc/rust/rust-builtin-attribute-checker.o differs
gcc/rust/rust-hir-trait-resolve.o differs
gcc/rust/rust-desugar-try-block.o differs
gcc/rust/rust-ast-lower.o differs
gcc/rust/rust-tyty.o differs
gcc/rust/rust-derive.o differs
gcc/rust/rust-expand-visitor.o differs
gcc/rust/rust-compile-base.o differs
gcc/rust/rust-hir-pattern-analysis.o differs
gcc/rust/rust-default-resolver.o differs
gcc/tree-vect-loop.o differs
gcc/varasm.o differs
gcc/profile.o differs
gcc/tree-ssa-uninit.o differs
gcc/gimple-ssa-pta-constraints.o differs
gcc/auto-profile.o differs
gcc/diagnostics/source-printing.o differs
gcc/diagnostics/sarif-sink.o differs
gcc/diagnostics/paths-output.o differs
gcc/diagnostics/context.o differs
gcc/hwint.o differs
gcc/tree-profile.o differs
gcc/symtab.o differs
gcc/dse.o differs
gcc/mcf.o differs
gcc/godump.o differs
gcc/tree-switch-conversion.o differs
gcc/gimplify.o differs
gcc/bitmap.o differs
gcc/fixed-value.o differs
libcody/packet.o differs
make[2]: *** [Makefile:28329: compare] Error 1
make[2]: Leaving directory '/src/gcc-16.1.0/build'
make[1]: *** [Makefile:28309: stage3-bubble] Error 2
make[1]: Leaving directory '/src/gcc-16.1.0/build'
make: *** [Makefile:1140: all] Error 2
-------------
./configure output

checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libphobos support... yes
checking for libgcobol support... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ISO C99... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada and is recent enough... no
checking for ga68... no
checking for gdc... gdc
checking whether the D compiler works... no
checking for cargo... cargo
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1
$$f2
checking for objdir... .libs
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... yes
checking for the correct version of the gmp/mpfr libraries... yes
checking for the correct version of the mpc libraries... yes
checking for isl 0.15 or later... yes
checking whether to enable libgdiagnostics... no
checking for library containing dlopen... none required
checking for library containing pthread_create... none required
The following languages will be built: c,c++,go,jit,lto,rust
*** This configuration is not supported in the following subdirectories:
     zlib gnattools target-libada target-libga68 target-libgcobol
target-libphobos target-zlib target-libgfortran target-libgm2 target-libobjc
    (Any other directories should still work fine.)
checking for default BUILD_CONFIG... bootstrap-O3
checking for --enable-vtable-verify... no
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... expect
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for dsymutil... dsymutil
checking for ld... (cached)
/usr/local/lib/gcc/x86_64-pc-linux-gnu/15.1.0/../../../../x86_64-pc-linux-gnu/bin/ld
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking for objcopy... objcopy
checking for objdump... objdump
checking for otool... no
checking for readelf... readelf
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/local/bin/grep
checking for egrep... /usr/local/bin/grep -E
checking for clang... no
checking for llvm-config... llvm-config
checking for -plugin option... --plugin
/usr/local/libexec/gcc/x86_64-pc-linux-gnu/15.1.0/liblto_plugin.so
checking for cc... cc
checking for c++... c++
checking for gcc... gcc
checking for gfortran... gfortran
checking for ga68... no
checking for gccgo... gccgo
checking for gdc... gdc
checking for gm2... gm2
checking for ar... /usr/local/x86_64-pc-linux-gnu/bin/ar
checking for as... /usr/local/x86_64-pc-linux-gnu/bin/as
checking for dlltool... no
checking for dlltool... no
checking for dsymutil... no
checking for dsymutil... dsymutil
checking for ld... /usr/local/x86_64-pc-linux-gnu/bin/ld
checking for lipo... no
checking for lipo... no
checking for nm... /usr/local/x86_64-pc-linux-gnu/bin/nm
checking for objcopy... /usr/local/x86_64-pc-linux-gnu/bin/objcopy
checking for objdump... /usr/local/x86_64-pc-linux-gnu/bin/objdump
checking for otool... no
checking for otool... no
checking for ranlib... /usr/local/x86_64-pc-linux-gnu/bin/ranlib
checking for readelf... /usr/local/x86_64-pc-linux-gnu/bin/readelf
checking for strip... /usr/local/x86_64-pc-linux-gnu/bin/strip
checking for windres... no
checking for windres... no
checking for windmc... no
checking for windmc... no
checking where to find the target ar... pre-installed in
/usr/local/x86_64-pc-linux-gnu/bin
checking where to find the target as... pre-installed in
/usr/local/x86_64-pc-linux-gnu/bin
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target dsymutil... host tool
checking where to find the target gcc... just compiled
checking where to find the target gfortran... host tool
checking where to find the target gccgo... just compiled
checking where to find the target ga68... host tool
checking where to find the target gdc... host tool
checking where to find the target gm2... host tool
checking where to find the target ld... pre-installed in
/usr/local/x86_64-pc-linux-gnu/bin
checking where to find the target lipo... host tool
checking where to find the target nm... pre-installed in
/usr/local/x86_64-pc-linux-gnu/bin
checking where to find the target objcopy... pre-installed in
/usr/local/x86_64-pc-linux-gnu/bin
checking where to find the target objdump... pre-installed in
/usr/local/x86_64-pc-linux-gnu/bin
checking where to find the target otool... host tool
checking where to find the target ranlib... pre-installed in
/usr/local/x86_64-pc-linux-gnu/bin
checking where to find the target readelf... pre-installed in
/usr/local/x86_64-pc-linux-gnu/bin
checking where to find the target strip... pre-installed in
/usr/local/x86_64-pc-linux-gnu/bin
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking for clang for target... no
checking for gcc for target... no
checking for target -plugin option... no
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile

Reply via email to