-
Notifications
You must be signed in to change notification settings - Fork 109
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
[CMake] Test condition failure line in ut.hpp instead of test source file #596
Comments
Hmm, that looks like the compiler used doesn't support source_location. Can you share the compiler and version used? The following check is being done to detect support for the source location on the library side.
|
Ah, I see. I think I'm using the most recent Clang version on macOS
|
Ohh, that's bad, it seems like clang-15 introduced some bug to their builtin :/ Looking at godbolt, clang<15 works, clang-15 doens't work and clang-trunk works again. gcc seem to work just fine in all available versions. https://godbolt.org/z/8a183GWvv Let me dig in a bit further to see whether there is a wknd for that or the clang broke soure_lcoation builtin alltogether in 15. Note. it's also affecting not Apple clang. |
It also seems related to clang using libstdc++ from gcc. |
Hmmm wow, this is strange! I'm using |
Okay, I just tested with Clang 16 from brew and can confirm that works fine with |
Thank you for checking, indeed there is something wrong with the clang-15 version :/ the builtins seem not to work and clang-15 doesn't have access to <source_location>. I'll post on the llvm project to see whether anyone can take a look, thanks again for bringing that up. |
Expected Behavior
Output of failed test to point to the failed assert in mytest.cpp
Actual Behavior
Output of failed test points to failed assert in boost/ut.hpp
Steps to Reproduce the Problem
cmake -B build && cmake --build build
./build/mytest
orctest --test-dir build --output-on-failure
The output I get is
Specifications
The text was updated successfully, but these errors were encountered: