On Wednesday, 10 July 2019 at 23:15:38 UTC, Johan Engelen wrote:
On Tuesday, 9 July 2019 at 15:25:17 UTC, Dukc wrote:
I just downloaded ldc 1.15.0 for Linux from GH releases. Testing it, it will make the object file out of a hello world application, but then complain:
```
collect2: fatal error: cannot find ‘ld’
compilation terminated.
```

Run LDC with "-v" and check what the linker command is (somewhere at the bottom, LDC invokes `gcc` for linking). You might see something like `-Wl,-fuse-ld=...` in that gcc command line. Perhaps that ld.gold / ld.bfd is not installed and thus GCC complains that it cannot find it. See e.g. https://askubuntu.com/questions/798453/collect2-fatal-error-cannot-find-ld-compilation-terminated

-Johan

Thanks, that worked, I needed ld.gold. There was a catch, however: one would think that `llvm8-gold` is the .rpm package in question, but installing it did change nothing. Good that you provided that link, otherwise I would never have quessed that I have to install `binutils-gold` instead.

Reply via email to