Closed liuhangbin closed 9 months ago
I'm pretty sure this is due to #237 because now the BPF part is not handled by cargo build
anymore. You know should use make
instead (-j X
can be used now too!). See make help
for more details.
Having said that, the error is not straightforward to understand (the file is missing, but why?). @vlrpl do you think we could add a check in gen_probe/hook_skel
in build.rs
to fail if the BPF object files are not found, with an improved error message?
I'm pretty sure this is due to #237 because now the BPF part is not handled by
cargo build
anymore. You know should usemake
instead (-j X
can be used now too!). Seemake help
for more details.
yes, it's due to that
Having said that, the error is not straightforward to understand (the file is missing, but why?). @vlrpl do you think we could add a check in
gen_probe/hook_skel
inbuild.rs
to fail if the BPF object files are not found, with an improved error message?
if .bpf.o
is missing it is because it was not compiled. I guess we can suggest running make help
or something like that.
Some nits will be changed to build.rs
, so we can use that PR to wrap the error. Alternatively, it is fine to add the message in another PR (feel free to pick this up).
@liuhangbin, if it's ok for you, I guess this can be closed.
I guess we can suggest running
make help
or something like that.
I'd suggest something like "path/file.o is missing, please compile it first by using make ebpf
. See make help
for more details."
Some nits will be changed to
build.rs
, so we can use that PR to wrap the error. Alternatively, it is fine to add the message in another PR (feel free to pick this up).
Sounds good.
Having said that, the error is not straightforward to understand (the file is missing, but why?).
Yes, I can't see what I should do to fix it from the error message.
I'd suggest something like "path/file.o is missing, please compile it first by using make ebpf. See make help for more details."
Makes sense to me.
@liuhangbin, if it's ok for you, I guess this can be closed.
Sure
Cargo build
failed with the following error when I built it on RHEL9