The issue with D...

evilrat evilrat666 at gmail.com
Sat Feb 2 02:53:14 UTC 2019


On Saturday, 2 February 2019 at 02:32:28 UTC, Ben wrote:
> Not to be a downer but just trying out D again with Vibe.d and 
> getting confronted with the typical bug: Unexpected OPTLINK 
> Termination at EIP=0040F60A
> ...
> Yes, i already know. No Visual Studio linker installed ( and 
> no, i do not want a 3GB installation just for the linker, when 
> DMD already includes it ). But somebody forgot to tell dub!
> ...

This isn't dub or D problem, normally dub shouldn't know about 
linker, so you can set compiler flag to tell which linker to 
use(if there is such for dmd...) from dub project.

The actual problem in this case is DMD defaulting to old object 
file format/pipeline, but building with 'dub --arch=x86_mscoff' 
(dmd -m32mscoff) indeed should make dmd use lld if VS isn't 
available if it's not the case right now. Because even if you 
tell dmd -m32 to use lld it probably won't work because it 
produce stuff for OPTLINK for that target.

There is rumors about making the COFF default format when all 
major issues with lld will be ironed out.


More information about the Digitalmars-d mailing list