From 2818c66e93c4803de1d9fb8fbc11ccc9fa6a1859 Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Fri, 6 Aug 2021 14:40:17 -0700 Subject: [PATCH] gnu: go-1.14: Fix test failure with GCC 9+. With GCC 9+, go-1.14 fails a test when the gold linker is not available (https://github.com/golang/go/issues/39157). Backport the fix for that from https://github.com/golang/go/commit/4ec4a79. * gnu/packages/golang.scm (go-1.14)[arguments]<#:phases>{prebuild}: Fix test failure with GCC 9+. Signed-off-by: Efraim Flashner --- gnu/packages/golang.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 590854d74e..ec58c4d984 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1248,6 +1248,11 @@ (define-public go-1.14 (("/bin/pwd") (which "pwd")) (("/bin/sh") (which "sh"))) + ;; Backport fix for go-1.14 with GCC 9+ + ;; https://github.com/golang/go/issues/39157 + (substitute* "cmd/go/note_test.go" + (("cannot find 'ld'") "cannot find [‘']ld[’']")) + ;; Add libgcc to runpath (substitute* "cmd/link/internal/ld/lib.go" (("!rpath.set") "true"))