From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 450B43844012; Mon, 8 Mar 2021 09:53:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 450B43844012 From: "doko at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/99448] ICE in read_cgraph_and_symbols, at lto/lto-common.c:2739 Date: Mon, 08 Mar 2021 09:53:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 10.2.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: doko at debian dot org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2021 09:53:42 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99448 --- 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=3D-g -O2 -ffile-prefix-map=3D/packages/tmp/log4cxx-0.11.0=3D. -flto= =3Dauto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=3Dformat-securi= ty CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D2 CXXFLAGS=3D-g -O2 -ffile-prefix-map=3D/packages/tmp/log4cxx-0.11.0=3D. -flt= o=3Dauto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=3Dformat-securi= ty LDFLAGS=3D-flto=3Dauto -Wl,-z,relro=