guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: stockfish: Add support for more architecture


From: guix-commits
Subject: branch master updated: gnu: stockfish: Add support for more architectures.
Date: Sun, 24 Apr 2022 10:35:46 -0400

This is an automated email from the git hooks/post-receive script.

efraim pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 03d0f7cca1 gnu: stockfish: Add support for more architectures.
03d0f7cca1 is described below

commit 03d0f7cca15dfd212a1631e009b5070ad1811ca0
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Apr 24 17:32:42 2022 +0300

    gnu: stockfish: Add support for more architectures.
    
    * gnu/packages/games.scm (stockfish)[arguments]: Add ARCH matches for
    more architectures. Add EXTRALDFLAGS for powerpc-linux. Add phase to
    remove '-m' compiler flags.
---
 gnu/packages/games.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 7aad3c00d0..83c75e8dcf 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -11986,12 +11986,18 @@ etc.  You can also play games on FICS or against an 
engine.")
                             "build"
                             (string-append "PREFIX="
                                            (assoc-ref %outputs "out"))
+                            ,@(if (target-ppc32?)
+                                `("EXTRALDFLAGS=-latomic")
+                                `())
                             (string-append "ARCH="
                                            ,(match (%current-system)
                                               ("x86_64-linux" "x86-64")
                                               ("i686-linux" "x86-32")
                                               ("aarch64-linux" "armv8")
                                               ("armhf-linux" "armv7")
+                                              ("powerpc-linux" "ppc-32")
+                                              ("powerpc64le-linux" "ppc-64")
+                                              ("riscv64-linux" "general-64")
                                               ("mips64el-linux" "general-64")
                                               (_ "general-32"))))
          #:phases (modify-phases %standard-phases
@@ -12002,7 +12008,12 @@ etc.  You can also play games on FICS or against an 
engine.")
                       (lambda* (#:key inputs #:allow-other-keys)
                         (copy-file (assoc-ref inputs "neural-network")
                                    (format #f "src/nn-~a.nnue"
-                                           ,neural-network-revision)))))))
+                                           ,neural-network-revision))))
+                    ;; Guix doesn't use a multiarch gcc.
+                    (add-after 'unpack 'remove-m-flag
+                      (lambda _
+                        (substitute* "src/Makefile"
+                          (("-m\\$\\(bits\\)") "")))))))
       (synopsis "Strong chess engine")
       (description
        "Stockfish is a very strong chess engine.  It is much stronger than the



reply via email to

[Prev in Thread] Current Thread [Next in Thread]