Hi,
I've recently installed ldc2 and am trying to compile a simple hello world. Unfortunately, it fails with a simple
dtn@bamboo-forest ~/dev/nxm-d $ ldc2 source/app.d
collect2: fatal error: cannot find 'ld'
compilation terminated.
Error: /usr/bin/gcc failed with status: 1

Running which ld gives /usr/bin/ld
Running whereis ld gives ld: /usr/bin/ld.bfd /usr/bin/ld /usr/share/man/man1/ld.1 /usr/share/info/ld.info

I have run sudo eopkg install -c system.devel && sudo eopkg up && sudo eopkg check and all my packages are up to date and intact as of 2019-03-17

Cheers, dtn

sudo eopkg it -c system.devel. Compiler tools help 🙂

  • dtn replied to this.

    Justin
    I already have them installed.

    dtn@bamboo-forest ~/dev/nxm-d $ sudo eopkg it -c system.devel
    Password:
    The following package(s) are already installed and are not going to be installed again:
    abireport autoconf automake bash-completion-devel binutils bison
    bison-devel catbox cmake dbus-devel diffstat diffutils
    expat-devel fakeroot file-devel flex flex-devel g++
    gcc gettext-devel gfortran glibc-devel gmp-devel gobject-introspection-devel
    intltool libarchive-bin libffi-devel libgpg-error-devel libgudev-devel libtool-devel
    libxml2-devel linux-headers m4 make meson mpc-devel
    mpfr-devel nano nasm ncurses-devel openssl-devel pam-devel
    patch perl-xmlparser pkg-config polkit-devel python-devel quilt
    readline-devel systemd-devel texinfo util-linux-devel xz-devel ypkg
    zlib-devel
    No packages to install.
    dtn@bamboo-forest ~/dev/nxm-d $ ldc2 source/app.d
    collect2: fatal error: cannot find 'ld'
    compilation terminated.
    Error: /usr/bin/gcc failed with status: 1

    I have already tried with the --reinstall flag and eopkg check reports no broken packages.