public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/108630] New: build failure with LTO enabled
@ 2023-02-01 13:06 a.heider at gmail dot com
  2023-02-01 13:09 ` [Bug libstdc++/108630] " a.heider at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: a.heider at gmail dot com @ 2023-02-01 13:06 UTC (permalink / raw)
  To: gcc-bugs

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

            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="-flto=auto -ffat-lto-objects"
LDFLAGS_FOR_TARGET="-flto=auto -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=no on top.

libstdc++ may need the same treatment as seen e.g. here:
https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=f4be26838dc9937a4ae3e9cf4fbec50efd7786a2

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

end of thread, other threads:[~2023-03-03  9:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-01 13:06 [Bug libstdc++/108630] New: build failure with LTO enabled a.heider at gmail dot com
2023-02-01 13:09 ` [Bug libstdc++/108630] " a.heider at gmail dot com
2023-02-01 13:22 ` a.heider at gmail dot com
2023-02-01 20:55 ` redi at gcc dot gnu.org
2023-02-02 10:30 ` a.heider at gmail dot com
2023-02-06 14:13 ` redi at gcc dot gnu.org
2023-02-28 13:11 ` redi at gcc dot gnu.org
2023-03-03  9:35 ` redi at gcc dot gnu.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).