Thread overview
How to bootstrap dmd/ldc on a new distro that uses llvm and musl-libc?
Nov 16
SN
Nov 16
SN
Nov 16
Sergey
Nov 16
ryuukk_
November 16

Hi there!

I'm testing out a new distro that uses LLVM toolchain and MUSL-libc.

I was trying to bootstrap dmd or ldc on it, but I couldn't find a way to do either...

There are no existing binaries that work, and the C++ versions of dmd require a VERY VERY OLD version of llvm...

I'm confused on how to bootstrap it now.

(The distro uses clang, not gcc..)

November 16

The distro is Chimera Linux (https://chimera-linux.org), for those who were wondering.

It's pretty neat!

November 16

On Thursday, 16 November 2023 at 19:55:11 UTC, SN wrote:

>

Hi there!

I'm testing out a new distro that uses LLVM toolchain and MUSL-libc.

I was trying to bootstrap dmd or ldc on it, but I couldn't find a way to do either...

There are no existing binaries that work, and the C++ versions of dmd require a VERY VERY OLD version of llvm...

I'm confused on how to bootstrap it now.

(The distro uses clang, not gcc..)

This thing is not finished - but probably it gives some ideas of how to bootstrap it: https://github.com/oceandrift/dlang-dockerized

November 16

On Thursday, 16 November 2023 at 19:55:11 UTC, SN wrote:

>

Hi there!

I'm testing out a new distro that uses LLVM toolchain and MUSL-libc.

I was trying to bootstrap dmd or ldc on it, but I couldn't find a way to do either...

There are no existing binaries that work, and the C++ versions of dmd require a VERY VERY OLD version of llvm...

I'm confused on how to bootstrap it now.

(The distro uses clang, not gcc..)

void linux is similar

https://github.com/void-linux/void-packages/tree/master/srcpkgs/dmd

They even have a simple patch for musl, maybe this one patch should be merged upstream (anyone willing to do it?)

There is also arch linux: https://gitlab.archlinux.org/archlinux/packaging/packages/dmd