collect2: fatal error: cannot find 'ld' -> -no-use-gold-linker
Solved
Mobile and Embedded
-
I am using cross compiler gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
which is #arm-linux-gnueabihf-gcc (Linaro GCC 4.9-2016.02) to compile Qt5.7During configuration phase, it prompts
toolchain/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -fvisibility=hidden fvisibility.c
Symbol visibility control enabled.
collect2: fatal error: cannot find 'ld'
and also saying that your compiler does not support force gold.The solution is add **-no-use-gold-linker ** for your configure command.
It took me much time to figure this out.
-
Hi,
Thanks for the tip !