Bug 11931 – Linkers "Symbol Undefined" again with dmd HEAD when -g specified

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-01-15T05:36:00Z
Last change time
2014-02-07T04:50:43Z
Keywords
link-failure, pull
Assigned to
nobody
Creator
temtaime

Attachments

IDFilenameSummaryContent-TypeSize
1314testcase.zipTest caseapplication/zip1281
1321testcase.zipTest case 2application/x-zip-compressed1165

Comments

Comment #0 by temtaime — 2014-01-15T05:36:11Z
Created attachment 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
Comment #1 by temtaime — 2014-01-15T05:39:01Z
On my project it appers without -g too, but not on testcase.
Comment #2 by k.hara.pg — 2014-01-15T10:10:09Z
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)
Comment #3 by k.hara.pg — 2014-01-15T22:19:07Z
https://github.com/D-Programming-Language/dmd/pull/3107 This regression had caused by incorrect fix for issue 11863.
Comment #4 by github-bugzilla — 2014-01-19T19:41:55Z
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 Merge pull request #3107 from 9rnsr/fix11931 [REG2.065a] Issue 11931 - Linkers "Symbol Undefined" again with dmd HEAD when -g specified
Comment #5 by github-bugzilla — 2014-01-22T16:58:33Z
Commit pushed to release at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/010ffc6ff9fe5a57bea1e565a5700b04aa71216b Merge pull request #3107 from 9rnsr/fix11931 [REG2.065a] Issue 11931 - Linkers "Symbol Undefined" again with dmd HEAD when -g specified
Comment #6 by temtaime — 2014-02-07T03:40:06Z
Created attachment 1321 Test case 2
Comment #7 by temtaime — 2014-02-07T03:41:45Z
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.
Comment #8 by k.hara.pg — 2014-02-07T04:50:43Z
(In reply to comment #7) > 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.