Open
Description
Guys, I encountered a problem during compilation. How can I fix it?
- development:
- llvm 16
- clang 16
- kernel 6.8.0-rc5
- os fedora/anolis
- platform loongarch64
LLVM ERROR: Branch target out of insn range
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: llc -march=bpf -filetype=obj -o /build/rd/libs/driver/bpf/probe.o /build/rd/libs/driver/bpf/probe.ll
#0 0x00007fffe9fe4538 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib64/libLLVM-16.so+0xcb8538)
#1 0x00007fffe9fe1ff8 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-16.so+0xcb5ff8)
#2 0x00007fffe9fe52e0 (/lib64/libLLVM-16.so+0xcb92e0)
#3 0x00007ffffe87489c (linux-vdso.so.1+0x89c)
#4 0x00007fffe8fb8464 __pthread_kill_implementation.constprop.0 (/lib64/libc.so.6+0x88464)
#5 0x00007fffe8f6b87c raise (/lib64/libc.so.6+0x3b87c)
#6 0x00007fffe8f54218 abort (/lib64/libc.so.6+0x24218)
#7 0x00007fffe9f0e710 llvm::report_fatal_error(llvm::Twine const&, bool) (/lib64/libLLVM-16.so+0xbe2710)
#8 0x00007fffe9f0e558 llvm::report_fatal_error(llvm::Twine const&, bool) (/lib64/libLLVM-16.so+0xbe2558)
#9 0x00007fffec669f70 (/lib64/libLLVM-16.so+0x333df70)
#10 0x00007fffeb70a31c llvm::MCAssembler::layout(llvm::MCAsmLayout&) (/lib64/libLLVM-16.so+0x23de31c)
#11 0x00007fffeb70a5a8 llvm::MCAssembler::Finish() (/lib64/libLLVM-16.so+0x23de5a8)
#12 0x00007fffeb72e008 llvm::MCELFStreamer::finishImpl() (/lib64/libLLVM-16.so+0x2402008)
#13 0x00007fffea8ec080 llvm::AsmPrinter::doFinalization(llvm::Module&) (/lib64/libLLVM-16.so+0x15c0080)
#14 0x00007fffea15f4ec llvm::FPPassManager::doFinalization(llvm::Module&) (/lib64/libLLVM-16.so+0xe334ec)
#15 0x00007fffea157d20 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/lib64/libLLVM-16.so+0xe2bd20)
#16 0x000000012000db88 main (/usr/bin/llc+0x12000db88)
#17 0x00007fffe8f544a8 __libc_start_call_main (/lib64/libc.so.6+0x244a8)
#18 0x00007fffe8f545ac __libc_start_main@@GLIBC_2.36 (/lib64/libc.so.6+0x245ac)
#19 0x000000012000b0a8 _start (/usr/bin/llc+0x12000b0a8)
make[7]: *** [/build/rd/libs/driver/bpf/Makefile:56: /build/rd/libs/driver/bpf/probe.o] Aborted (core dumped)
make[6]: *** [/home/yzw/workspace/linux-chenhuacai/Makefile:1921: /build/rd/libs/driver/bpf] Error 2
make[5]: *** [Makefile:240: __sub-make] Error 2
make[4]: *** [Makefile:39: all] Error 2
make[3]: *** [driver/bpf/CMakeFiles/bpf.dir/build.make:70: driver/bpf/CMakeFiles/bpf] Error 2
make[2]: *** [CMakeFiles/Makefile2:859: driver/bpf/CMakeFiles/bpf.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:866: driver/bpf/CMakeFiles/bpf.dir/rule] Error 2
make: *** [Makefile:312: bpf] Error 2