Fix build with gcc 13 by including <cstdint>
Like other versions before, gcc 13 moved some includes around and as a
result <cstdint> is no longer transitively included [1]. Explicitly
include it for uint64_t.
[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
Change-Id: I99c349fd2564fd6ee03f0fccc52c821c4e0a3235
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b57bfac..62a1ae6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,7 +5,7 @@
cache:
- key: one-key-to-rule-them-all
paths:
- - rocksdb-5.11.3/
+ - rocksdb/
- collocatordb/
before_script:
- pwd
@@ -16,9 +16,10 @@
- end_section install_linux_packages
- start_section install_rocksdb_static "Building and installing rocksdb-static"
- - curl -L https://github.com/facebook/rocksdb/archive/refs/tags/v5.11.3.tar.gz | tar zx
- - cd rocksdb-5.11.3
- - export PROCS=$(cat /proc/cpuinfo | grep -c processor)
+ - git clone --branch 5.11.fb https://github.com/facebook/rocksdb.git
+ - cd rocksdb
+ - for f in db/compaction_iteration_stats.h include/rocksdb/utilities/checkpoint.h util/string_util.h; do echo $f; sed -Ei 's|^#pragma once|\0\n#include <cstdint>|' "$f"; done
+ - export PROCS=$(nproc)
- make -j $PROCS static_lib DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
- make install-static DISABLE_WARNING_AS_ERROR=1 WARNING_FLAGS=-w
- end_section install_rocksdb_static