Skip to content

electrs-librocksdb-sys build fails on GCC 15 #1214

@yuvadm

Description

@yuvadm

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
facebook/rocksdb#13365

Workaround:
This command works successfully:

CXXFLAGS="-include cstdint" cargo build --locked --release

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbuild

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions