From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5AF8F385781B; Sat, 3 Apr 2021 16:20:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5AF8F385781B From: "ohaiziejohwahkeezuoz at xff dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/99898] New: Possible LTO object incompatibility on gcc-10 branch Date: Sat, 03 Apr 2021 16:20:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 10.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ohaiziejohwahkeezuoz at xff dot cz X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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: Sat, 03 Apr 2021 16:20:20 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99898 Bug ID: 99898 Summary: Possible LTO object incompatibility on gcc-10 branch Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: ohaiziejohwahkeezuoz at xff dot cz CC: marxin at gcc dot gnu.org Target Milestone: --- I'm trying gcc (releases/gcc-10 branch with the last commit Fri Oct 23 10:11:41 2020 +0200 - Fix up plugin header install) And I'm seeing an ICE cross-compiling glib library when linking with=20 i686-linux-musl-gcc -o gio/gresource gio/gresource.p/gresource-tool.c.o -L/workspace/megous.com/apps-c/static-deps/output/i686/sys/usr/lib -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -static -Wl,--start-group gio/libgio-2.0.a glib/libglib-2.0.a gobject/libgobject-2.0.a gmodule/libgmodule-2.0.a /workspace/megous.com/apps-c/static-deps/output/i686/sys/usr/lib/libz.a /workspace/megous.com/apps-c/static-deps/output/i686/sys/usr/lib/libmount.a /workspace/megous.com/apps-c/static-deps/output/i686/sys/usr/lib/libblkid.a -pthread -liconv -lm /workspace/megous.com/apps-c/static-deps/output/i686/sys/usr/lib/libffi.a -Wl,--end-group lto1: internal compiler error: in lto_read_decls, at lto/lto-common.c:1956 Please submit a full bug report, with preprocessed source if appropriate. I'm compiling with fat LTO objects, and this only happens when mixing LTO object files compiled with previous version of gcc on the tip of gcc-10 bra= nch. (and only with i686 target so far) Sorry I don't have precise version of the previous compiler, but it was probably something close to 10.2 judging by t= he dates on the object files. Recompiling all dependencies with the same version of the compiler doesn't = lead to this ICE. Maybe LTO version needs a bump prior to 10.3 release?=