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

            Bug ID: 71399
           Summary: GCC 5.3.0 bootstrap comparison failure on
                    arm-linux-gnueabihf
           Product: gcc
           Version: 5.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ludo at gnu dot org
  Target Milestone: ---

Created attachment 38637
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38637&action=edit
Diff of stage-2 and stage-3 disassembly of 'real.o'

We (GNU Guix) are getting a bootstrap comparison failure when building 5.3.0 on
arm-linux-gnueabihf:

  make[3]: Leaving directory '/tmp/guix-build-gcc-5.3.0.drv-0/build'
  Comparing stages 2 and 3
  warning: gcc/cc1plus-checksum.o differs
  warning: gcc/cc1-checksum.o differs
  Bootstrap comparison failure!
  gcc/libgcov-driver-tool.o differs
  gcc/tree-nested.o differs
  gcc/df-scan.o differs
  gcc/double-int.o differs
  gcc/simplify-rtx.o differs
  gcc/c/c-parser.o differs
  gcc/c/c-typeck.o differs
  gcc/gcov-dump.o differs
  gcc/tree-ssa-math-opts.o differs
  gcc/fold-const.o differs
  gcc/cp/semantics.o differs
  gcc/cp/optimize.o differs
  gcc/tree-dfa.o differs
  gcc/tree-inline.o differs
  gcc/c-family/cilk.o differs
  gcc/ipa-inline.o differs
  gcc/lto-section-out.o differs
  gcc/omp-low.o differs
  gcc/tree-switch-conversion.o differs
  gcc/lto-streamer-out.o differs
  gcc/real.o differs
  gcc/tree-ssa-sccvn.o differs
  gcc/coverage.o differs
  gcc/dwarf2cfi.o differs
  libiberty/pic/sort.o differs
  libiberty/pic/fibheap.o differs
  libiberty/pic/simple-object-xcoff.o differs
  libiberty/sort.o differs
  libiberty/fibheap.o differs
  libiberty/simple-object-xcoff.o differs
  Makefile:21400: recipe for target 'compare' failed
  make[2]: *** [compare] Error 1

The configure flags (from the top-level 'config.log) are:

  ../gcc-5.3.0/configure
CONFIG_SHELL=/gnu/store/h32j1gbdfsik6ap5szgvi8rlw1kqpsc9-bootstrap-binaries-0/bin/bash
SHELL=/gnu/store/h32j1gbdfsik6ap5szgvi8rlw1kqpsc9-bootstrap-binaries-0/bin/bash
--prefix=/gnu/store/6xdd64b8343v9vd3nkhkkqg7mayyxvwp-gcc-5.3.0
--enable-fast-install
--libdir=/gnu/store/40csg72342wcdfi3a3h1hxvbmmg6smi6-gcc-5.3.0-lib/lib
--includedir=/gnu/store/40csg72342wcdfi3a3h1hxvbmmg6smi6-gcc-5.3.0-lib/include
--build=arm-unknown-linux-gnueabihf --enable-plugin --enable-languages=c,c++
--disable-multilib --with-system-zlib --disable-libstdcxx-pch
--with-local-prefix=/no-gcc-local-prefix
--with-gxx-include-dir=/gnu/store/6xdd64b8343v9vd3nkhkkqg7mayyxvwp-gcc-5.3.0/include/c++
--with-native-system-header-dir=/gnu/store/n9dy4hb10l2s5vl1vxrmdcg6jgdz0p2x-glibc-2.23/include
--with-arch=armv7-a --with-float=hard --with-mode=thumb --with-fpu=neon

We also pass these 'make' variables when building:

  LDFLAGS='
-Wl,-rpath=/gnu/store/n9dy4hb10l2s5vl1vxrmdcg6jgdz0p2x-glibc-2.23/lib
-Wl,-dynamic-linker
-Wl,/gnu/store/n9dy4hb10l2s5vl1vxrmdcg6jgdz0p2x-glibc-2.23/lib/ld-linux-armhf.so.3
-L/gnu/store/gnkcmxqjscfw551l41lyxhmykcgnqwqp-libstdc++-5.3.0/lib
-L/gnu/store/03351ibq24p0f6jjpyjbyary4gpza5si-zlib-1.2.8/lib
-Wl,-rpath=/gnu/store/03351ibq24p0f6jjpyjbyary4gpza5si-zlib-1.2.8/lib'
  LDFLAGS_FOR_TARGET="$LDFLAGS"
  BOOT_CFLAGS="-O2 -g0"

As an example, attached is the disassembly of stage2-gcc/real.o and that of
stage3-gcc/real.o (one of the files that differ), obtained with 'objdump
--line-numbers --disassemble --section=.text real.o'.

Let me know if there's additional information I can provide.

(Originally discussed at
<https://lists.gnu.org/archive/html/guix-devel/2016-05/msg00988.html>.)

Reply via email to