[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/12762] lto produces multiple definition errors for all symbols (
From: |
vanboxem.ruben at gmail dot com |
Subject: |
[Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++ |
Date: |
Tue, 17 May 2011 13:28:17 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=12762
vanboxem.ruben at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ktietz70 at googlemail dot
| |com
--- Comment #6 from vanboxem.ruben at gmail dot com 2011-05-17 13:27:46 UTC ---
When compiling libstdc++ with -flto in CFLAGS, libstdc++'s config.log shows a
failed test with these errors (along with the previous multiple definition
errors):
`__multf3' referenced in section `.text' of /tmp/ccbxHWuQ.ltrans0.ltrans.o:
defined in discarded section `.text' of multf3.o (symbol from plugin)
`__multf3' referenced in section `.text' of /tmp/ccbxHWuQ.ltrans0.ltrans.o:
defined in discarded section `.text' of multf3.o (symbol from plugin)
`__multf3' referenced in section `.text' of /tmp/ccbxHWuQ.ltrans0.ltrans.o:
defined in discarded section `.text' of multf3.o (symbol from plugin)
`__multf3' referenced in section `.text' of /tmp/ccbxHWuQ.ltrans0.ltrans.o:
defined in discarded section `.text' of multf3.o (symbol from plugin)
`__subtf3' referenced in section `.text' of /tmp/ccbxHWuQ.ltrans0.ltrans.o:
defined in discarded section `.text' of subtf3.o (symbol from plugin)
`__addtf3' referenced in section `.text' of /tmp/ccbxHWuQ.ltrans0.ltrans.o:
defined in discarded section `.text' of addtf3.o (symbol from plugin)
`__subtf3' referenced in section `.text' of /tmp/ccbxHWuQ.ltrans0.ltrans.o:
defined in discarded section `.text' of subtf3.o (symbol from plugin)
...
In total it seems ld is reading all symbols multiple times in the same object
file, and
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug ld/12762] New: lto produces multiple definition errors for virtual function, vanboxem.ruben at gmail dot com, 2011/05/15
- [Bug ld/12762] lto produces multiple definition errors for virtual function, vanboxem.ruben at gmail dot com, 2011/05/15
- [Bug ld/12762] lto produces multiple definition errors for virtual function, amodra at gmail dot com, 2011/05/15
- [Bug ld/12762] lto produces multiple definition errors for virtual function, vanboxem.ruben at gmail dot com, 2011/05/15
- [Bug ld/12762] lto produces multiple definition errors for virtual function, vanboxem.ruben at gmail dot com, 2011/05/15
- [Bug ld/12762] lto produces multiple definition errors for virtual function, amodra at gmail dot com, 2011/05/15
- [Bug ld/12762] lto produces multiple definition errors for virtual function, vanboxem.ruben at gmail dot com, 2011/05/16
- [Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++, vanboxem.ruben at gmail dot com, 2011/05/17
- [Bug ld/12762] lto produces multiple definition errors for all symbols (including CRT) in C++,
vanboxem.ruben at gmail dot com <=