public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/109263] New: '-g0 -ggdb -flto' gives linker error
@ 2023-03-23 15:10 lukeocamden at gmail dot com
  2023-03-23 15:14 ` [Bug lto/109263] " marxin at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: lukeocamden at gmail dot com @ 2023-03-23 15:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109263
           Summary: '-g0 -ggdb -flto' gives linker error
           Product: gcc
           Version: 12.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lukeocamden at gmail dot com
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Hello,

I have not seen this before!

$ echo 'int main() { }' | g++ -g0 -ggdb -flto -xc++ -
/usr/bin/ld: /tmp/ccgMzjuI.ltrans0.ltrans.o:(.debug_info+0x2f): undefined
reference to `g_stdin_.7138a6a3'
collect2: error: ld returned 1 exit status

$ g++ --version
g++ (Ubuntu 12.1.0-2ubuntu1~22.04) 12.1.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Unfortunately my build too insists on -g0 so I am using this as a workaround:

$ echo 'int main() { }' | g++ -g0 -g -ggdb -flto -xc++ -

Thanks!

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

end of thread, other threads:[~2023-07-07 10:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-23 15:10 [Bug lto/109263] New: '-g0 -ggdb -flto' gives linker error lukeocamden at gmail dot com
2023-03-23 15:14 ` [Bug lto/109263] " marxin at gcc dot gnu.org
2023-03-23 15:58 ` rguenth at gcc dot gnu.org
2023-03-23 18:24 ` [Bug lto/109263] [10/11/12/13 Regression] " pinskia at gcc dot gnu.org
2023-03-27  6:45 ` cvs-commit at gcc dot gnu.org
2023-03-27  6:46 ` [Bug lto/109263] [10/11/12 " rguenth at gcc dot gnu.org
2023-04-17  9:14 ` cvs-commit at gcc dot gnu.org
2023-05-02 12:45 ` [Bug lto/109263] [10/11 " cvs-commit at gcc dot gnu.org
2023-07-07 10:07 ` [Bug lto/109263] [10 " rguenth 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).