eunomia-bpf / bpftime

Userspace eBPF runtime for Observability, Network & General Extensions Framework
https://eunomia.dev/bpftime/
MIT License
801 stars 75 forks source link

[BUG] Unable to compile w/ LLVM 17 #152

Closed ShawnZhong closed 6 months ago

ShawnZhong commented 9 months ago

Describe the bug

Error message:

bpftime/vm/llvm-jit/src/llvm/llvm_jit_context.cpp:23:10: fatal error: 'llvm/Transforms/IPO/PassManagerBuilder.h' file not found
#include <llvm/Transforms/IPO/PassManagerBuilder.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.

To Reproduce

Install LLVM 17 and compile with make build-llvm

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error -->

Expected behavior

Screenshots

Desktop (please complete the following information):

Additional context

yunwei37 commented 8 months ago

The recommend version of llvm-jit is llvm-15, for example, you can install it with:

sudo apt install llvm-15-dev
Officeyutong commented 6 months ago

Done by https://github.com/eunomia-bpf/bpftime/pull/276