dub icon indicating copy to clipboard operation
dub copied to clipboard

DUB on WSL

Open p0nce opened this issue 3 years ago • 3 comments

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

p0nce avatar May 12 '22 10:05 p0nce

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.

rikkimax avatar May 12 '22 10:05 rikkimax

  1. 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?
  2. Can Ldc be used successfully by hand?
  3. This looks like a bug in the compiler installation, it is not necessarily Dub's fault, right?
  4. Does a manual installation of recent Ldc work? It includes Dub. https://github.com/ldc-developers/ldc/releases.
  5. Could an installation in WSL be interfering with an installation in Windows natively?

veelo avatar May 31 '22 20:05 veelo

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

maxhaton avatar Jun 01 '22 12:06 maxhaton

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.

Geod24 avatar Dec 29 '23 01:12 Geod24