"Start a Minimal web server" example do not work.

Andre Pany andre at s-e-a-p.de
Tue May 8 16:53:21 UTC 2018


On Tuesday, 8 May 2018 at 13:33:51 UTC, drug wrote:
> 08.05.2018 16:23, BoQsc пишет:
>> On Tuesday, 8 May 2018 at 13:04:12 UTC, Seb wrote:
>>> On Tuesday, 8 May 2018 at 12:37:42 UTC, BoQsc wrote:
>>>> On Tuesday, 8 May 2018 at 12:19:14 UTC, Adam D. Ruppe wrote:
>>>>> On Tuesday, 8 May 2018 at 12:13:56 UTC, BoQsc wrote:
>>>>>> [...]
>>>>>
>>>>> This one needs to be compiled+run with the dub package 
>>>>> manager instead of with rdmd, which is why it has that 
>>>>> shebang line. It has external library dependencies rdmd 
>>>>> can't handle.
>>>>
>>>> My intuition now says to use dub this way:
>>>> --------------------------------------
>>>> C:\Users\Vaidas\Desktop>dub start_minimum_server.d
>>>> EC:\D\dmd2\windows\bin\dmd.exe failed with exit code 1.
>>>>
>>>> And got an error: Unexpected OPTLINK Termination at 
>>>> EIP=0040F60A
>>>> EAX=06CB0000 EBX=00438C70 ECX=000002C2 EDX=0000030D
>>>> ESI=00257000 EDI=06CB34F8 EBP=0019FF38 ESP=0019FEF0
>>>> First=00402000
>>>>
>>>> Similar to this one: 
>>>> https://issues.dlang.org/show_bug.cgi?id=18799
>>>
>>> Did you try the newer MSCOFF format
>>>
>>> dub --arch=x86_mscoff start_minimum_server.d
>>>
>>> or
>>>
>>> dub --arch=x64 start_minimum_server.d
>> 
>> C:\Users\Vaidas\Desktop>dub --arch=x86_mscoff 
>> start_minimum_server.d
>> Failed to find a package named 'start_minimum_server.d'.
>> 
>> C:\Users\Vaidas\Desktop>dub --arch=x64 start_minimum_server.d
>> Unsupported architecture: x64
>
> didn't you forget `--single` option?
> ```
> dub --arch=x64 --single start_minimum_server.d
> ```

--single is not needed because dub will add it automatically for 
you.

It seems like an optlink bug. Switching to mscoff32/x64 works, 
but only if you have in addition Microsoft Build Tools or s.th. 
similar installed.

Therefore dmd ships now with the llvm linker but I am not sure 
how mature this is.

Kind regards
Andre


More information about the Digitalmars-d-learn mailing list