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.
Comment #2 by r.sagitario — 2018-02-23T20:54:22Z
Comment #3 by github-bugzilla — 2018-02-27T22:44:42Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/c75ca864f10a1513780172aca5472e8f885f8a87 fix issue 18510 - lld-link.exe fails to open obj file in subpath LLD doesn't assume .obj automatically for files with '\' in the name, but there is no good reason to strip the extension to begin with https://github.com/dlang/dmd/commit/22aeea76549cb6f5dbf0460981f3e0661e754a68 Merge pull request #7946 from rainers/issue18510 fix issue 18510 - lld-link.exe fails to open obj file in subpath