-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
has anyone managed to build a simple ebpf with ipnet no_std?
with: ipnet = { git = "https://github.com/krisprice/ipnet", default-features = false } i get:
error: failed to run custom build command for `xdg-firewall-rs v0.1.0 (/usr/src/encs/xdg-firewall-rs/xdg-firewall)`
Caused by:
process didn't exit successfully: `/usr/src/encs/xdg-firewall-rs/target/debug/build/xdg-firewall-rs-da5965b226c3123e/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-changed=/usr/src/encs/xdg-firewall-rs/xdg-firewall-ebpf
cargo:warning= Compiling ipnet v2.11.0 (https://github.com/krisprice/ipnet#eac9c270)
cargo:warning= Compiling aya-log-ebpf v0.1.1
cargo:warning=error[E0463]: can't find crate for `alloc`
cargo:warning= --> /home/pmn/.local/share/cargo/git/checkouts/ipnet-6cbbda1c2b6f7446/eac9c27/src/lib.rs:87:1
cargo:warning= |
cargo:warning=87 | extern crate alloc;
cargo:warning= | ^^^^^^^^^^^^^^^^^^^ can't find crate
cargo:warning=
cargo:warning=
cargo:warning=For more information about this error, try `rustc --explain E0463`.
cargo:warning=
cargo:warning=error: could not compile `ipnet` (lib) due to 1 previous error
--- stderr
Error: env -u RUSTC -u RUSTC_WORKSPACE_WRAPPER CARGO_CFG_BPF_TARGET_ARCH="x86_64" "cargo" "+nightly" "build" "--package" "xdg-firewall-ebpf" "-Z" "build-std=core" "--bins" "--message-format=json" "--release" "--target" "bpfel-unknown-none" "--target-dir" "/usr/src/encs/xdg-firewall-rs/target/debug/build/xdg-firewall-rs-c9f7725d8063bcc6/out/xdg-firewall-ebpf" failed: ExitStatus(unix_wait_status(25856))```
Metadata
Metadata
Assignees
Labels
No labels