Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

arm-linux-gnu-gcc collect2: fatal error: cannot find 'ld'

I've installed gcc-arm-linux-gnu-4.9.1-1.fc20.x86_64 on my Fedora 20 box.

$ cat main.c 
int main(void)
{
    return 0;
}
$ arm-linux-gnu-gcc main.c 
collect2: fatal error: cannot find 'ld'
compilation terminated.

Am I missing something? Is this a bug?

like image 444
Jonathon Reinhart Avatar asked Dec 28 '14 09:12

Jonathon Reinhart


1 Answers

I think you encountered an instance of bug 1122003. It seems to have been solved in gcc-arm-linux-gnu-4.9.1-1.1.fc22.x86_64, or you should be able to work around it with the --with-ld flag in the meanwhile.

like image 146
Mureinik Avatar answered Oct 19 '22 13:10

Mureinik