public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/59516] New: [4.9 Regression] Multiple definition of `X' / of `non-virtual thunk to X' errors with LTO
@ 2013-12-15 21:49 d.g.gorbachev at gmail dot com
  2013-12-19 13:09 ` [Bug target/59516] " rguenth at gcc dot gnu.org
  2014-02-12 19:14 ` ktietz at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2013-12-15 21:49 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59516

            Bug ID: 59516
           Summary: [4.9 Regression] Multiple definition of `X' / of
                    `non-virtual thunk to X' errors with LTO
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: d.g.gorbachev at gmail dot com
            Target: i686-w64-mingw32

Created attachment 31442
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31442&action=edit
Testcase (compile with `-O2 -flto -shared')

GCC 4.9.0 20131208 (experimental).

/tmp/ccwAdNny.o (symbol from
plugin):(.gnu.linkonce.t._ZN1S2fnEv[__ZThn8_N1S2fnEv]+0x0): multiple definition
of `S::fn()'
/tmp/ccwhiDw7.o (symbol from
plugin):(.gnu.linkonce.t._ZN1S2fnEv[__ZThn4_N1S2fnEv]+0x0): first defined here
/tmp/ccwAdNny.o (symbol from
plugin):(.gnu.linkonce.t._ZN1S2fnEv[__ZThn8_N1S2fnEv]+0x0): multiple definition
of `non-virtual thunk to S::fn()'
/tmp/ccwhiDw7.o (symbol from
plugin):(.gnu.linkonce.t._ZN1S2fnEv[__ZThn4_N1S2fnEv]+0x0): first defined here
/tmp/ccwAdNny.o (symbol from
plugin):(.gnu.linkonce.t._ZN1S2fnEv[__ZThn8_N1S2fnEv]+0x0): multiple definition
of `non-virtual thunk to S::fn()'
/tmp/ccwhiDw7.o (symbol from
plugin):(.gnu.linkonce.t._ZN1S2fnEv[__ZThn4_N1S2fnEv]+0x0): first defined here
collect2: error: ld returned 1 exit status


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

* [Bug target/59516] [4.9 Regression] Multiple definition of `X' / of `non-virtual thunk to X' errors with LTO
  2013-12-15 21:49 [Bug target/59516] New: [4.9 Regression] Multiple definition of `X' / of `non-virtual thunk to X' errors with LTO d.g.gorbachev at gmail dot com
@ 2013-12-19 13:09 ` rguenth at gcc dot gnu.org
  2014-02-12 19:14 ` ktietz at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-12-19 13:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59516

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu.org
   Target Milestone|---                         |4.9.0


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

* [Bug target/59516] [4.9 Regression] Multiple definition of `X' / of `non-virtual thunk to X' errors with LTO
  2013-12-15 21:49 [Bug target/59516] New: [4.9 Regression] Multiple definition of `X' / of `non-virtual thunk to X' errors with LTO d.g.gorbachev at gmail dot com
  2013-12-19 13:09 ` [Bug target/59516] " rguenth at gcc dot gnu.org
@ 2014-02-12 19:14 ` ktietz at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: ktietz at gcc dot gnu.org @ 2014-02-12 19:14 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59516

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |ktietz at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #1 from Kai Tietz <ktietz at gcc dot gnu.org> ---
This issue is a known binutils' ld bug. Issue here is that object-file
arguments aren't treated proper for LTO-plugin.
Work-a-round for this is adding all files into library by ar-tool, and doing
linking via it (Side-note be aware that you will need to mark classes then via
dllexport).


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

end of thread, other threads:[~2014-02-12 19:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-15 21:49 [Bug target/59516] New: [4.9 Regression] Multiple definition of `X' / of `non-virtual thunk to X' errors with LTO d.g.gorbachev at gmail dot com
2013-12-19 13:09 ` [Bug target/59516] " rguenth at gcc dot gnu.org
2014-02-12 19:14 ` ktietz 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).