New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] All regex tests fail to compile when running cmake #1421
Comments
I also ran the following in the
Now there's actually a |
I read about using a custom libc++ when building. I added the following to
The configuration still fails however. |
this appears to be the failure the clang sanitizers are seeing. i have tried to replicate locally and been unable (with clang 13). |
tested with clang-11 and i can reproduce the failure:
|
STD_REGEX failure:
POSIX_REGEX failure:
|
clang 11 command line:
clang-13 command line:
|
in short: i don't know why this fails under clang-11. |
Ah the fix for the error is quite silly, I needed to specify |
Describe the bug
HAVE_STD_REGEX
,HAVE_GNU_POSIX_REGEX
, andHAVE_POSIX_REGEX
all fail to compile when running cmake.System
Which OS, compiler, and compiler version are you using:
clang version 15.0.0
, built from thellvm-project
repository. Targetsarm64-apple-darwin21.5.0
, thread model isposix
.To reproduce
Steps to reproduce the behavior:
llvm-project
repo and configure with$LLVM2
benchmark
repo andcd
intobuild
(note that custom built clang compiler is provided)
Expectation:
I need to use my own custom-built version of LLVM to build the
benchmark
repo because that's what I'm compiling the program I want to benchmark with (we made some modifications to LLVM and want to test the effect of them).I'm not sure if the problem is it's not linking against the correct C++ standard library or if something else is going on?
Cmake output:
Contents of
CMakeError.log
:The text was updated successfully, but these errors were encountered: