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

Mark Wielaard <mark at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |mark at gcc dot gnu.org
             Blocks|                            |47819
   Last reconfirmed|                            |2020-07-16
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Mark Wielaard <mark at gcc dot gnu.org> ---
Replicated. With -flto added the result is a linker error:

g++  -g -o app/app app/app.o -L./lib -lA
/usr/bin/ld: /tmp/app.BSgkYr.ltrans0.ltrans.o: in function `main':
/bbbbbbbb/app.cpp:6: undefined reference to `Lib::func()'
collect2: error: ld returned 1 exit status

Removing -fdebug-prefix-map (but keeping -flto) things build fine.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47819
[Bug 47819] [meta-bug] LTO debug information issues

Reply via email to