ITADN

electrs-librocksdb-sys build fails on GCC 15

#1214Openyuvadm 创建于 2025-08-17
bugbuild
Y
yuvadmcommented
**Have you read the documentation?** Yes. **Did you double-check that you installed all dependencies?** Yes. **Which command failed?** `cargo build --locked --release` **What was the error message?** Build fails while compiling `electrs-librocksdb-sys`, seems that standard int types are not declared ``` error: ‘uint64_t’ has not been declared note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ ``` **System** OS name and version: Arch Linux gcc/g++ version: 15.2.1 rustc version: `rustc 1.89.0 (29483883e 2025-08-04)` cargo version: `cargo 1.89.0 (c24e10642 2025-06-23)` **Compilation** Linking: static Cross compilation: no Target architecture: x86_64 **Additional context** https://github.com/facebook/rocksdb/issues/13365 **Workaround:** This command works successfully: ```bash CXXFLAGS="-include cstdint" cargo build --locked --release ```
8 条评论