Bug 888 – -cov and _ModuleInfo linking bugs

Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2007-01-25T20:42:00Z
Last change time
2013-11-15T20:30:30Z
Keywords
link-failure
Assigned to
bugzilla
Creator
someanon

Comments

Comment #0 by someanon — 2007-01-25T20:42:31Z
On Linux, compile with -cov, then there's link error: http://www.digitalmars.com/d/archives/digitalmars/D/bugs/6712.html :(.data+0x93bc): more undefined references to `_D3std1c6stdlib12__ModuleInfoZ' follow
Comment #1 by someanon — 2007-01-25T20:45:42Z
Same problem, tried with lastest 1.002. Seems happen with large bases of code. Small examples on: http://digitalmars.com/d/code_coverage.html works.
Comment #2 by bugzilla — 2007-02-12T03:41:21Z
Fixed DMD 1.005
Comment #3 by david — 2007-02-16T12:35:18Z
Problem still exists with dmd-1.005
Comment #4 by someanon — 2008-03-14T16:27:11Z
This problem still exist on Linux with v2.012. Again, the small example sieve.d works fine; but bigger programs won't link. Since this bug has been around for a while, raise the priority.
Comment #5 by someanon — 2008-03-14T16:31:11Z
And error msg: /project/dmd/bin/../lib/libphobos2.a(gc.o):(.data+0x30): multiple definition of `_D3std2gc12__ModuleInfoZ' /project/dmd/bin/../lib/libphobos2.a(gc.o):(.data+0x0):first defined here ‘_D3std1c4time12__ModuleInfoZ’undefined more undefined references to `_D3std1c6stdlib12__ModuleInfoZ' follow
Comment #6 by someanon — 2008-03-14T16:35:06Z
I checked the library: $ nm ../dmd/lib/libphobos2.a | grep _D3std1c4time12__ModuleInfoZ $ nm ../dmd/lib/libphobos2.a | grep _D3std1c6stdlib12__ModuleInfoZ $ nm ../dmd/lib/libphobos2.a | grep _D3std2gc12__ModuleInfoZ 00000000 D _D3std2gc12__ModuleInfoZ 00000030 D _D3std2gc12__ModuleInfoZ U _D3std2gc12__ModuleInfoZ
Comment #7 by david — 2009-09-10T06:01:02Z
I don't encounter the problem with v2.032 on Linux.
Comment #8 by andrej.mitrovich — 2013-01-22T11:08:24Z
Status of this? Close with WORKSFORME if it's fixed.
Comment #9 by andrei — 2013-11-15T20:30:30Z
Please reopen if necessary.