Thread overview
[Issue 15533] RDMD: -g switch produces linker error
Jan 09, 2016
Ivan Kazmenko
Jan 16, 2016
Alexey G
Jan 16, 2016
Alexey G
May 20, 2017
Alexey G
Jan 09, 2021
Mathias LANG
January 09, 2016
https://issues.dlang.org/show_bug.cgi?id=15533

Ivan Kazmenko <gassa@mail.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gassa@mail.ru

--
January 16, 2016
https://issues.dlang.org/show_bug.cgi?id=15533

--- Comment #1 from Alexey G <golovanov_alexey@mail.ru> ---
RDMD in both cases produces same rdmd.deps file in corresponding work dir. And those rdmd.deps not contains any mention of moduleC.

Command dmd -deps=moduleA.deps moduleA.d
produces moduleA.deps file, which not contains any mention of moduleC too.

Is this DMD bug instead of RDMD ?

--
January 16, 2016
https://issues.dlang.org/show_bug.cgi?id=15533

--- Comment #2 from Alexey G <golovanov_alexey@mail.ru> ---
It seems this is old DMD bug
"https://issues.dlang.org/show_bug.cgi?id=7016 - local import does not create
-deps dependency"

--
May 20, 2017
https://issues.dlang.org/show_bug.cgi?id=15533

--- Comment #3 from Alexey G <golovanov_alexey@mail.ru> ---
No. Issue 7016 fixed, but this 15533 sill exists.

DMD32 D Compiler v2.075.0-master-f546675.
Reduced test case.

C:\dmd2\windows\bin\rdmd.exe moduleA.d
//no errors, moduleA.exe created


C:\dmd2\windows\bin\rdmd.exe -g moduleA.d
OPTLINK (R) for Win32  Release 8.00.17
Copyright (C) Digital Mars 1989-2013  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
C:\Users\gav\AppData\Local\Temp\.rdmd\rdmd-moduleA.d-8C1729D9769E4E70D93C65D738058ED2\objs\moduleA.exe.obj(moduleA.exe)

 Error 42: Symbol Undefined _D4test7moduleC5funcCFZv
Error: linker exited with status 1

--
January 09, 2021
https://issues.dlang.org/show_bug.cgi?id=15533

Mathias LANG <pro.mathias.lang@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |pro.mathias.lang@gmail.com
         Resolution|---                         |MOVED

--- Comment #4 from Mathias LANG <pro.mathias.lang@gmail.com> ---
Moved to: https://github.com/dlang/tools/issues/429

--