Skip to content
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

[BUG] v7.0.2 compilation fails on linux #9115

Open
2 of 3 tasks
puran157 opened this issue Feb 17, 2025 · 1 comment
Open
2 of 3 tasks

[BUG] v7.0.2 compilation fails on linux #9115

puran157 opened this issue Feb 17, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@puran157
Copy link

Search before asking

  • I had searched in the issues and found no similar feature requirement.

DeepFlow Component

Agent

What you expected to happen

Generate file user/socket_trace_bpf_5_2_plus.c
Clang/LLVM 11.0.1
COMPILE ELF kernel version kfunc
BPF socket_trace.bpf.elf
LLVM ERROR: Cannot select: intrinsic %llvm.preserve.struct.access.index
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /usr/bin/llc -march=bpf -filetype=obj -mcpu=v2 -o socket_trace.bpf.elf socket_trace.bpf.ll

  1.  Running pass 'Function Pass Manager' on module 'socket_trace.bpf.ll'.
    
  2.  Running pass 'BPF DAG->DAG Pattern Instruction Selection' on function '@kfunc__ksys_write'
    

#0 0x0000565187880afd llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/bin/llc+0x1864afd)
#1 0x000056518787ea14 llvm::sys::RunSignalHandlers() (/usr/bin/llc+0x1862a14)
#2 0x000056518787eb9e SignalHandler(int) (/usr/bin/llc+0x1862b9e)
#3 0x00007fee750ff900 (/usr/bin/../lib/libpthread.so.0+0x13900)
#4 0x00007fee74ba7fd1 raise (/usr/bin/../lib/libc.so.6+0x3cfd1)
#5 0x00007fee74b91546 abort (/usr/bin/../lib/libc.so.6+0x26546)
#6 0x0000565187806dda llvm::report_fatal_error(llvm::Twine const&, bool) (/usr/bin/llc+0x17eadda)
#7 0x0000565187806f3e (/usr/bin/llc+0x17eaf3e)
#8 0x00005651876ef10f llvm::SelectionDAGISel::CannotYetSelect(llvm::SDNode*) (/usr/bin/llc+0x16d310f)
#9 0x00005651876f04c7 llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*, unsigned char const*, unsigned int) (/usr/bin/llc+0x16d44c7)
#10 0x00005651876edb67 llvm::SelectionDAGISel::DoInstructionSelection() (/usr/bin/llc+0x16d1b67)
#11 0x00005651876f5d35 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/usr/bin/llc+0x16d9d35)
#12 0x00005651876f85a8 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/usr/bin/llc+0x16dc5a8)
#13 0x00005651876fa71d llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/usr/bin/llc+0x16de71d)
#14 0x0000565186ed42b7 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) (/usr/bin/llc+0xeb82b7)
#15 0x000056518722772d llvm::FPPassManager::runOnFunction(llvm::Function&) (/usr/bin/llc+0x120b72d)
#16 0x0000565187227eb3 llvm::FPPassManager::runOnModule(llvm::Module&) (/usr/bin/llc+0x120beb3)
#17 0x0000565187227182 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/usr/bin/llc+0x120b182)
#18 0x000056518662f12f compileModule(char**, llvm::LLVMContext&) (/usr/bin/llc+0x61312f)
#19 0x00005651865b08ba main (/usr/bin/llc+0x5948ba)
#20 0x00007fee74b92f0a __libc_start_main (/usr/bin/../lib/libc.so.6+0x27f0a)
#21 0x00005651866286ba _start (/usr/bin/llc+0x60c6ba)
make[1]: *** [Makefile:59: socket_trace.bpf.elf] Aborted (core dumped)

How to reproduce

Try compiling it on linux with kernel version 5.10.234-4, Clang - 11.0.1 and rustc - 1.84.1

DeepFlow version

v7.0.2

DeepFlow agent list

No response

Kubernetes CNI

No response

Operation-System/Kernel version

No response

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@puran157 puran157 added the bug Something isn't working label Feb 17, 2025
@1473371932
Copy link
Contributor

Hi, the open source 7.x version has not been released yet, we don't recommend to use 7.x content, we still recommend to use the latest LTS v6.6 branch for compilation; moreover, since compilation environments vary, we provide a mirror specifically for compilation, can you please refer to this link to try it again:
https://mp.weixin.qq.com/s/-jWYq2rTRaTueuN0sAb3lA

@1473371932 1473371932 self-assigned this Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants