Mar 20, 2026, 18:33 by [email protected]:

> Hey, glad you are doing it, it's something I wanted to do but was unable to 
> get a working gcc11. I can help you to review.
>
> Thank you for working on it
> Etienne
>
>
Hi Etienne, 

I am glad to hear I am not alone with this :).

If you already want to take a look the code is here:
As a warning it is still very unorganized and not pretty but a lot already 
works.

For some parts I just copied the linux version and have not looked to closely 
yet.
https://codeberg.org/Yelninei/dmd
https://codeberg.org/Yelninei/phobos

I'll start cleaning things up later today on another branch, which should make 
it easier to reason about.
I put the gcc 11/14 patches which I used to boostrap dmd here 
https://codeberg.org/Yelninei/dmd/src/branch/version-1.112/patches but I have 
not kept them up to date with some of the later fixes as maintaining 3 versions 
was a bit much.
I'll need to recreate them once the druntime changes get stabilized.


For gcc-11 I added https://github.com/dlang/phobos/pull/8412 which claims 
initial support for Hurd in Phobos, but I am not sure how that is supposed to 
work when the core.sys.hurd.time module does not exist, so I am not sure how 
ibuclaw was able to compile it.

The main issue with gcc-11 is described in 
https://bugzilla-archive.dlang.org/bugs/22689/ which makes druntime use 
CRuntime_Glibc when it actually means linux+glibc which also caused problems 
for kfreebsd-gnu.
This is in a better state in newer versions.
I also opened a thread on the dlang forums 
https://forum.dlang.org/post/[email protected] 


Reply via email to