You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw your mention of this project here and thought I'd try it out. It doesn't build for me out of the box at 88e3e5a.
$ cargo build
Compiling allprobes v0.1.0 (/home/slamb/git/crates/cargo-trace/examples/allprobes)
Compiling cargo-trace v0.1.0 (/home/slamb/git/crates/cargo-trace/cargo-trace)
Compiling syscount v0.1.0 (/home/slamb/git/crates/cargo-trace/examples/syscount)
error: failed to run custom build command for `syscount v0.1.0 (/home/slamb/git/crates/cargo-trace/examples/syscount)`
Caused by:
process didn't exit successfully: `/home/slamb/git/crates/cargo-trace/target/debug/build/syscount-e2e797b385d546a3/build-script-build` (exit status: 101)
--- stderr
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Compiling syscount-probe v0.1.0 (/home/slamb/git/crates/cargo-trace/examples/syscount/probe)
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: 2 warnings emitted
Finished release [optimized + debuginfo] target(s) in 0.26s
thread 'main' panicked at 'couldn't compile probes: Compile("syscount-probe", Some("couldn't process IR file: LLVMParseIRInContext failed: /home/slamb/git/crates/cargo-trace/target/debug/build/syscount-533abdd8f526e7d6/out/target/bpf/programs/syscount-probe/syscount-probe-4ac884cf8595263c.bc: error: Invalid record\n"))', examples/syscount/build.rs:12:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed
That's with Rust 1.53.0, fwiw, on Ubuntu 21.04 after apt install llvm-11 clang-11to build llvm-sys properly properly. Looks like you have a checked-in Cargo.lock so I think all other relevant software should be exactly as in the repository. I'm not sure why it'd fail just on my setup then. I haven't diagnosed further; I don't know much about LLVM IR...
The text was updated successfully, but these errors were encountered:
I guess one of the first things to do to revive this project would be to migrate to using the recently merged rustc ebpf target and aya [0]. But I'll probably be busy with other things for the time being.
I saw your mention of this project here and thought I'd try it out. It doesn't build for me out of the box at
88e3e5a
.That's with Rust 1.53.0, fwiw, on Ubuntu 21.04 after
apt install llvm-11 clang-11
to buildllvm-sys
properly properly. Looks like you have a checked-inCargo.lock
so I think all other relevant software should be exactly as in the repository. I'm not sure why it'd fail just on my setup then. I haven't diagnosed further; I don't know much about LLVM IR...The text was updated successfully, but these errors were encountered: