compilation fail with g++13
A2ureStone opened this issue · comments
the problem is in the dependency of Catch2, the latest version of Catch2 has fixed it.
❯ cmake --build .
[ 23%] Built target c-ares
[ 29%] Built target libcoro
[ 31%] Built target ahost
[ 33%] Built target adig
[ 35%] Built target acountry
[ 35%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_clara.cpp.o
In file included from /home/J1senn/Desktop/project/cpp/libcoro/build/_deps/catch2-src/src/catch2/internal/catch_clara.cpp:12:
/home/J1senn/Desktop/project/cpp/libcoro/build/_deps/catch2-src/src/catch2/../catch2/internal/catch_string_manip.hpp:47:14: error: ‘uint64_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
47 | std::uint64_t m_count;
| ^~~~~~~~
| wint_t
/home/J1senn/Desktop/project/cpp/libcoro/build/_deps/catch2-src/src/catch2/../catch2/internal/catch_string_manip.hpp:51:42: error: expected ‘)’ before ‘count’
51 | constexpr pluralise(std::uint64_t count, StringRef label):
| ~ ^~~~~~
| )
make[2]: *** [_deps/catch2-build/src/CMakeFiles/Catch2.dir/build.make:328: _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_clara.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1213: _deps/catch2-build/src/CMakeFiles/Catch2.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
Hmm, I think the latest release still shows this problem on g++13? Did you just switch to the latest devel
branch set of amalgamated files? Catch v3.3.2 doesn't seem to work.
Looks like its maybe just fedora 38 (latest) with an issue.