guix_mirror_bot pushed a commit to branch master
in repository guix.
commit ea028c3b0db7c22465e0c0d3e1a3a3502618bdf5
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Oct 15 13:07:36 2025 +0100
gnu: go-1.17: Add binutils-gold for armhf-linx and aarch64-linux.
Compilation of "plugin.test" fails on aarch64-linux system after
binutils-gold was removed form native inputs. This change adds it back
conditionally.
/gnu/store/pm409aqyb5i21sf9kn8li31p91sfrj38-gcc-14.3.0/bin/gcc
-s
-Wl,-z,now
-Wl,-z,nocopyreloc
-fuse-ld=gold
-o
$WORK/b1499/plugin.test
-Wl,-rpath,/gnu/store/4hw376vyz889zgzrr8mkp82c0d4iz391-gcc-14.3.0-lib/lib
-rdynamic
<...>
-O2
-g
-ldl
-O2
-g
-lpthread
collect2: fatal error: cannot find ‘ld’
See:
<https://bordeaux.guix.gnu.org/build/a702cf61-da67-4900-95d2-b2eabd9b83cf/log>.
Change-Id: Ida07cafd632c355dc05cad1ce4ccd0cd6f38a530
---
gnu/packages/golang.scm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index e7eb1335c8..168a2d4efe 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -491,7 +491,12 @@ in the style of communicating sequential processes
(@dfn{CSP}).")
`(("go" ,gccgo-12)))
("go-skip-gc-test.patch" ,(search-patch "go-skip-gc-test.patch"))
("go-fix-script-tests.patch" ,(search-patch
"go-fix-script-tests.patch"))
- ,@(package-native-inputs go-1.4)))
+ ,@(package-native-inputs go-1.4)
+ ;; For plugin.test which requires "-fuse-ld=gold"
+ ,@(match (%current-system)
+ ((or "armhf-linux" "aarch64-linux")
+ `(("gold" ,binutils-gold)))
+ (_ `()))))
(home-page "https://go.dev/")
(synopsis "Compiler and libraries for Go, a statically-typed language")
(description "Go, also commonly referred to as golang, is an imperative