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

            Bug ID: 66054
           Summary: bootstrap comparison failure with --enable-host-shared
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: minor
          Priority: P3
         Component: jit
          Assignee: unassigned at gcc dot gnu.org
          Reporter: aldot at gcc dot gnu.org
                CC: dmalcolm at gcc dot gnu.org
  Target Milestone: ---

Bootstrapping with --enable-host-shared fails stage2/3 comparison for all but
crt files.

Comparing stages 2 and 3
warning: gcc/cc1obj-checksum.o differs
warning: gcc/cc1plus-checksum.o differs
warning: gcc/cc1-checksum.o differs
warning: gcc/cc1objplus-checksum.o differs
Bootstrap comparison failure!
gcc/builtins.o differs
[snip gcc/{,*/}*.o libbacktrace/{,.libs/}*.o libcpp/*.o libdecnumber/*.o
libiberty/*.o lto-plugin/.libs/*.o zlib/*.o]
make[2]: *** [compare] Error 1
make[2]: Leaving directory `..../obj.x86_64/gcc-6.0.orig'
make[1]: *** [stage3-bubble] Error 2

for me when i

../../src/gcc-6.0.orig/configure \
  -v \
  --enable-languages=c,lto,fortran,c++,go,objc,obj-c++,jit \
  LD="ld" \
  CFLAGS="-g -O2" \
  CXXFLAGS="-g -O2" \
  BOOT_CFLAGS="-g -O2" \
  BOOT_CXXFLAGS="-g -O2" \
  CFLAGS_FOR_TARGET="-g -O2" \
  CXXFLAGS_FOR_TARGET="-g -O2" \
  --prefix=/opt/x86_64/gcc-6.0.orig// \
  --enable-shared \
  --without-system-zlib \
  --enable-nls \
  --without-included-gettext \
  --enable-threads=posix \
  --enable-__cxa_atexit \
  --enable-libstdcxx-allocator=mt \
  --enable-clocale=gnu \
  --enable-libstdcxx-debug \
  --enable-mpfr \
  --disable-werror \
  --enable-debug \
  --with-isl=/opt/x86_64/isl \
  -C \
  --disable-intermodule \
  --enable-multilib \
  --disable-libstdcxx-pch \
  --enable-bootstrap \
  --enable-host-shared \
  --enable-checking=yes \
  --with-cpu=native \
  --with-tune=native \
  --enable-plugin

ISTM that nowadays at least some libraries already have pic/*.o (libiberty
comes to mind)

Reply via email to