GNU bug report logs - #75970
[PATCH] gnu: go-github-com-cespare-xxhash-v2: Fix build on aarch64.

Previous Next

Package: guix-patches;

Reported by: Roman Scherer <roman <at> burningswell.com>

Date: Fri, 31 Jan 2025 15:12:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 75970 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#75970; Package guix-patches. (Fri, 31 Jan 2025 15:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Roman Scherer <roman <at> burningswell.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 31 Jan 2025 15:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Roman Scherer <roman <at> burningswell.com>
To: guix-patches <at> gnu.org
Cc: Roman Scherer <roman <at> burningswell.com>
Subject: [PATCH] gnu: go-github-com-cespare-xxhash-v2: Fix build on aarch64.
Date: Fri, 31 Jan 2025 16:11:26 +0100
* gnu/packages/golang-crypto.scm (go-github-com-cespare-xxhash-v2): Fix build on aarch64.

Change-Id: I348839621b1937618714d7ca5c6a49b291a27e70
---
 gnu/packages/golang-crypto.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index 75c56684d4..3b0f521244 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -442,7 +442,12 @@ (define-public go-github-com-cespare-xxhash-v2
        (sha256
         (base32 "1f3wyr9msnnz94szrkmnfps9wm40s5sp9i4ak0kl92zcrkmpy29a"))
        (modules '((guix build utils)))
-       (snippet '(delete-file-recursively "xxhashbench"))))
+       (snippet
+        `(begin
+           (delete-file-recursively "xxhashbench")
+           (when ,(target-aarch64?)
+             ;; Fails on aarch64 with: collect2: fatal error: cannot find ‘ld’
+             (delete-file-recursively "dynamic"))))))
     (arguments
      (list
       #:import-path "github.com/cespare/xxhash/v2"

base-commit: bdd6760b8c46e59f86415d67981acb6f77e9ed22
-- 
2.48.1





Information forwarded to guix-patches <at> gnu.org:
bug#75970; Package guix-patches. (Fri, 31 Jan 2025 15:26:02 GMT) Full text and rfc822 format available.

Message #8 received at 75970 <at> debbugs.gnu.org (full text, mbox):

From: Roman Scherer <roman.scherer <at> burningswell.com>
To: 75970 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Subject: go-github-com-cespare-xxhash-v2 failing on aarch64
Date: Fri, 31 Jan 2025 16:25:31 +0100
[Message part 1 (text/plain, inline)]
Hi Oleg,

I while ago you helped me adding the Hetzner CLI to Guix. It has now
landed, but unfortunatly I can't build it anymore on my aarch64 system,
because the go-github-com-cespare-xxhash-v2 is failing.

I saw that Ian Eure mentioned something about changes to the go build
system in https://issues.guix.gnu.org/75932.

Not sure if this is related. The only suspicious thing I saw in
go-github-com-cespare-xxhash-v2 is this:

https://github.com/cespare/xxhash/blob/main/dynamic/plugin.go#L1-L2

Nevertheless I now submitted a patch for go-github-com-cespare-xxhash-v2
that removes the dynamic folder on aarch64 which causes the build to
fail. I'm not sure if this is an optional dependency or not, but with
this change I can build the Hetzner CLI again.

Can you help me with this? Do you have any ideas about this?

Thanks, Roman.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.