From afa4c88e7f6eb82e951c89fb6ad681da38a639a5 Mon Sep 17 00:00:00 2001 From: Gary Date: Thu, 19 Feb 2026 18:13:33 +1100 Subject: [PATCH] Fix build on GCC 15 (Fedora 43+) by injecting missing `` include GCC 15 no longer transitively includes `` from C++ standard headers, causing the bundled RocksDB in rust-librocksdb-sys to fail with `uint64_t has not been declared` errors. Setting CXXFLAGS via `.cargo/config.toml` resolves this without patching vendored sources. Co-Authored-By: Claude Opus 4.6 --- .cargo/config.toml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 000000000..452ee87b8 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,5 @@ +# GCC 15 (Fedora 43+) no longer transitively includes from C++ headers. +# The bundled RocksDB source in rust-librocksdb-sys requires uint64_t etc., +# so we inject the missing include globally for all C++ compilation units. +[env] +CXXFLAGS = "-include cstdint"