Details
-
Bug
-
Status: Closed
-
P3: Somewhat important
-
Resolution: Done
-
5.12
-
None
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