Clazy is failing for me on the f42 beta.  This is related to the default clang 
version, clang 20.   It works if I set "export CLANGXX=/usr/bin/clang++-19", 
but without this:

-- Check for working CXX compiler: /usr/bin/clazy
-- Check for working CXX compiler: /usr/bin/clazy - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:73 (message):
  The C++ compiler

    "/usr/bin/clazy"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: 
'/home/tsteven4/gpsbabel/bld-clazy/CMakeFiles/CMakeScratch/TryCompile-0a90ti'
    
    Run Build Command(s): /usr/bin/ninja-build -v cmTC_d46b8
    [1/2] /usr/bin/clazy    -o CMakeFiles/cmTC_d46b8.dir/testCXXCompiler.cxx.o 
-c 
/home/tsteven4/gpsbabel/bld-clazy/CMakeFiles/CMakeScratch/TryCompile-0a90ti/testCXXCompiler.cxx
    FAILED: CMakeFiles/cmTC_d46b8.dir/testCXXCompiler.cxx.o 
    /usr/bin/clazy    -o CMakeFiles/cmTC_d46b8.dir/testCXXCompiler.cxx.o -c 
/home/tsteven4/gpsbabel/bld-clazy/CMakeFiles/CMakeScratch/TryCompile-0a90ti/testCXXCompiler.cxx
    PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ 
and include the crash backtrace, preprocessed source, and associated run script.
    Stack dump:
    0.  Program arguments: clang++ -Qunused-arguments -Xclang -load -Xclang 
ClazyPlugin.so -Xclang -add-plugin -Xclang clazy -o 
CMakeFiles/cmTC_d46b8.dir/testCXXCompiler.cxx.o -c 
/home/tsteven4/gpsbabel/bld-clazy/CMakeFiles/CMakeScratch/TryCompile-0a90ti/testCXXCompiler.cxx
    1.  <eof> parser at end of file
    Stack dump without symbol names (ensure you have llvm-symbolizer in your 
PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
    0  libLLVM.so.20.1      0x00007fe1a0c27eba 
llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 58
    1  libLLVM.so.20.1      0x00007fe1a0c24e44 llvm::sys::RunSignalHandlers() + 
84
    2  libLLVM.so.20.1      0x00007fe1a0b3ec44
    3  libc.so.6            0x00007fe1a0426df0
    4  ClazyPlugin.so       0x00007fe1a00ec71b 
ClazyASTConsumer::HandleTranslationUnit(clang::ASTContext&) + 155
    5  libclang-cpp.so.20.1 0x00007fe1abb5be4c 
clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&) + 44
    6  libclang-cpp.so.20.1 0x00007fe1a9412dc9 clang::ParseAST(clang::Sema&, 
bool, bool) + 777
    7  libclang-cpp.so.20.1 0x00007fe1abb16d9f clang::FrontendAction::Execute() 
+ 47
    8  libclang-cpp.so.20.1 0x00007fe1aba7a754 
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1076
    9  libclang-cpp.so.20.1 0x00007fe1abbaa85e 
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 654
    10 clang++              0x000055cf43c85687 cc1_main(llvm::ArrayRef<char 
const*>, char const*, void*) + 8071
    11 clang++              0x000055cf43c81727
    12 libclang-cpp.so.20.1 0x00007fe1ab61b5bd
    13 libLLVM.so.20.1      0x00007fe1a0b3e950 
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) + 144
    14 libclang-cpp.so.20.1 0x00007fe1ab61ae75 
clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>,
 std::__cxx11::basic_string<char, std::char_traits<char>, 
std::allocator<char>>*, bool*) const + 373
    15 libclang-cpp.so.20.1 0x00007fe1ab5d7129 
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, 
clang::driver::Command const*&, bool) const + 553
    16 libclang-cpp.so.20.1 0x00007fe1ab5d73e7 
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, 
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) 
const + 151
    17 libclang-cpp.so.20.1 0x00007fe1ab5f9f49 
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, 
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) + 489
    18 clang++              0x000055cf43c80b54 clang_main(int, char**, 
llvm::ToolContext const&) + 6452
    19 clang++              0x000055cf43c90978 main + 104
    20 libc.so.6            0x00007fe1a04105f5
    21 libc.so.6            0x00007fe1a04106a8 __libc_start_main + 136
    22 clang++              0x000055cf43c7ee05 _start + 37
    clang++: error: clang frontend command failed with exit code 139 (use -v to 
see invocation)
    clang version 20.1.0 (Fedora 20.1.0-1.fc42)
    Target: x86_64-redhat-linux-gnu
    Thread model: posix
    InstalledDir: /usr/lib64/llvm20/bin
    Configuration file: /etc/clang/x86_64-redhat-linux-gnu-clang++.cfg
    clang++: note: diagnostic msg: 
    ********************
    
    PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
    Preprocessed source(s) and associated run script(s) are located at:
    clang++: note: diagnostic msg: /tmp/testCXXCompiler-7fb8b3.cpp
    clang++: note: diagnostic msg: /tmp/testCXXCompiler-7fb8b3.sh
    clang++: note: diagnostic msg: 
    
    ********************
    ninja: build stopped: subcommand failed.
    
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:11 (project)


-- Configuring incomplete, errors occurred!
-- 
_______________________________________________
test mailing list -- test@lists.fedoraproject.org
To unsubscribe send an email to test-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/test@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to