www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11931] New: LINKERS "Symbol Undefined" AGAIN WITH DMD HEAD when -g specified

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11931

           Summary: LINKERS "Symbol Undefined" AGAIN WITH DMD HEAD when -g
                    specified
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: temtaime gmail.com



Created an attachment (id=1314)
Test case

dmd.exe  -g     -c E.d
-ofC:\Users\Admin\AppData\Local\Temp\obj\testcase\debug\E.obj
dmd.exe  -g     -c p\A.d
-ofC:\Users\Admin\AppData\Local\Temp\obj\testcase\debug\p\A.obj
dmd.exe  -g     -c p\B.d
-ofC:\Users\Admin\AppData\Local\Temp\obj\testcase\debug\p\B.obj
dmd.exe  -g     -c p\C.d
-ofC:\Users\Admin\AppData\Local\Temp\obj\testcase\debug\p\C.obj
dmd.exe  -g     -c p\D.d
-ofC:\Users\Admin\AppData\Local\Temp\obj\testcase\debug\p\D.obj
dmd.exe testcase.exe -g 
C:\Users\Admin\AppData\Local\Temp\obj\testcase\debug\E.obj
C:\Users\Admin\AppData\Local\Temp\obj\testcase\debug\p\A.obj
C:\Users\Admin\AppData\Local\Temp\obj\testcase\debug\p\B.obj
C:\Users\Admin\AppData\Local\Temp\obj\testcase\debug\p\C.obj
C:\Users\Admin\AppData\Local\Temp\obj\testcase\debug\p\D.obj   
OPTLINK (R) for Win32  Release 8.00.13
Copyright (C) Digital Mars 1989-2010  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
C:\Users\Admin\AppData\Local\Temp\obj\testcase\debug\p\A.obj(A) 
 Error 42: Symbol Undefined
_D1p1D13__T6SignalTvZ6Signal3addMFNbNfDFZvZS1p1D15ConnectionPoint
C:\Users\Admin\AppData\Local\Temp\obj\testcase\debug\p\A.obj(A) 
 Error 42: Symbol Undefined
_D1p1D13__T6SignalTvZ6Signal3addMFNbNfDFZvZS1p1D15ConnectionPoint9__lambda2MFNbNfZv19__T9__lambda1TDFZvZ9__lambda1MFNbNfDFZvZb
--- errorlevel 2

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 15 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11931




On my project it appers without -g too, but not on testcase.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 15 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11931




More shorter command list for the attached test case:

dmd -g -c E.d   -ofE.obj
dmd -g -c p\A.d -ofA.obj
dmd -g -c p\B.d -ofB.obj
dmd -g -c p\C.d -ofC.obj
dmd -g -c p\D.d -ofD.obj
dmd testcase.exe -g E.obj A.obj B.obj C.obj D.obj

// (same undefined symbols)

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 15 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11931


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |link-failure, pull
            Summary|LINKERS "Symbol Undefined"  |Linkers "Symbol Undefined"
                   |AGAIN WITH DMD HEAD when -g |again with dmd HEAD when -g
                   |specified                   |specified



https://github.com/D-Programming-Language/dmd/pull/3107

This regression had caused by incorrect fix for issue 11863.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 15 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11931




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5321d36d12dfe0b3c18cdb9755ea6342ebe664b3
fix Issue 11931 - Linkers "Symbol Undefined" again with dmd HEAD when -g
specified

Also add test case for issue 7595.

https://github.com/D-Programming-Language/dmd/commit/2401bf3e78db154bf46abe512df7dbb938bc208b


[REG2.065a] Issue 11931 - Linkers "Symbol Undefined" again with dmd HEAD when
-g specified

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 19 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11931


Kenji Hara <k.hara.pg gmail.com> changed:

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


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 19 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11931




Commit pushed to release at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/010ffc6ff9fe5a57bea1e565a5700b04aa71216b


[REG2.065a] Issue 11931 - Linkers "Symbol Undefined" again with dmd HEAD when
-g specified

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 22 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11931




Created an attachment (id=1321)
Test case 2

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 07 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11931


Temtaime <temtaime gmail.com> changed:

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



Not fully fixed.
Compiling files separately with -g gives
Error 42: Symbol Undefined _D1E13__T6SignalTvZ6Signal3addMFNaNbNfPFZvZv

Guys it's not funny and it's an headache for me.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 07 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11931


Kenji Hara <k.hara.pg gmail.com> changed:

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




 Not fully fixed.
 Compiling files separately with -g gives
 Error 42: Symbol Undefined _D1E13__T6SignalTvZ6Signal3addMFNaNbNfPFZvZv
 
 Guys it's not funny and it's an headache for me.
The root cause is not same. The attached testcase reproduces same linker error with 2.058 - 2.064 (== not regression issue). So I separate the report to the issue 12099. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 07 2014