-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- failed to compile
CMake Warning at utils/benchmark/CMakeLists.txt:244 (message):
Using std::regex with exceptions disabled is not fully supported
indicating that neither is available on the node.
since the node is based on the Debian package feed I was trying to find a package that satisfies either one but came up empty.
What package/code would satisfy GNU_POSIX_REGEX or POSIX_REGEX?
– Performing Test HAVE_GNU_POSIX_REGEX – failed to compile
– Performing Test HAVE_POSIX_REGEX
– Performing Test HAVE_POSIX_REGEX
– Performing Test HAVE_POSIX_REGEX – success
If you don’t get a solution here you should either post on llvm-dev mailing list or open an issue on https://bugs.llvm.org/.
With that the benchmark test fails, as cited in the initial post. Will check about the gnulib, currently though taking it up with the benchmark source developers.
It is not, it provides regex.h whilst, as you pointed out, CMake’s gnu_posix_regex.cpp is testing for gnuregex.h though. That seems rather for backward compatibility since gnuregex.h appears somehwat outdated and replaced by regex.h.
@_z.0 I’m facing the exact same problem here. Found several similar issues on github/benchmark, so far nothing helped me. How did you eventually solved this?
Here (Fedora 37) there just is no package providing /usr/include/gnuregex.h A Google search doesn’t turn up anything that isn’t some compatibility shim.