Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-73216

yocto toolchain calls bfd linker instead of gold

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.12.1
    • 5.12
    • Device Creation, WebEngine
    • None
    • Linux/X11

    Description

      Currently for embedded build by default we disable gold linker, even though support is reported by the toolchain. When trying to use gold it seems that poky gcc toolchain still tries to call real-ld (witch symlinks to ld.bfd) instead of gold despite of gcc driver having '-fuse-ld=gold'

      agent:2019/01/17 13:03:46 build.go:192: FAILED: libosmesa.so 
      agent:2019/01/17 13:03:46 build.go:192: /opt/yocto-arm64/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++ -shared -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--as-needed -fuse-ld=gold -B../../3rdparty/chromium/third_party/binutils/Linux_x64/Release/bin -Wl,--icf=all -Wl,-O2 -Wl,--gc-sections --sysroot=../../../../../../../../opt/yocto-arm64/sysroots/aarch64-poky-linux -o "./libosmesa.so" -Wl,-soname="libosmesa.so" @"./libosmesa.so.rsp"
      agent:2019/01/17 13:03:46 build.go:192: /opt/yocto-arm64/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/6.4.0/real-ld: unrecognized option '--icf=all'
      agent:2019/01/17 13:03:46 build.go:192: /opt/yocto-arm64/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/6.4.0/real-ld: use the --help option for usage information
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sapiippo Samuli Piippo
            michal Michal Klocek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes