gnu: fasttext: Fix build.

* gnu/packages/machine-learning.scm (fasttext):
[arguments]<#:phases>: Add phase 'gcc-14-fix.

Change-Id: Ib3f4a49b65e84f75f182637764fb54e24f3a5b5b
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-09-23 22:55:50 +02:00 committed by Sharlatan Hellseher
parent 9f36748b10
commit 1cd2a221f3
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -185,7 +185,16 @@ frameworks.")
(base32 "07cz2ghfq6amcljaxpdr5chbd64ph513y8zqmibfx2xwfp74xkhn"))))
(build-system cmake-build-system)
;; Tests require downloading of test data.
(arguments (list #:tests? #false))
(arguments
(list
#:tests? #false
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'gcc-14-fix
(lambda _
(substitute* "src/args.cc"
(("#include <unordered_map>" all)
(string-append all "\n#include <cstdint>"))))))))
(home-page "https://github.com/facebookresearch/fastText")
(synopsis "Library for fast text representation and classification")
(description "fastText is a library for efficient learning of word