clasp
clasp copied to clipboard
Guix build fails for [email protected]
Describe the bug
Following build prescription in clasp.scm results missing dependency error, namely schubfach.hpp.
Expected behavior Build proceeds successfully as previously observed for 2.6.0-32-g01cf28c..
Actual behavior
Build fails due to apparent missing dependency schubfach.hpp:
../src/core/float_to_digits.cc:36:10: fatal error: '../schubfach/schubfach.hpp' file not found
36 | #include "../schubfach/schubfach.hpp"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Code at issue & Potential solution
Added path for schubfach.hpp to clasp.scm file which resolved issue and resulted in a successful build for [email protected], see code snippet below:
(define clasp-cl
(let* ((source-dir (dirname (dirname (current-filename))))
(version (git-checkout-description source-dir))
(external-dirs ; dirs containing nested Git repos
(list (string-append source-dir "/src/lisp/kernel/contrib")
(string-append source-dir "/dependencies")
(string-append source-dir "/extensions")))
(git-dirs
(apply append
(list (string-append source-dir "/src/bdwgc")
;; added the below path for schubfach which resolved issue of missing dependency
(string-append source-dir "/src/schubfach")
;;
(string-append source-dir "/src/libatomic_ops")
(string-append source-dir "/src/lisp/modules/asdf"))
(map-in-order scandir-absolute external-dirs)))
(descend-dirs (append git-dirs external-dirs))
(predicates (map-in-order git-predicate (cons source-dir git-dirs))))...
Context
- Fails for [email protected]
- Operating System: Guix SD