~ruther/guix-local

ea028c3b0db7c22465e0c0d3e1a3a3502618bdf5 — Sharlatan Hellseher 5 months ago 1f770b0
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
1 files changed, 6 insertions(+), 1 deletions(-)

M gnu/packages/golang.scm
M gnu/packages/golang.scm => gnu/packages/golang.scm +6 -1
@@ 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