ITADN

Failure to find included cbits blake2/blake2.h

#11992Openphilderbeast 创建于 2026-06-20
type: bugneeds triage
P
philderbeastcommented
**Describe the bug** As of 05e1f5c20834188a9d1357566dcb0884d9360db4, building crypton fails. **To Reproduce** Install cabal locally with: ``` $ cabal install cabal-install:exe:cabal --overwrite-policy=always ``` Grab the source for crypton and try to build it: ``` $ cabal build all --enable-tests --enable-benchmarks -j Warning: this is a debug build of cabal-install with assertions enabled. Build profile: -w ghc-9.8.4 -O1 In order, the following will be built (use -v for more details): - crypton-1.1.4 (lib) (first run) - crypton-1.1.4 (test:test-crypton) (first run) - crypton-1.1.4 (bench:bench-crypton) (first run) Preprocessing library for crypton-1.1.4... Building library for crypton-1.1.4... In file included from cbits/argon2/core.c:43, from cbits/argon2/argon2.c:23:0: error: cbits/argon2/opt.c:25:10: error: fatal error: blake2/blake2.h: No such file or directory 25 | #include "blake2/blake2.h" | ^~~~~~~~~~~~~~~~~ | 25 | #include "blake2/blake2.h" | ^ compilation terminated. `gcc' failed in phase `C Compiler'. (Exit code: 1) Error: [Cabal-7125] Failed to build crypton-1.1.4 (which is required by test:test-crypton from crypton-1.1.4 and bench:bench-crypton from crypton-1.1.4). ``` **Expected behavior** That cabal can build crypton as it was able to do prior to 05e1f5c20834188a9d1357566dcb0884d9360db4, a package that includes the sources that cannot be found when compiling. ``` $ tree -P 'blake2.h' --prune . └── cbits └── blake2 ├── ref │   └── blake2.h └── sse └── blake2.h 5 directories, 2 files ``` When this C header file can't be found, I first tried installing libb2, as Google's AI suggests > To fix this error, you need to install the development files for libb2, which provides the BLAKE2 hashing function headers. The exact package manager command depends entirely on your operating system.Quick Fix by Operating SystemFind your operating system below and run the designated command in your terminal:Ubuntu / Debian / Mint > > ``` > sudo apt-get update > sudo apt-get install libb2-dev > ``` **System information** Ubuntu 25.10
1 条评论