From ea028c3b0db7c22465e0c0d3e1a3a3502618bdf5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 15 Oct 2025 13:07:36 +0100 Subject: [PATCH] gnu: go-1.17: Add binutils-gold for armhf-linx and aarch64-linux. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: . 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 e7eb1335c888b0cb65370605c7291aeb77ca1b5d..168a2d4efed2ca8f9e5b7a0198d98b7af3bc17e6 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