www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 888] New: -cov and _ModuleInfo linking bugs

reply d-bugmail puremagic.com writes:
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


-- 
Jan 25 2007
next sibling parent d-bugmail puremagic.com writes:
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.


-- 
Jan 25 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
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


-- 
Feb 16 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
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.


-- 
Mar 14 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
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


-- 
Mar 14 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
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


-- 
Mar 14 2008
prev sibling parent d-bugmail puremagic.com writes:
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: -------
Sep 10 2009