Thread overview
LDC 1.21 comes with a beta version of DUB ?
May 14, 2020
Luis
May 14, 2020
kinke
May 15, 2020
Andre Pany
May 15, 2020
Luis
May 15, 2020
kinke
May 14, 2020
I'm trying to discover why a build only fails with LDC 1.21 32bit version, and I noticed that LDC comes with a old beta version of DUB :

https://ci.appveyor.com/project/Zardoz89/pijamas/build/job/nb74djdyol8cdce3

dub --version
DUB version 1.20.0-beta.2, built on Apr 23 2020
%DC% --version
LDC - the LLVM D compiler (1.21.0):
  based on DMD v2.091.1 and LLVM 10.0.0
  built with LDC - the LLVM D compiler (1.21.0)
  Default target: i686-pc-windows-msvc
  Host CPU: haswell
  http://dlang.org - http://wiki.dlang.org/LDC
...


Fails with :

dub test --compiler=ldc -v

Using dub registry url 'https://code.dlang.org/'
Refreshing local packages (refresh existing: true)...
Looking for local package map at C:\ProgramData\dub\packages\local-packages.json
Looking for local package map at C:\Users\appveyor\AppData\Local\dub\packages\local-packages.json
Looking for local package map at C:\projects\pijamas\.dub\packages\local-packages.json
Determined package version using GIT: pyjamas 0.2.1+commit.12.g639c2ef
Refreshing local packages (refresh existing: false)...
Looking for local package map at C:\ProgramData\dub\packages\local-packages.json
Looking for local package map at C:\Users\appveyor\AppData\Local\dub\packages\local-packages.json
Looking for local package map at C:\projects\pijamas\.dub\packages\local-packages.json
  Version selection for dependency silly (silly) of pyjamas is missing.
  Missing dependency silly ~>1.0.2 of pyjamas
Refreshing local packages (refresh existing: false)...
Looking for local package map at C:\ProgramData\dub\packages\local-packages.json
Looking for local package map at C:\Users\appveyor\AppData\Local\dub\packages\local-packages.json
Looking for local package map at C:\projects\pijamas\.dub\packages\local-packages.json
  Version selection for dependency silly (silly) of pyjamas is missing.
  Missing dependency silly ~>1.0.2 of pyjamas
Checking for missing dependencies.
Search for versions of silly (1 package suppliers)
Command exited with code -1073741819

Any idea of what is happening here ?
May 14, 2020
On Thursday, 14 May 2020 at 11:52:12 UTC, Luis wrote:
> I'm trying to discover why a build only fails with LDC 1.21 32bit version, and I noticed that LDC comes with a old beta version of DUB :

It's not an old beta, it's a version slightly newer than dub v1.20 (with an LDC-specific convenience fix), see https://github.com/ldc-developers/ldc/commit/6847b4c1fca2a9897117604b4e17058a55ad616c#diff-1e414d8d7f312f536ae878fbfe29f036. In dub master at the time, the version file contained v1.20.0-beta.2, while it was actually post-1.20.

May 15, 2020
On Thursday, 14 May 2020 at 11:52:12 UTC, Luis wrote:
> I'm trying to discover why a build only fails with LDC 1.21 32bit version, and I noticed that LDC comes with a old beta version of DUB :
>
> [...]

If your issue is fixed today, then it was related to https://github.com/dlang/dub/issues/1928 and solved via code.dlang.org changed from http/2 to http/1.1. (Workaround for a curl bug in phobos).

Kind regards
Andre
May 15, 2020
On Friday, 15 May 2020 at 08:59:05 UTC, Andre Pany wrote:
> On Thursday, 14 May 2020 at 11:52:12 UTC, Luis wrote:
>> I'm trying to discover why a build only fails with LDC 1.21 32bit version, and I noticed that LDC comes with a old beta version of DUB :
>>
>> [...]
>
> If your issue is fixed today, then it was related to https://github.com/dlang/dub/issues/1928 and solved via code.dlang.org changed from http/2 to http/1.1. (Workaround for a curl bug in phobos).
>
> Kind regards
> Andre

Keeps happening...
But If I understand correctly, it's a problem of LDC+DUB, not from the code... It' compiles&run correctly on Linux with DMD and LDC, and on Windows with DMD and LDC 64 bit (same version)
May 15, 2020
On Friday, 15 May 2020 at 12:15:35 UTC, Luis wrote:
> But If I understand correctly, it's a problem of LDC+DUB, not from the code... It' compiles&run correctly on Linux with DMD and LDC, and on Windows with DMD and LDC 64 bit (same version)

I can reproduce a segfault (reading from null) in libcurl.dll used by dub, with the 32-bit Windows release. As libcurl was upgraded with LDC v1.21, I also tried the older one bundled with LDC v1.20, same segfault. I've then tried the older dub (v1.19) bundled with LDC v1.20, same segfault.