[Installation] diff-gaussian-rasterization fails to compile with GCC 13+: missing #include <cstdint>
Environment
- OS: Ubuntu 26.04 LTS (system GCC 15, using conda-forge GCC 13.4 for nvcc compatibility)
- CUDA toolkit: 12.8 (conda,
nvidia/label/cuda-12.8.0) - PyTorch: 2.7.1+cu128
- GPU: RTX 5070 Ti (Blackwell, sm_120) — note: newer GPUs force a newer toolchain, but this issue affects any setup with GCC 13+, regardless of GPU
Problem
Following the README installation steps, compiling the pinned
submodules/diff-gaussian-rasterization fails with GCC 13:
cuda_rasterizer/rasterizer_impl.h(59): error: identifier "uint64_t" is undefined
uint64_t* point_list_keys;
...
8 errors detected in the compilation of "cuda_rasterizer/rasterizer_impl.cu".
Cause
rasterizer_impl.h uses fixed-width integer types (uint32_t, uint64_t) without
including <cstdint>. Older libstdc++ versions happened to pull it in transitively
through other headers; GCC 13 cleaned up those internal includes, so the transitive
availability is gone. This is a well-known breakage pattern for old codebases
built with GCC 13+.
Fix
Add one line at the top of the include block in
submodules/gaussian-splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.h:
#include <cstdint>
(If build/ already exists from a failed attempt, rm -rf build/ before rebuilding,
otherwise stale object files are reused.)
Suggestion
Since the README already instructs users to hand-edit auxiliary.h in this submodule
(frustum 0.2f → 0.05f), it would be helpful to mention this second edit right next to
it, e.g.:
If compiling with GCC 13 or newer, also add
#include <cstdint>at the top ofcuda_rasterizer/rasterizer_impl.h.
Happy to open a PR for the README if that's preferred.