I am using Linux Mint 22.2 with kernel version 7.0.0-29-generic and have
encountered the following error:
*guix shell: error: short write in copy_file_range `15' to `16': No such
file or directory*
This occurs while attempting to build *cuda_12.9.1 *via
*guix shell --file=fwht-cuda.scm -- bash*
Please find the attached logs for reference:
-
*guix-describe.log* – my current Guix configuration
-
*guix-shell-error* – the complete error log
-
*fwht-cuda-scm* – the package I am trying to build
(define-module (fwht-cuda-openmp-simd-local)
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages)
#:use-module (guix gexp)
#:use-module (gnu packages gcc)
#:use-module (gnu packages commencement)
#:use-module (guix-science-nonfree packages cuda))
;; git ls-remote https://github.com/hadipourh/fwht HEAD
(define commit "f6313205f6461f26997d8e1f0f20ea516662f3b3")
(define revision "1")
(define-public fwht
(package
(name "fwht-cuda-openmp-simd")
(version (git-version "0.0.0" revision commit))
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/hadipourh/fwht")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"0ipxzjhf6kzhgj3yj2cymzn1wr0xjasrpbyd38fld8cflqwnal0p"))))
(build-system gnu-build-system)
(arguments
(list
#:tests? #f
#:make-flags
#~(let* ((cuda (this-package-input "cuda-toolkit")))
(list
(string-append "PREFIX=" #$output)
(string-append "CUDA_PATH=" #$cuda)
(string-append "CUDA_LDFLAGS=-L" #$cuda "/lib64 -lcudart -lstdc++")
"LDFLAGS=-fopenmp"))
#:phases
#~(modify-phases %standard-phases
(delete 'bootstrap)
(delete 'configure)
(add-after 'unpack 'use-portable-simd-target
(lambda _
(substitute* "Makefile"
(("-march=native")
"-march=x86-64-v3 -mtune=generic"))))
(replace 'build
(lambda* (#:key make-flags #:allow-other-keys)
(apply invoke "make"
(append make-flags (list "all" "lib" "cli"))))))
))
(native-inputs
(list gcc-toolchain))
(inputs
(list cuda-12.9))
(home-page "https://github.com/hadipourh/fwht")
(synopsis "Fast Walsh-Hadamard Transform library")
(description
"This package provides a high-performance C99 library for computing
the Fast Walsh-Hadamard Transform (FWHT), a fundamental tool in
cryptanalysis and Boolean function analysis. It offers an
OpenMP-accelerated CPU backend with AVX2 SIMD support and CUDA GPU backend, static and shared
library builds, and an optional command-line tool.")
(license license:gpl3)))
fwhtguix describe
Génération 3 24 août 2026 17:44:04 (actuelle)
guix-hpc d0e90d7
URL du dépôt : https://gitlab.inria.fr/guix-hpc/guix-hpc.git
branche : master
commit : d0e90d7f19cbc913099d0bb21284f0c6dd0f4a0f
guix-hpc-non-free 7143343
URL du dépôt : https://gitlab.inria.fr/guix-hpc/guix-hpc-non-free.git
branche : master
commit : 7143343df25ed12c9b5dcf579354a5ccdcc4e826
guix 5d47303
URL du dépôt : https://git.guix.gnu.org/guix.git
branche : master
commit : 5d473033d7d6cf848dc875d5d82325578499b22b
guix-science-nonfree 54a483d
URL du dépôt : https://codeberg.org/guix-science/guix-science-nonfree.git
branche : master
commit : 54a483df56f24d8fd1c91ed3de547f5f1cf85964
guix-science 5dbc7d0
URL du dépôt : https://codeberg.org/guix-science/guix-science.git
branche : master
commit : 5dbc7d0f7b2d655b5c6305850f77b6aca0dcf28f
guix-past 1ef1e51
URL du dépôt : https://codeberg.org/guix-science/guix-past.git
branche : master
commit : 1ef1e5172f2631ee21cfc59656a64be3b5f0f8b3
here is guix channel:
(list (channel
(name 'guix-hpc)
(url "https://gitlab.inria.fr/guix-hpc/guix-hpc.git")
(branch "master"))
(channel
(name 'guix-hpc-non-free)
(url "https://gitlab.inria.fr/guix-hpc/guix-hpc-non-free.git")
(branch "master"))
(channel
(name 'guix)
(url "https://git.guix.gnu.org/guix.git")
(branch "master")
(introduction
(make-channel-introduction
"9edb3f66fd807b096b48283debdcddccfea34bad"
(openpgp-fingerprint
"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA"))))
(channel
(name 'guix-science-nonfree)
(url "https://codeberg.org/guix-science/guix-science-nonfree.git")
(branch "master")
(introduction
(make-channel-introduction
"58661b110325fd5d9b40e6f0177cc486a615817e"
(openpgp-fingerprint
"CA4F 8CF4 37D7 478F DA05 5FD4 4213 7701 1A37 8446"))))
(channel
(name 'guix-science)
(url "https://codeberg.org/guix-science/guix-science.git")
(branch "master")
(introduction
(make-channel-introduction
"b1fe5aaff3ab48e798a4cce02f0212bc91f423dc"
(openpgp-fingerprint
"CA4F 8CF4 37D7 478F DA05 5FD4 4213 7701 1A37 8446"))))
(channel
(name 'guix-past)
(url "https://codeberg.org/guix-science/guix-past.git")
(branch "master")
(introduction
(make-channel-introduction
"0c119db2ea86a389769f4d2b9c6f5c41c027e336"
(openpgp-fingerprint
"3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5")))))
guix shell --file=fwht-cuda.scm -- bash
substitute: mise à jour des substituts depuis « https://ci.guix.gnu.org »... 100.0 %
substitute: mise à jour des substituts depuis « https://bordeaux.guix.gnu.org »... 100.0 %
Les dérivations suivantes seront compilées :
/gnu/store/9gw3g5sksximv0h4f9z8k54mqwvy9z37-fwht-cuda-openmp-simd-0.0.0-1.f631320-checkout.drv
/gnu/store/fwhk4ihawzb6xmapa5gwfbk1dia4hxcv-cuda_12.9.1_575.57.08_linux.run.drv
/gnu/store/yq8xzbw5yzqdhx39fkp2lrax8nzskp0l-cuda-samples.drv
/gnu/store/aid5xxlqhfpy7z3cfqz88h1zjf475hid-cuda-toolkit-12.9.1.drv
/gnu/store/6m6pv70cazxml9s2rkqwwasglrpjiw69-fwht-cuda-openmp-simd-0.0.0-1.f631320.drv
/gnu/store/dpqhnr5dz7jknafhgy5i14vqaw4zr8nc-profile.drv
168,0 Mo seront téléchargés
module-import-compiled 110KiB 1.4MiB/s 00:00 ▕██████████████████▏ 100.0%
diffutils-3.12 325KiB 3.5MiB/s 00:00 ▕██████████████████▏ 100.0%
ed-1.21 54KiB 5.4MiB/s 00:00 ▕██████████████████▏ 100.0%
file-5.46 356KiB 5.6MiB/s 00:00 ▕██████████████████▏ 100.0%
findutils-4.10.0 484KiB 9.2MiB/s 00:00 ▕██████████████████▏ 100.0%
gawk-5.3.0 1.2MiB 14.7MiB/s 00:00 ▕██████████████████▏ 100.0%
gcc-13.3.0-lib 5.3MiB 11.8MiB/s 00:00 ▕██████████████████▏ 100.0%
guile-gnutls-5.0.2-debug 331KiB 12.5MiB/s 00:00 ▕██████████████████▏ 100.0%
isl-0.24 789KiB 12.8MiB/s 00:00 ▕██████████████████▏ 100.0%
libfontenc-1.1.8 13KiB 2.7MiB/s 00:00 ▕██████████████████▏ 100.0%
libstdc%2B%2B-14.3.0 1.9MiB 8.2MiB/s 00:00 ▕██████████████████▏ 100.0%
linux-libre-headers-6.12.17 1.3MiB 9.2MiB/s 00:00 ▕██████████████████▏ 100.0%
binutils-2.44 8.2MiB 11.3MiB/s 00:01 ▕██████████████████▏ 100.0%
make-4.4.1 489KiB 13.9MiB/s 00:00 ▕██████████████████▏ 100.0%
ld-wrapper-0 13KiB 1.0MiB/s 00:00 ▕██████████████████▏ 100.0%
make-4.4.1 489KiB 12.7MiB/s 00:00 ▕██████████████████▏ 100.0%
mkfontscale-1.2.3 20KiB 3.1MiB/s 00:00 ▕██████████████████▏ 100.0%
module-import-compiled 173KiB 11.3MiB/s 00:00 ▕██████████████████▏ 100.0%
mkfontdir-1.0.7 4KiB 3.3MiB/s 00:00 ▕██████████████████▏ 100.0%
module-import-compiled 48KiB 4.3MiB/s 00:00 ▕██████████████████▏ 100.0%
module-import-compiled 504KiB 5.5MiB/s 00:00 ▕██████████████████▏ 100.0%
module-import-compiled 54KiB 11.5MiB/s 00:00 ▕██████████████████▏ 100.0%
mpfr-4.2.2 568KiB 15.4MiB/s 00:00 ▕██████████████████▏ 100.0%
patch-2.7.6 103KiB 5.6MiB/s 00:00 ▕██████████████████▏ 100.0%
mpc-1.3.1 110KiB 4.6MiB/s 00:00 ▕██████████████████▏ 100.0%
patchelf-0.18.0 99KiB 4.7MiB/s 00:00 ▕██████████████████▏ 100.0%
gcc-13.3.0 61.1MiB 16.3MiB/s 00:04 ▕██████████████████▏ 100.0%
gcc-14.3.0 68.7MiB 15.7MiB/s 00:04 ▕██████████████████▏ 100.0%
sed-4.9 205KiB 2.1MiB/s 00:00 ▕██████████████████▏ 100.0%
gcc-toolchain-14.3.0 6KiB 158KiB/s 00:00 ▕██████████████████▏ 100.0%
tar-1.35 718KiB 8.4MiB/s 00:00 ▕██████████████████▏ 100.0%
texinfo-6.8 1.3MiB 9.2MiB/s 00:00 ▕██████████████████▏ 100.0%
zstd-1.5.6 525KiB 16.2MiB/s 00:00 ▕██████████████████▏ 100.0%
construction de /gnu/store/yq8xzbw5yzqdhx39fkp2lrax8nzskp0l-cuda-samples.drv...
construction de /gnu/store/fwhk4ihawzb6xmapa5gwfbk1dia4hxcv-cuda_12.9.1_575.57.08_linux.run.drv...
/guix shell: erreur : short write in copy_file_range `16' to `20': No such file or directory