D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 16946 - rdmd causes linker issues when DMD options are changed between runs
Summary: rdmd causes linker issues when DMD options are changed between runs
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: tools (show other issues)
Version: D2
Hardware: All Windows
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-03 23:34 UTC by Andrej Mitrovic
Modified: 2020-06-05 12:17 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrej Mitrovic 2016-12-03 23:34:26 UTC
Using: v2.072.1

test.d:
-----
module test;
void main() { }
-----

# first time is ok
$ rdmd test.d
>

# second run added -of switch
$ rdmd -oftest2.exe test.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\andre\AppData\Local\Temp\.rdmd\rdmd-test.d-AAFFF766E367405BC6B3916FAE707D0D\objs\test.obj
>  Error 2: File Not Found C:\Users\andre\AppData\Local\Temp\.rdmd\rdmd-test.d-> AAFFF766E367405BC6B3916FAE707D0D\objs\test.obj
> Error: linker exited with status 18221464

Workaround is to use --force to rebuild.

I'm not entirely too sure but I think this may be a regression.
Comment 1 Mathias LANG 2020-06-05 12:17:31 UTC
Just tested, this seems to work nowadays.