[Bug lto/99448] ICE in read_cgraph_and_symbols, at lto/lto-common.c:2739

2021-03-08 Thread doko at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99448

--- Comment #2 from Matthias Klose  ---
the compiler is configured with --enable-default-pie.

so this one sometimes fails with different reasons when retrying:

lto1: error: filter/andfiltertest.o: file too short
lto1: fatal error: errors during merging of translation units
compilation terminated.
lto-wrapper: fatal error: g++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status

and doesn't fail now when just retrying the link command manually now ...

these flags are passed to the upstream build system:

CFLAGS=-g -O2 -ffile-prefix-map=/packages/tmp/log4cxx-0.11.0=. -flto=auto
-ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security
CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2
CXXFLAGS=-g -O2 -ffile-prefix-map=/packages/tmp/log4cxx-0.11.0=. -flto=auto
-ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security
LDFLAGS=-flto=auto -Wl,-z,relro

[Bug lto/99448] ICE in read_cgraph_and_symbols, at lto/lto-common.c:2739

2021-03-08 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99448

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2021-03-08
 Ever confirmed|0   |1

--- Comment #1 from Martin Liška  ---
Please reduce first the objects needed to reproduce the ICE:
- you can add them to files.txt files and then use cvise-delta:
g++ @files.txt ... 2>&1 | grep 'internal com..'

Then you can create pre-processed source files for the problematic objects.
And finally, you can reduce these (cvise can reduce more files in parallel).

I cannot reproduce it in openSUSE:Factory.