Installed with sudo apt-get install gdc in Ubuntu 18.04 - Can't compile a simple program.

Iain Buclaw ibuclaw at gdcproject.org
Wed Aug 7 05:54:58 UTC 2019


On Tue, 6 Aug 2019 at 19:15, Stefanos Baziotis via D.gnu
<d.gnu at puremagic.com> wrote:
>
> On Tuesday, 6 August 2019 at 16:38:56 UTC, Johannes Pfau wrote:
> >
> > gdc includes everything in /usr/include/d automatically. The
> > assumption is that distributions will only install global D
> > files there which are compiler-independent, just like in
> > /usr/include.
> >
> > Unfortunately dmd and/or ldc still seem to install their
> > druntime/phobos D files there, so you likely need to remove
> > these files from /usr/include/ d (the best way is to use the
> > uninstall procedure matching the way you installed it).
>
> The problem is that the way I installed them is by building
> LDC with ninja. And I don't know how this can be reverted. I've
> searched online,
> but apparently if something is installed without a package
> manager, then "Good Luck". :P

Maybe ldc should be fixed to install compiler-specific modules inside
a compiler-specific directory?  There may be a configure switch to
control that.

-- 
Iain


More information about the D.gnu mailing list