aya: Error: error relocating function
env: Linux version 3.10.0-1160.92.1.el7.x86_64 (Red Hat 4.8.5-44)
I generate an example project with cargo generate and run it to the following:
# RUST_LOG=info cargo xtask run --release
warning: some crates are on edition 2021 which defaults to `resolver = "2"`, but virtual workspaces default to `resolver = "1"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
Finished dev [unoptimized + debuginfo] target(s) in 0.03s
Running `target/debug/xtask run --release`
Finished release [optimized] target(s) in 0.11s
warning: some crates are on edition 2021 which defaults to `resolver = "2"`, but virtual workspaces default to `resolver = "1"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
Compiling ebpf-xdp v0.1.0 (/root/ebpf/ebpf-xdp/ebpf-xdp)
Finished release [optimized] target(s) in 3.64s
Error: error relocating function
Caused by:
0: error relocating `ebpf_xdp`
1: section `5` not found, referenced by symbol `` #9
Failed to run `sudo -E target/release/ebpf-xdp`
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Comments: 15
I had a similar problem and uploaded my code here https://github.com/M4tsuri/try-aya.
Here is my version info: