mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: sbcl: Disable SB-SIMD module.
SB-SIMD gets enabled only on x86_64 CPUs supporting AVX2 instructions, and some x86_64 CPUs don't. Fixes <https://issues.guix.gnu.org/56353>. Reported by Wensheng Xie <xiewensheng@hotmail.com>. * gnu/packages/lisp.scm (sbcl)[arguments]: Disable SB-SIMD in the 'build' and 'build-doc' phases.
This commit is contained in:
parent
f89b581148
commit
e0d2f8164e
1 changed files with 11 additions and 10 deletions
|
@ -567,7 +567,12 @@ (define (quoted-path input path)
|
|||
(assoc-ref outputs "out"))
|
||||
"--dynamic-space-size=3072"
|
||||
"--with-sb-core-compression"
|
||||
"--with-sb-xref-for-internals")))
|
||||
"--with-sb-xref-for-internals"
|
||||
;; SB-SIMD will only be built on x86_64 CPUs supporting
|
||||
;; AVX2 instructions. Some x86_64 CPUs don't, so for reproducibility
|
||||
;; we disable it and we don't build its documentation (see the
|
||||
;; 'build-doc' phase).
|
||||
"--without-sb-simd")))
|
||||
(add-after 'build 'build-shared-library
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(setenv "CC" "gcc")
|
||||
|
@ -577,15 +582,11 @@ (define (quoted-path input path)
|
|||
(invoke "sh" "install.sh")))
|
||||
(add-after 'build 'build-doc
|
||||
(lambda _
|
||||
;; Building the documentation for SB-SIMD only works when SB-SIMD
|
||||
;; is enabled, so far only on x86_64-linux.
|
||||
,@(match (%current-system)
|
||||
("x86_64-linux"
|
||||
'())
|
||||
(_
|
||||
'((substitute* "doc/manual/generate-texinfo.lisp"
|
||||
;; Don't build the documentation for SB-SIMD as it is disabled in
|
||||
;; the 'build' phase.
|
||||
(substitute* "doc/manual/generate-texinfo.lisp"
|
||||
(("exclude '\\(\"asdf\"\\)")
|
||||
"exclude '(\"asdf\" \"sb-simd\")")))))
|
||||
"exclude '(\"asdf\" \"sb-simd\")"))
|
||||
(with-directory-excursion "doc/manual"
|
||||
(and (invoke "make" "info")
|
||||
(invoke "make" "dist")))))
|
||||
|
|
Loading…
Reference in a new issue