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 areinstalled gdc can't compile anything as it tries to load a versionof phobos installed by ldc2 which has features gdc doesn't yetsupport. 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
