digitalmars.D.ldc - collect2: fatal error: cannot find 'ld'
- Jack (8/14) Dec 08 2020 the command:
- Jack (5/19) Dec 08 2020 fixed with
- Johan Engelen (7/32) Dec 08 2020 If you compile with `-v`, you'll see that LDC calls `cc` for
I just installed ldc on open suse[1] but when I went to compile I get this error:collect2: fatal error: cannot find 'ld' compilation terminated. Error: /usr/bin/cc failed with status: 1the command:whereis ldreturnld: /usr/bin/ld /usr/bin/ld.bfd /usr/share/man/man1/ld.1.gzSo at least the terminal can find it in the PATH variable. How can I fix this for ldc? [1]: with this script curl -fsS https://dlang.org/install.sh | bash -s ldc/usr/share/info/ld.info.gz
Dec 08 2020
On Tuesday, 8 December 2020 at 20:25:24 UTC, Jack wrote:I just installed ldc on open suse[1] but when I went to compile I get this error:fixed with sudo zypper install binutils-gold for some reason reinstall binutils didn't work but install binutils-gold put ld somewhere where ldc2 could findcollect2: fatal error: cannot find 'ld' compilation terminated. Error: /usr/bin/cc failed with status: 1the command:whereis ldreturnld: /usr/bin/ld /usr/bin/ld.bfd /usr/share/man/man1/ld.1.gzSo at least the terminal can find it in the PATH variable. How can I fix this for ldc? [1]: with this script curl -fsS https://dlang.org/install.sh | bash -s ldc/usr/share/info/ld.info.gz
Dec 08 2020
On Tuesday, 8 December 2020 at 20:41:42 UTC, Jack wrote:On Tuesday, 8 December 2020 at 20:25:24 UTC, Jack wrote:If you compile with `-v`, you'll see that LDC calls `cc` for linking, and passes -fuse-ld=gold to cc on Linux, forcing the use of ld.gold. You can prevent this by passing `-linker=` (empty) to LDC, such that the default linker is used by `cc`. cheers, JohanI just installed ldc on open suse[1] but when I went to compile I get this error:fixed with sudo zypper install binutils-gold for some reason reinstall binutils didn't work but install binutils-gold put ld somewhere where ldc2 could findcollect2: fatal error: cannot find 'ld' compilation terminated. Error: /usr/bin/cc failed with status: 1the command:whereis ldreturnld: /usr/bin/ld /usr/bin/ld.bfd /usr/share/man/man1/ld.1.gzSo at least the terminal can find it in the PATH variable. How can I fix this for ldc? [1]: with this script curl -fsS https://dlang.org/install.sh | bash -s ldc/usr/share/info/ld.info.gz
Dec 08 2020