gdc broken by ldc-phobos-devel on Fedora

Matthias Klumpp mak at debian.org
Thu Nov 21 23:25:34 UTC 2019


On Wednesday, 20 November 2019 at 21:51:58 UTC, mipri wrote:
> Howdy,
>
> This was the case in Fedora 30, and is now the case in Fedora 
> 31.
> RPMs are available for gdc and for ldc2, but when both are
> installed gdc can't compile anything as it tries to load a 
> version
> of phobos installed by ldc2 which has features gdc doesn't yet
> support. For someone who's decided to just use gdc for a 
> project,
> they have the easy fix of just uninstalling ldc2, but I'd expect
> that someone evaluating D as a language will be interested in
> comparing the different compilers, so all the compilers will be
> installed--and then only dmd and ldc will be functional.

That's why we explicitly set the LDC include path in Debian: 
https://salsa.debian.org/d-team/ldc/blob/master/debian/rules#L15
This is a bug in Fedora, you could file an issue with the package 
at Fedora and ask them to do the same as Debian for include paths.
(we do set the path explicitly as linked, and also apply this 
patch: 
https://salsa.debian.org/d-team/ldc/blob/master/debian/patches/02_ldc_include_path.diff

Cheers,
     Matthias


More information about the D.gnu mailing list