www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - How to bootstrap dmd/ldc on a new distro that uses llvm and musl-libc?

reply SN <sn03.general gmail.com> writes:
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..)
Nov 16 2023
next sibling parent SN <sn03.general gmail.com> writes:
The distro is Chimera Linux (https://chimera-linux.org), for 
those who were wondering.

It's pretty neat!
Nov 16 2023
prev sibling next sibling parent Sergey <kornburn yandex.ru> writes:
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
Nov 16 2023
prev sibling parent ryuukk_ <ryuukk.dev gmail.com> writes:
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
Nov 16 2023