gnu: xnnpack: Fix build on riscv64-linux.

* gnu/packages/machine-learning.scm (xnnpack)[native-inputs]: When target
riscv64, Add gcc-14.

Change-Id: Ifd19f13e6148cd9aa0bbdbf427466b1030da9a5e
This commit is contained in:
Zheng Junjie 2025-03-22 22:16:04 +08:00
parent 90dd6cf01c
commit 1d4ad65066
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -4483,7 +4483,12 @@ on quantized 8-bit tensors.")
fxdiv
fp16
psimd))
(native-inputs (list python-pyyaml python-wrapper))
(native-inputs
(append (if (target-riscv64?)
;; Required by "#include <riscv_vector.h>"
(list gcc-14)
(list))
(list python-pyyaml python-wrapper)))
(synopsis "Optimized floating-point neural network inference operators")
(description
"XNNPACK is a highly optimized library of floating-point neural network