Thread overview
[Issue 888] New: -cov and _ModuleInfo linking bugs
Jan 26, 2007
d-bugmail
Jan 26, 2007
d-bugmail
Feb 16, 2007
d-bugmail
Mar 14, 2008
d-bugmail
Mar 14, 2008
d-bugmail
Mar 14, 2008
d-bugmail
Sep 10, 2009
David Ferenczi
Jan 22, 2013
Andrej Mitrovic
January 26, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=888

           Summary: -cov and _ModuleInfo  linking bugs
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: someanon@yahoo.com


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


-- 

January 26, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=888





------- Comment #1 from someanon@yahoo.com  2007-01-25 20:45 -------
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.


-- 

February 16, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=888


david@ferenczi.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Comment #3 from david@ferenczi.net  2007-02-16 12:35 -------
Problem still exists with dmd-1.005


-- 

March 14, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=888


someanon@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major
           Priority|P2                          |P1
            Version|unspecified                 |2.012




------- Comment #4 from someanon@yahoo.com  2008-03-14 16:27 -------
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.


-- 

March 14, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=888





------- Comment #5 from someanon@yahoo.com  2008-03-14 16:31 -------
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


-- 

March 14, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=888





------- Comment #6 from someanon@yahoo.com  2008-03-14 16:35 -------
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


-- 

September 10, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=888


David Ferenczi <david@ferenczi.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david@ferenczi.net


--- Comment #7 from David Ferenczi <david@ferenczi.net> 2009-09-10 06:01:02 PDT ---
I don't encounter the problem with v2.032 on Linux.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 22, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=888


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEW
                 CC|                            |andrej.mitrovich@gmail.com


--- Comment #8 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-22 11:08:24 PST ---
Status of this? Close with WORKSFORME if it's fixed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------