bsnes build might be not reproducible

OpenSubmitted by Nicolò Balzarotti.
Details
One participant
  • Nicolò Balzarotti
Owner
unassigned
Severity
normal
N
N
Nicolò Balzarotti wrote on 12 Apr 10:01 +0200
(address . bug-guix@gnu.org)
87mtu4ue2g.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me
Hi guix,
I get an 'Illegal instruction' error when running bsnes (on my X200).
$ guix environment --ad-hoc bsnes$ bsnesIllegal instruction
The makefile contains this:https://github.com/bsnes-emu/bsnes/blob/4ea984b6886ecb61afc26c177eeced77e8582a44/bsnes/GNUmakefile#L17(march=native when local)
I tried to patch it, but I don't know how to check if this is fixed.
I attach the patch here, on my laptop applied over 073b12d70d I get
guix hash -r /gnu/store/h2k0la0cyilfj7y7vm9r2zs1vi3wkiwy-bsnes-1150298ajc60qpjhllyqv8gdb503bzg0rcd7pvigq22h7gm58d0g0sd
Thanks!
From 2707ecb0c39cd731344cb1f68d17662b7272b415 Mon Sep 17 00:00:00 2001From: nixo <nicolo@nixo.xyz>Date: Mon, 12 Apr 2021 09:42:13 +0200Subject: [PATCH] gnu: bsnes: Disable march=native
--- gnu/packages/emulators.scm | 2 ++ 1 file changed, 2 insertions(+)
Toggle diff (15 lines)diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scmindex 8482f679e2..09d6095a7d 100644--- a/gnu/packages/emulators.scm+++ b/gnu/packages/emulators.scm@@ -1955,6 +1955,8 @@ from various forks of Gens, and improved platform portability.") (build-system gnu-build-system) (arguments `(#:make-flags (list "-C" "bsnes"+ ;; Remove march=native+ "local=false" (string-append "prefix=" (assoc-ref %outputs "out"))) #:tests? #f ; No tests. #:phases (modify-phases %standard-phases-- 2.31.1
?