dub
dub copied to clipboard
DUB on WSL
System information
- dub version: 1.19.0-1build2
- OS Platform and distribution: Windows 10 but within WSL Ubuntu
- compiler version: ldc 1.20.1
Bug Description
Can't run dub on WSL, after a sudo apt install dub
How to reproduce?
- Install WSL Ubuntu on Windows
- run
sudo apt install dub - type
dub
Expected Behavior
DUB running.
Logs
The error message displayed is:
dub: symbol lookup error: dub: undefined symbol: _D3std3net4curl4HTTP9__mixin376onSendMFNdDFAvZmZv
The method in question is:
https://github.com/dlang/phobos/blob/master/std/net/curl.d#L2155
Note: it is not templated or being used by a template it absolutely should exist. The only thing interesting about it is that it is being used via a mixin template.
This is a bug on the compiler side, not dub.
- Ldc 1.20 is two years old now, Dub 1.19 is two and a half years old soon. Wasn't there an issue with symbol mangling of Phobos one time, causing link errors?
- Can Ldc be used successfully by hand?
- This looks like a bug in the compiler installation, it is not necessarily Dub's fault, right?
- Does a manual installation of recent Ldc work? It includes Dub. https://github.com/ldc-developers/ldc/releases.
- Could an installation in WSL be interfering with an installation in Windows natively?
This feels like more of a symptom of Ubuntu LTS releases keeping stuff extremely old than anything we can actually fix. ubuntu focal should hopefully be on it's way out. Presumably we can backport a fix but I have no idea how
This is not a dub issue, but an issue with the packaging. I'm using dub on WSL on a daily basis and it works.