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

compilation error using tutorial code #367

Open
skeggse opened this issue Jun 2, 2023 · 0 comments
Open

compilation error using tutorial code #367

skeggse opened this issue Jun 2, 2023 · 0 comments

Comments

@skeggse
Copy link

skeggse commented Jun 2, 2023

I'd love to play around with redbpf, but I'm getting the following obscure error and am not sure what to do to resolve it.

error[E0507]: cannot move out of `self.bip_inline_vecs` which is behind a shared reference
     --> .../target/bpf/release/build/redbpf-probes-bbeb8db105248625/out/gen_bindings.rs:69581:9
      |
69569 |     #[derive(Debug)]
      |              ----- in this derive macro expansion
...
69581 |         pub bip_inline_vecs: __IncompleteArrayField<bio_vec>,
      |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `self.bip_inline_vecs` has type `__IncompleteArrayField<bio_vec>`, which does not implement the `Copy` trait
      |
      = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)

Version info:

$ uname -a
Linux {REDACTED} 6.1.27-43.48.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May  2 04:53:36 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
$ cargo --version
cargo 1.70.0 (ec8a8a0ca 2023-04-25)
$ rustc --version
rustc 1.70.0 (90c541806 2023-05-31)
$ llvm-config --version
llvm-config: /usr/lib64/libtinfo.so.5: no version information available (required by llvm-config)
13.0.1
$ cargo bpf --version
cargo-bpf 2.3.0

running redbpf-probes@2.3.0, redbpf-macros@2.3.0, bpf-sys@2.3.0

Happy to provide more details!

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

1 participant