Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

llvm 15 support #365

Open
LessThanGreaterThan opened this issue Feb 22, 2023 · 4 comments
Open

llvm 15 support #365

LessThanGreaterThan opened this issue Feb 22, 2023 · 4 comments

Comments

@LessThanGreaterThan
Copy link

Hey, currently llvm 15 support is missing.

error:

error: No suitable version of LLVM was found system-wide or pointed
              to by LLVM_SYS_120_PREFIX.
       
              Consider using `llvmenv` to compile an appropriate copy of LLVM, and
              refer to the llvm-sys documentation for more information.
       
              llvm-sys: https://crates.io/crates/llvm-sys
              llvmenv: https://crates.io/crates/llvmenv
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/llvm-sys-120.2.6/src/lib.rs:486:1
    |
486 | / std::compile_error!(concat!(
487 | |     "No suitable version of LLVM was found system-wide or pointed
488 | |        to by LLVM_SYS_",
489 | |     env!("CARGO_PKG_VERSION_MAJOR"),
...   |
496 | |        llvmenv: https://crates.io/crates/llvmenv"
497 | | ));
    | |__^

error: could not compile `llvm-sys` due to previous error
warning: build failed, waiting for other jobs to finish...
@dlescos
Copy link

dlescos commented Mar 22, 2023

Have a look at this: main...SitinCloud:redbpf:llvm15.

Not satisfied enough to make a PR now, but it works (we use it at Owlyshield).

@wxmbugu
Copy link

wxmbugu commented Mar 27, 2023

@dlescos Tried that and got this error

thread 'main' panicked at 'Surprising failure from llvm-config: Custom { kind: NotFound, error: "llvm-config ret
urned empty output" 
`

@dlescos
Copy link

dlescos commented Mar 27, 2023

What does your llvm-config --version display?

@wxmbugu
Copy link

wxmbugu commented Mar 27, 2023

llvm-config --version
15.0.7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants