Open sebsto opened 1 year ago
commit 8723c3add11eff25826b05275342b5df845ba31e (origin/al2022-new-macros)
Author: Amit Shah <aams@amzn.com>
Date: Wed Jun 29 13:34:08 2022 +0000
binutils: drop gold
The gold linker has bitrotted, and does not see updates anymore.
The original devs of the gold linker have moved on to LLVM.
This drops the subpackage binutils-gold.
This is an intentional change, to not currently ship ld.gold
.
Is the root request here to have the Swift
compiler available on Amazon Linux 2023?
I am working with Apple on the scripts used to build the distribution packages of Swift on different platforms. We are adding support for Amazon Linux 2023. https://github.com/apple/swift-installer-scripts
The port from Amazon Linux 2 to Amazon Linux 2023 is made difficult by two breaking changes:
ld.gold
forcing us to modify the build scripts to use lld
on Amazon Linux 2023 only (other platforms Ubuntu, ALI2, RedHat, Oracle Linux, Debian all provide ld.gold
)/lib/gcc/aarch64-amazon-linux/11
which is not found - by default - by clang
. I wonder what drove the decision to use a custom name vs using a standard one like aarch64-linux-gnu
Similar issue with Go, it currently requires the Gold linker for builds on ARM so the official binary releases are not compatible (https://github.com/golang/go/issues/22040).
It looks like this may be resolved in binutils 2.41 (https://github.com/golang/go/issues/22040#issuecomment-1678403929), however this is also newer than what Amazon Linux 2023 ships with.
Here is an easy script to install ld.gold
from the sources on Amazon Linux 2023
https://gist.github.com/sebsto/219315a80333fb0661e03be2e0d00c80
to build pandoc
you need ld.gold
The regular linker probably works fine (although I haven't tried it)
for some reason the haskel cabal builds in EPEL need the ld.gold linker to build.
¯\_(ツ)_/¯
Describe the bug On ALI2 (and Ubuntu) the linker
ld.gold
is included in thebinutils
packageThe linker is missing from
binutils
package on ALi2023.This prevent to build some open source projects from the source (ex : https://swift.org)
To Reproduce To an instance with ALI2023 and type
Expected behavior
ld.gold
is part of the standard toolchain for multiple open source projects. These projects can not be compiled on ALI2023Screenshots n/a
Desktop (please complete the following information):