From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0CB383858D33; Wed, 1 Feb 2023 13:06:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0CB383858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675256802; bh=na+QkrUZxDu2GBSR+r5xs+n96ASHuEiXE0gU6/gO6HE=; h=From:To:Subject:Date:From; b=D63l3FJK1RFPCYJ+hIsW2se3OrKXz7XtNdVfI2ISOJgmRxV/UJ0PTRhDemaG/zs60 pk+SNnVsO2E9+MyqfLB/WX4TbRBWpM1bsWOp+PvrYqgwAjVtvaEUTQ+5ovfyV9mkHg MLrg17DwcvCQMV2+CL2MAK+cmSh4XDYUMiUGREQo= From: "a.heider at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108630] New: build failure with LTO enabled Date: Wed, 01 Feb 2023 13:06:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: a.heider at gmail dot com 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 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108630 Bug ID: 108630 Summary: build failure with LTO enabled Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: a.heider at gmail dot com Target Milestone: --- This is happening when attempting to build a cross compiler with: CFLAGS_FOR_TARGET=3D"-flto=3Dauto -ffat-lto-objects" LDFLAGS_FOR_TARGET=3D"-flto=3Dauto -fuse-linker-plugin" The assembler errors out when building libstdc++ with: Error: invalid attempt to declare external version name as default in symbol `_ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv@@GLIBCXX_3.4.5' The build succeed when building with an additional --enable-symvers=3Dno on= top. libstdc++ may need the same treatment as seen e.g. here: https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommitdiff;h=3Df4be268= 38dc9937a4ae3e9cf4fbec50efd7786a2=