Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. collect2: fatal error: cannot find 'ld' -> -no-use-gold-linker
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved Solved Mobile and Embedded
gold linkerconfiurecompiler
3 Posts 3 Posters 5.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wweiradio
    wrote on 7 Jan 2017, 09:39 last edited by
    #1

    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.

    1 Reply Last reply
    3
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 7 Jan 2017, 22:42 last edited by
      #2

      Hi,

      Thanks for the tip !

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • B Offline
        B Offline
        badao
        wrote on 30 Sept 2018, 14:41 last edited by
        #3

        Thanks。
        you help me too much。

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved