collect2: fatal error: cannot find 'ld'

Jack jckj33 at gmail.com
Tue Dec 8 20:41:42 UTC 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:
>
>>collect2: fatal error: cannot find 'ld'
>>compilation terminated.
>>Error: /usr/bin/cc failed with status: 1
>
> the command:
>>whereis ld
>
> return
>
>>ld: /usr/bin/ld /usr/bin/ld.bfd /usr/share/man/man1/ld.1.gz
>>>/usr/share/info/ld.info.gz
>
> So 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

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 find


More information about the digitalmars-d-ldc mailing list