collect2: fatal error: cannot find 'ld' -> -no-use-gold-linker



  • 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.7

    During 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.


  • Lifetime Qt Champion

    Hi,

    Thanks for the tip !


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.