Bug 18510 – [Beta 2.079] lld-link.exe fails to open obj file in subpath
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
installer
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2018-02-23T18:42:42Z
Last change time
2018-02-27T22:44:51Z
Keywords
pull
Assigned to
No Owner
Creator
Martin Nowak
Comments
Comment #0 by code — 2018-02-23T18:42:42Z
C:\>C:\D\dmd2\windows\bin\dmd.exe -ofdub.exe sub\dub.obj -m32mscoff -v
predefs DigitalMars Windows LittleEndian D_Version2 all D_InlineAsm D_InlineAs
m_X86 X86 Win32 CRuntime_Microsoft assert D_HardFloat
binary C:\D\dmd2\windows\bin\dmd.exe
version v2.079.0-beta.1
config C:\D\dmd2\windows\bin\sc.ini
DFLAGS -IC:\D\dmd2\windows\bin\..\..\src\phobos -IC:\D\dmd2\windows\bin\..\..\src\druntime\import
C:\D\dmd2\windows\bin\lld-link.exe /NOLOGO "sub\dub" /OUT:"dub.exe" /OPT:NOICF
C:\D\dmd2\windows\bin\lld-link.exe: error: could not open sub\dub: no such file
or directory
C:\D\dmd2\windows\bin\lld-link.exe: warning: /machine is not specified. x64 is assumed
error: entry point must be defined
Error: linker exited with status 1
----
Weirdly the .obj suffix is stripped from the command line, might be a leftover from optlink.
Comment #1 by r.sagitario — 2018-02-23T19:53:24Z
Not automatically appending the ".obj" seems to be an incompatibility with the MS linker.