-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
C++23 crash in DiagnosticInfo.h #17686
Comments
Hi @ferdymercury, thanks for the cross-referencing! Maybe you wanted to link two different PRs? You linked the same PR twice |
Yep, sorry, fixed. |
Note that this is a problem upstream, ie you currently cannot compile LLVM with |
I started fixing the issues upstream (notably llvm/llvm-project#127400 for the issue described here) and this makes it work with GCC, but for Clang with C++23 there are many more problems. What I think we should be doing instead downstream in ROOT is always build LLVM with C++17: #17735 Then we only need to backport one of my upstream PRs to fix one header (llvm/llvm-project#127459) and fix RooFit (#17733) to get a working ROOT with C++23 🎉 |
Check duplicate issues.
Description
I fully understand that ROOT 6.34/02 is not yet ready for the C++23 standard since it's explicitly disabled in the ROOT cmake configuration at https://github.com/root-project/root/blob/master/cmake/modules/CheckCompiler.cmake#L164C1-L164C43
I took my chances and have overwritten that setting and tried to compile ROOT 6.34/02 from source with gcc 14.2 and "-DCMAKE_CXX_STANDARD=23" in the ATLAS AnalysisBase configuration (https://gitlab.cern.ch/atlas/atlasexternals/-/blob/main/External/ROOT/CMakeLists.txt?ref_type=heads) and see the following compilation problem in
ROOT/interpreter/llvm-project/llvm/include/llvm/IR/DiagnosticInfo.h
:Reproducer
See above
ROOT version
6.34/02
Installation method
from source
Operating system
RHEL9.5
Additional context
No response
The text was updated successfully, but these errors were encountered: