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

            Bug ID: 80447
           Summary: Profiled LTO bootstrap fails on powerpc64le
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wschmidt at gcc dot gnu.org
  Target Milestone: ---

Created attachment 41207
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41207&action=edit
Compressed build log

I just tested trunk configured with 

  $ /home/wschmidt/gcc/gcc-mainline-test2/configure
--enable-languages=c,c++,fo\
rtran,objc,obj-c++,go --with-cpu=power8 --disable-multilib
--with-long-double-1\
28 --prefix=/home/wschmidt/gcc/install/gcc-mainline-test2
--with-build-config=b\
ootstrap-lto

and built it using "make profiledbootstrap".  The bootstrap fails with a number
of these errors:

/home/wschmidt/gcc/build/gcc-mainline-test2/./prev-gcc/xg++
-B/home/wschmidt/gc\
c/build/gcc-mainline-test2/./prev-gcc/
-B/home/wschmidt/gcc/install/gcc-mainlin\
e-test2/powerpc64le-unknown-linux-gnu/bin/ -nostdinc++
-B/home/wschmidt/gcc/bui\
ld/gcc-mainline-test2/prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/src/.libs\

-B/home/wschmidt/gcc/build/gcc-mainline-test2/prev-powerpc64le-unknown-linux-g\
nu/libstdc++-v3/libsupc++/.libs 
-I/home/wschmidt/gcc/build/gcc-mainline-test2/\
prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/include/powerpc64le-unknown-lin\
ux-gnu 
-I/home/wschmidt/gcc/build/gcc-mainline-test2/prev-powerpc64le-unknown-\
linux-gnu/libstdc++-v3/include 
-I/home/wschmidt/gcc/gcc-mainline-test2/libstdc\
++-v3/libsupc++
-L/home/wschmidt/gcc/build/gcc-mainline-test2/prev-powerpc64le-\
unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/wschmidt/gcc/build/gcc-mainlin\
e-test2/prev-powerpc64le-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs   -g
-O\
2 -flto=jobserver -frandom-seed=1 -fprofile-use -DIN_GCC     -fno-exceptions
-f\
no-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-W\
cast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-l\
ong -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common 
-DHAVE_CO\
NFIG_H -DGENERATOR_FILE -fno-PIE -static-libstdc++ -static-libgcc  -no-pie -o
b\
uild/genmatch \
    build/genmatch.o ../libcpp/libcpp.a ../libiberty/libiberty.a
build/errors.o\
 build/vec.o build/hash-table.o .././libiberty/libiberty.a
In function 'rtvec_alloc',
    inlined from 'copy_rtx_for_iterators' at
/home/wschmidt/gcc/gcc-mainline-te\
st2/gcc/read-rtl.c:448:32,
    inlined from 'apply_iterators' at
/home/wschmidt/gcc/gcc-mainline-test2/gcc\
/read-rtl.c:590:50,
    inlined from 'read_rtx.constprop' at
/home/wschmidt/gcc/gcc-mainline-test2/\
gcc/read-rtl.c:1119:19,
    inlined from 'handle_unknown_directive' at
/home/wschmidt/gcc/gcc-mainline-\
test2/gcc/gensupport.c:2244:17:
/home/wschmidt/gcc/gcc-mainline-test2/gcc/rtl.c:155:10: error: 'memset':
specif\
ied size 18446744073709551608 exceeds maximum object size 9223372036854775807
[\
-Werror=stringop-overflow=]
   memset (&rt->elem[0], 0, n * sizeof (rtx));
          ^
lto1: all warnings being treated as errors
make[4]: *** [/tmp/ccWuXbn7.ltrans0.ltrans.o] Error 1
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.

Is this a POWER-only problem, or has this combination been tested recently on
other targets?

Presumably a [7 Regression] but I need to test GCC 6.

Reply via email to