-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
fatal error: error in backend: Cannot select: intrinsic %llvm.writecmrelease #96789
Comments
@llvm/issue-subscribers-backend-risc-v Author: None (nidhinmullakkal)
I'm using LLVM18.1 and When I add the following code am getting the following error:
redefine.h
clang/include/clang/Basic/Builtins.def
llvm/include/llvm/IR/Intrinsics.td
fatal error: error in backend: Cannot select: intrinsic %llvm.writecmrelease
|
There is no Please consult with your vendor (I see |
I'm using LLVM18.1 and When I add the following code am getting the following error:
redefine.h
clang/include/clang/Basic/Builtins.def
BUILTIN(__builtin_writecm_release ,"vvC*i" , "Fnc")
clang/lib/CodeGen/CGBuiltin.cpp
llvm/include/llvm/IR/Intrinsics.td
fatal error: error in backend: Cannot select: intrinsic %llvm.writecmrelease
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: /home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang -I/home/nidhin/redefine_sdk/redefine/REDEFINE/riscv-gnu-toolchain-install/riscv32-unknown-elf/include -I/home/nidhin/redefine_sdk/redefine/include -Wall -target riscv32-unknown-elf -ffunction-sections -fdata-sections -Wuninitialized -fno-builtin -ffreestanding -march=rv32imf -fno-addrsig -O3 -c -o fib.o fib.c
#0 0x000055b1db53cfcf llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x20eefcf)
Fixing Rust build #1 0x000055b1db53b01c llvm::sys::CleanupOnSignal(unsigned long) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x20ed01c)
Fix a typo #2 0x000055b1db487f27 llvm::CrashRecoveryContext::HandleExit(int) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x2039f27)
Fix a compilation error on gcc8 #3 0x000055b1db532492 llvm::sys::Process::Exit(int, bool) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x20e4492)
Fix a compilation error on gcc8 #4 0x000055b1da12c0b6 (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0xcde0b6)
Seedarg/member/wip #5 0x000055b1db48f27a llvm::report_fatal_error(llvm::Twine const&, bool) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x204127a)
Add check for matching HeaderFilter before emitting Diagnostic #6 0x000055b1dc5ef400 llvm::SelectionDAGISel::CannotYetSelect(llvm::SDNode*) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x31a1400)
Random engine swap #7 0x000055b1dc5f4df5 llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*, unsigned char const*, unsigned int) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x31a6df5)
Update rwlock init #8 0x000055b1da5d9d21 llvm::RISCVDAGToDAGISel::Select(llvm::SDNode*) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x118bd21)
Next80 merge test #9 0x000055b1dc5eba87 llvm::SelectionDAGISel::DoInstructionSelection() (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x319da87)
Fix typo: 'soruce' -> 'source' #10 0x000055b1dc5f97a9 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x31ab7a9)
fix for gcc 8 #11 0x000055b1dc5fc5fc llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x31ae5fc)
Fix "Allman" style example #12 0x000055b1dc5feb36 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (.part.0) SelectionDAGISel.cpp:0:0
Defer diag #13 0x000055b1daa541a0 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) MachineFunctionPass.cpp:0:0
WIP lifetime categories #14 0x000055b1dafec8da llvm::FPPassManager::runOnFunction(llvm::Function&) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x1b9e8da)
Fix ClangOpenCLBuiltinsImpl target not found #15 0x000055b1dafeca69 llvm::FPPassManager::runOnModule(llvm::Module&) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x1b9ea69)
__unique_stable_name implementation. #16 0x000055b1dafedf30 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x1b9ff30)
Lockdown test #17 0x000055b1db79ea39 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtrllvm::vfs::FileSystem, std::unique_ptr<llvm::raw_pwrite_stream, std::default_deletellvm::raw_pwrite_stream>, clang::BackendConsumer*) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x2350a39)
Lockdown test #18 0x000055b1dbd7a36e clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x292c36e)
Test commit to check lockdown app #19 0x000055b1dd980b79 clang::ParseAST(clang::Sema&, bool, bool) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x4532b79)
Construct path using a locale #20 0x000055b1dbd79745 clang::CodeGenAction::ExecuteAction() (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x292b745)
moved upfront the skip branch insertion code for correctness. #21 0x000055b1dc00cb21 clang::FrontendAction::Execute() (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x2bbeb21)
Update Applyreplacements.h #22 0x000055b1dbf87a5b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x2b39a5b)
Fix issue with empty LIB_NAMES #23 0x000055b1dc0ecc7b clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x2c9ec7b)
Vardhan/issue 123 #24 0x000055b1da12dd8d cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0xcdfd8d)
Add bugprone-argument-comment option: IgnoreSingleArgument. #25 0x000055b1da12686d ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
Cherry-picked from commit 628e418df1a009e0d073545cbef3604350e7b808 #26 0x000055b1dbdc27ed void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optionalllvm::StringRef>, std::__cxx11::basic_string<char, std::char_traits, std::allocator>, bool) const::'lambda'()>(long) Job.cpp:0:0
Templateissue #27 0x000055b1db487e17 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x2039e17)
Dfa #28 0x000055b1dbdc2c8c clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optionalllvm::StringRef>, std::__cxx11::basic_string<char, std::char_traits, std::allocator>, bool) const (.part.0) Job.cpp:0:0
LLVM_COMPLETE_INSTALLATION #29 0x000055b1dbd8939e clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x293b39e)
Vis debug #30 0x000055b1dbd89d6d clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x293bd6d)
[analyzer][NFC][docs] Add CodeChecker to the command line tools #31 0x000055b1dbd9423c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0x294623c)
Update README.md #32 0x000055b1da12b171 clang_main(int, char**, llvm::ToolContext const&) (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0xcdd171)
Change the tblgen install template to allow mlir-tblgen to install. #33 0x000055b1da072ecb main (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0xc24ecb)
Test issue #34 0x00007f6f26dcd083 __libc_start_main /build/glibc-LcI20x/glibc-2.31/csu/../csu/libc-start.c:342:3
Test issue #2 #35 0x000055b1da12602e _start (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/build/bin/clang+0xcd802e)
clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 18.1.0rc (/home/nidhin/redefine_sdk/llvm-project-18.1.0.src/clang cfd63ba87bdda87f23e2cf920bcbc8c10acd4359)
The text was updated successfully, but these errors were encountered: