(Cross-)Compiling with clang 18, I get the following errors: errors.log.
The build passes if I add -DCMAKE_CXX_FLAGS="-Wno-error=enum-constexpr-conversion -include vector", so seems like there are a couple of missing #include <vector>s and some missing explicit casts.