OPTLINK : Warning 9: Unknown Option : OUT

Anonymouse zorael at gmail.com
Mon Jul 15 10:27:49 UTC 2019


I wanted to try out druntime + a specific pull request with 
digger on Windows, and dmd and everything builds, except my 
program itself fails to link when compiled with it.

$ dub test 
--compiler=C:/cygwin/home/zorael/work/result/bin/dmd.exe
[...]
Linking...
OPTLINK (R) for Win32  Release 8.00.17
Copyright (C) Digital Mars 1989-2013  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
OPTLINK : Warning 9: Unknown Option : OUT
.dub\build\unittest-unittest-windows-x86_64-dmd_2087-54F51FF76286807F6977B498DED6593D\kameloso.obj Offset 00000H Record Type 0064
  Error 138: Module or Dictionary corrupt
Error: linker exited with status 1
C:/cygwin/home/zorael/work/result/bin/dmd.exe failed with exit 
code 1.

If I run it from a Cygwin terminal and I comment the LINKCMD 
entry from the sc.ini by the digger dmd.exe, it defaults to its 
/usr/bin/link, which throws a similar error.

[...]
Linking...
/usr/bin/link: extra operand 
‘/OUT:.dub\\build\\unittest-unittest-windows-x86_64-dmd_2087-54F51FF76286807F6977B498DED6593D\\kameloso.exe’
Try '/usr/bin/link --help' for more information.
Error: linker exited with status 1
C:/cygwin/home/zorael/work/result/bin/dmd.exe failed with exit 
code 1.

The normally-installed dmd 2.087 works fine. What am I missing?


More information about the Digitalmars-d-learn mailing list