foniod / redbpf

Rust library for building and running BPF/eBPF modules
Apache License 2.0
1.71k stars 136 forks source link

error: failed to compile the `openminotor' program: #366

Open Dududyude opened 1 year ago

Dududyude commented 1 year ago

Hello, I'm trying to make this tutorial After compiling, I have this return

Compiling probes v0.1.0 (/home/ubuntu/Bureau/redbpf/red/probes) warning: due to multiple output types requested, the explicitly specified output file name will be adapted for each output type

warning: ignoring --out-dir flag due to -o flag

warning: probes (bin "openminotor") generated 2 warnings Finished release [optimized] target(s) in 0.49s error: failed to compile the `openminotor' program: couldn't process IR file: LLVMParseIRInContext failed: /home/ubuntu/Bureau/redbpf/red/target/bpf/programs/openminotor/openminotor-2e6cdb1a047af44c.bc: error: Invalid record

I See one other post here https://bytemeta.vip/index.php/repo/foniod/redbpf/issues/315 , he change this rustc version in 1.59 for working

We can have a feature for this make in 1.67.0 or we need to switch in 1.59?

Thanks for your help (and sorry for my english is not very good xD) Good days