public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/99448] New: ICE in read_cgraph_and_symbols, at lto/lto-common.c:2739
@ 2021-03-07 10:49 doko at debian dot org
  2021-03-08  8:41 ` [Bug lto/99448] " marxin at gcc dot gnu.org
  2021-03-08  9:53 ` doko at debian dot org
  0 siblings, 2 replies; 3+ messages in thread
From: doko at debian dot org @ 2021-03-07 10:49 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99448
           Summary: ICE in read_cgraph_and_symbols, at
                    lto/lto-common.c:2739
           Product: gcc
           Version: 10.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at debian dot org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

seen building the log4cxx 0.11.0 package with LTO, both gcc-10 branch 20210306
and trunk 20210306 on x86_64-linux-gnu

g++ -g -O2 -ffile-prefix-map=/packages/tmp/log4cxx-0.11.0=. -flto=auto
-ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security
-flto=auto -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/testsuite
customlogger/xlogger.o customlogger/xloggertestcase.o defaultinit/testcase1.o
defaultinit/testcase2.o defaultinit/testcase3.o defaultinit/testcase4.o
filter/andfiltertest.o filter/denyallfiltertest.o filter/levelmatchfiltertest.o
filter/levelrangefiltertest.o filter/loggermatchfiltertest.o
filter/mapfiltertest.o filter/stringmatchfiltertest.o
helpers/absolutetimedateformattestcase.o helpers/cacheddateformattestcase.o
helpers/charsetdecodertestcase.o helpers/charsetencodertestcase.o
helpers/cyclicbuffertestcase.o helpers/datetimedateformattestcase.o
helpers/inetaddresstestcase.o helpers/iso8601dateformattestcase.o
helpers/localechanger.o helpers/messagebuffertest.o
helpers/optionconvertertestcase.o helpers/propertiestestcase.o
helpers/relativetimedateformattestcase.o helpers/stringtokenizertestcase.o
helpers/stringhelpertestcase.o helpers/syslogwritertest.o
helpers/threadtestcase.o helpers/timezonetestcase.o
helpers/transcodertestcase.o net/smtpappendertestcase.o
net/socketappendertestcase.o net/sockethubappendertestcase.o
net/syslogappendertestcase.o net/telnetappendertestcase.o
net/xmlsocketappendertestcase.o pattern/num343patternconverter.o
pattern/patternparsertestcase.o rolling/filenamepatterntestcase.o
rolling/filterbasedrollingtest.o rolling/manualrollingtest.o
rolling/obsoletedailyrollingfileappendertest.o
rolling/obsoleterollingfileappendertest.o rolling/sizebasedrollingtest.o
rolling/timebasedrollingtest.o util/absolutetimefilter.o
util/absolutedateandtimefilter.o util/binarycompare.o util/compare.o
util/controlfilter.o util/filenamefilter.o util/utilfilter.o
util/iso8601filter.o util/linenumberfilter.o util/relativetimefilter.o
util/serializationtesthelper.o util/threadfilter.o util/transformer.o
util/xmlfilenamefilter.o util/xmllineattributefilter.o
util/xmltimestampfilter.o util/xmlthreadfilter.o varia/errorhandlertestcase.o
varia/levelmatchfiltertestcase.o varia/levelrangefiltertestcase.o
db/odbcappendertestcase.o xml/customleveltestcase.o xml/domtestcase.o
xml/xlevel.o xml/xmllayouttestcase.o xml/xmllayouttest.o
nt/nteventlogappendertestcase.o abts.o asyncappendertestcase.o encodingtest.o
filetestcase.o hierarchytest.o hierarchythresholdtestcase.o jsonlayouttest.o
l7dtestcase.o leveltestcase.o logunit.o loggertestcase.o minimumtestcase.o
patternlayouttest.o vectorappender.o appenderskeletontestcase.o
consoleappendertestcase.o fileappendertestcase.o rollingfileappendertestcase.o
streamtestcase.o writerappendertestcase.o ndctestcase.o
propertyconfiguratortest.o mdctestcase.o  -L/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libapr-1.so /usr/lib/x86_64-linux-gnu/libaprutil-1.so
../../../src/main/cpp/.libs/liblog4cxx.so -pthread
lto1: internal compiler error: in read_cgraph_and_symbols, at
lto/lto-common.c:2739
0x5c94c0 read_cgraph_and_symbols(unsigned int, char const**)
        ../../src/gcc/lto/lto-common.c:2739
0x1598166 lto_main()
        ../../src/gcc/lto/lto.c:625
Please submit a full bug report,
with preprocessed source if appropriate.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug lto/99448] ICE in read_cgraph_and_symbols, at lto/lto-common.c:2739
  2021-03-07 10:49 [Bug lto/99448] New: ICE in read_cgraph_and_symbols, at lto/lto-common.c:2739 doko at debian dot org
@ 2021-03-08  8:41 ` marxin at gcc dot gnu.org
  2021-03-08  9:53 ` doko at debian dot org
  1 sibling, 0 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-03-08  8:41 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug lto/99448] ICE in read_cgraph_and_symbols, at lto/lto-common.c:2739
  2021-03-07 10:49 [Bug lto/99448] New: ICE in read_cgraph_and_symbols, at lto/lto-common.c:2739 doko at debian dot org
  2021-03-08  8:41 ` [Bug lto/99448] " marxin at gcc dot gnu.org
@ 2021-03-08  9:53 ` doko at debian dot org
  1 sibling, 0 replies; 3+ messages in thread
From: doko at debian dot org @ 2021-03-08  9:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Matthias Klose <doko at debian dot org> ---
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-08  9:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-07 10:49 [Bug lto/99448] New: ICE in read_cgraph_and_symbols, at lto/lto-common.c:2739 doko at debian dot org
2021-03-08  8:41 ` [Bug lto/99448] " marxin at gcc dot gnu.org
2021-03-08  9:53 ` doko at debian dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).