... [cut] ...
[ 27%] Building CXX object src/CMakeFiles/rct.dir/rct/rct/FileSystemWatcher.cpp.o
In file included from /home/rh/box/shed/rhpm/packages/emacs-rtags/src/src/rct/rct/Buffer.cpp:1:
In file included from /home/rh/box/shed/rhpm/packages/emacs-rtags/src/src/rct/rct/Buffer.h:7:
In file included from /home/rh/box/shed/rhpm/packages/emacs-rtags/src/src/rct/rct/String.h:9:
/home/rh/box/shed/rhpm/packages/emacs-rtags/src/src/rct/rct/List.h:17:41: error: no member named 'numeric_limits' in namespace 'std'
static constexpr size_t npos = std::numeric_limits<size_t>::max();
~~~~~^
/home/rh/box/shed/rhpm/packages/emacs-rtags/src/src/rct/rct/List.h:17:56: error: unexpected type name 'size_t': expected expression
static constexpr size_t npos = std::numeric_limits<size_t>::max();
^
/home/rh/box/shed/rhpm/packages/emacs-rtags/src/src/rct/rct/List.h:17:65: error: no member named 'max' in the global namespace
static constexpr size_t npos = std::numeric_limits<size_t>::max();
~~^
3 errors generated.
make[2]: *** [src/CMakeFiles/rct.dir/build.make:89: src/CMakeFiles/rct.dir/rct/rct/Buffer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
... [cut] ...
See https://stackoverflow.com/a/68149587
make error output example after successful cmake:
Temporary fix:
In long term should be fixed in source.