Thread overview
Looking to make a GDC-12 mingw64 package
May 21

Hi GDC

I've been able to build gdc-12.1 on ubuntu20 using

wget http://mirrors.concertpass.com/gcc/releases/gcc-12.1.0/gcc-12.1.0.tar.xz
tar -xvf gcc-12.1.0.tar.xz
cd gcc-12.1.0
mkdir build
cd build
../configure --prefix=/usr/local/gcc12 --enable-languages=d \
  --enable-libphobos-checking --disable-multilib --program-suffix=-12
make -j6
make install

Now I'm looking to repeat the process for mingw64. I see that I'll need an older version of gdc first, say 11.3. So that's okay, I'll build it twice, but in general I'm wondering if:

  1. Anyone has built gdc-11 in the mingw64 environment since it seems a few patches are required?

  2. How we might go about creating a pacman package for gdc-12 since it requires an existing D compiler?

The first one is just an information request since the old PKGBUILD files are on github, but the second one is a bit more daunting. Without a previous version of gdc to build gdc it might be hard to get a mingw64 package accepted.

Thanks

May 21
On Saturday, 21 May 2022 at 21:18:15 UTC, Chris Piker wrote:
>   1. Anyone has built gdc-11 in the mingw64 environment since it seems a few patches are required?

No patches are required, it is all upstreamed if you use the right settings.

See my comment here:

https://github.com/brechtsanders/winlibs_mingw/issues/48#issuecomment-1044782237


(the maintainer of that repo wants to do binary packages but with pthreads, which has some missing headers. should be an easy patch but i haven't gotten around to it and i guess iain hasn't yet either. but with the configure command i pasted there you can do it)

>   2. How we might go about creating a pacman package for gdc-12 since it requires an existing D compiler?

i don't know anything about this.

May 22

On Saturday, 21 May 2022 at 21:23:52 UTC, Adam D Ruppe wrote:

>

See my comment here:

https://github.com/brechtsanders/winlibs_mingw/issues/48#issuecomment-1044782237

...an example working configure command, now that's very handy.

Regarding question 2, I hope to see gdc appear in just about any package repository that has gcc. It seems many package repositories (like mingw64) don't include it by default. And since it now takes a D compiler to make a D compiler, getting into the build tree system to start with is going to be a hurdle.

Maybe someone who has dealt with other distributions such as Debian can chime in with advice on how to approach this problem with the mingw crowd.