libbpf-rs 0.24.8

libbpf-rs is a safe, idiomatic, and opinionated wrapper around libbpf-sys
Documentation
Build #1509339 2024-11-08T17:33:20.014102+00:00
# rustc version
rustc 1.84.0-nightly (b91a3a056 2024-11-07)# docs.rs version
docsrs 0.6.0 (36c721fb 2024-11-06)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/libbpf-rs-0.24.8/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/libbpf-rs-0.24.8/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20241107-1.84.0-nightly-b91a3a056\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-apple-darwin\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-apple-darwin", kill_on_drop: false }`
[INFO] [stdout] f830a488492c9598f5e51714bca834bd34aa03ccff579c284a36af58314cc3e6
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "f830a488492c9598f5e51714bca834bd34aa03ccff579c284a36af58314cc3e6", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]    Compiling vsprintf v2.0.0
[INFO] [stderr]    Compiling libbpf-sys v1.5.0+v1.5.0
[INFO] [stderr] warning: vsprintf@2.0.0: cc: error: unrecognized command-line option '-arch'
[INFO] [stderr] warning: vsprintf@2.0.0: cc: error: unrecognized command-line option '-mmacosx-version-min=10.7'
[INFO] [stderr] error: failed to run custom build command for `vsprintf v2.0.0`
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/target/debug/build/vsprintf-2a332a1923da9303/build-script-build` (exit status: 1)
[INFO] [stderr]   --- stdout
[INFO] [stderr]   cargo:rerun-if-changed=src/lib.c
[INFO] [stderr]   OUT_DIR = Some(/opt/rustwide/target/x86_64-apple-darwin/debug/build/vsprintf-870c0e0f20d88777/out)
[INFO] [stderr]   OPT_LEVEL = Some(0)
[INFO] [stderr]   TARGET = Some(x86_64-apple-darwin)
[INFO] [stderr]   HOST = Some(x86_64-unknown-linux-gnu)
[INFO] [stderr]   cargo:rerun-if-env-changed=CC_x86_64-apple-darwin
[INFO] [stderr]   CC_x86_64-apple-darwin = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CC_x86_64_apple_darwin
[INFO] [stderr]   CC_x86_64_apple_darwin = None
[INFO] [stderr]   cargo:rerun-if-env-changed=TARGET_CC
[INFO] [stderr]   TARGET_CC = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CC
[INFO] [stderr]   CC = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CROSS_COMPILE
[INFO] [stderr]   CROSS_COMPILE = None
[INFO] [stderr]   RUSTC_LINKER = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[INFO] [stderr]   RUSTC_WRAPPER = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[INFO] [stderr]   CRATE_CC_NO_DEFAULTS = None
[INFO] [stderr]   DEBUG = Some(true)
[INFO] [stderr]   CARGO_CFG_TARGET_FEATURE = Some(cmpxchg16b,fxsr,lahfsahf,sse,sse2,sse3,sse4.1,ssse3)
[INFO] [stderr]   cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
[INFO] [stderr]   MACOSX_DEPLOYMENT_TARGET = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CFLAGS_x86_64-apple-darwin
[INFO] [stderr]   CFLAGS_x86_64-apple-darwin = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CFLAGS_x86_64_apple_darwin
[INFO] [stderr]   CFLAGS_x86_64_apple_darwin = None
[INFO] [stderr]   cargo:rerun-if-env-changed=TARGET_CFLAGS
[INFO] [stderr]   TARGET_CFLAGS = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CFLAGS
[INFO] [stderr]   CFLAGS = None
[INFO] [stderr]   cargo:warning=cc: error: unrecognized command-line option '-arch'
[INFO] [stderr]   cargo:warning=cc: error: unrecognized command-line option '-mmacosx-version-min=10.7'
[INFO] [stderr] 
[INFO] [stderr]   --- stderr
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stderr]   error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-mmacosx-version-min=10.7" "-Wall" "-Wextra" "-o" "/opt/rustwide/target/x86_64-apple-darwin/debug/build/vsprintf-870c0e0f20d88777/out/2e40c9e35e9506f4-lib.o" "-c" "src/lib.c" with args cc did not execute successfully (status code exit status: 1).
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: failed to run custom build command for `libbpf-sys v1.5.0+v1.5.0`
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/target/debug/build/libbpf-sys-a7b74bec23d4e0e1/build-script-build` (exit status: 101)
[INFO] [stderr]   --- stdout
[INFO] [stderr]   Using feature vendored-libbpf=true
[INFO] [stderr]   Using feature vendored-libelf=false
[INFO] [stderr]   Using feature vendored-zlib=false
[INFO] [stderr]   Using feature static-libbpf=true
[INFO] [stderr]   Using feature static-libelf=false
[INFO] [stderr]   Using feature static-zlib=false
[INFO] [stderr]   OPT_LEVEL = Some(0)
[INFO] [stderr]   OUT_DIR = Some(/opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-d57c20a3d8abbd9a/out)
[INFO] [stderr]   TARGET = Some(x86_64-apple-darwin)
[INFO] [stderr]   HOST = Some(x86_64-unknown-linux-gnu)
[INFO] [stderr]   cargo:rerun-if-env-changed=CC_x86_64-apple-darwin
[INFO] [stderr]   CC_x86_64-apple-darwin = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CC_x86_64_apple_darwin
[INFO] [stderr]   CC_x86_64_apple_darwin = None
[INFO] [stderr]   cargo:rerun-if-env-changed=TARGET_CC
[INFO] [stderr]   TARGET_CC = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CC
[INFO] [stderr]   CC = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CROSS_COMPILE
[INFO] [stderr]   CROSS_COMPILE = None
[INFO] [stderr]   RUSTC_LINKER = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[INFO] [stderr]   RUSTC_WRAPPER = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[INFO] [stderr]   CRATE_CC_NO_DEFAULTS = None
[INFO] [stderr]   DEBUG = Some(true)
[INFO] [stderr]   CARGO_CFG_TARGET_FEATURE = Some(cmpxchg16b,fxsr,lahfsahf,sse,sse2,sse3,sse4.1,ssse3)
[INFO] [stderr]   cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
[INFO] [stderr]   MACOSX_DEPLOYMENT_TARGET = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CFLAGS_x86_64-apple-darwin
[INFO] [stderr]   CFLAGS_x86_64-apple-darwin = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CFLAGS_x86_64_apple_darwin
[INFO] [stderr]   CFLAGS_x86_64_apple_darwin = None
[INFO] [stderr]   cargo:rerun-if-env-changed=TARGET_CFLAGS
[INFO] [stderr]   TARGET_CFLAGS = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CFLAGS
[INFO] [stderr]   CFLAGS = None
[INFO] [stderr]   cargo:rerun-if-env-changed=LIBBPF_SYS_EXTRA_CFLAGS
[INFO] [stderr]     CC       /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-d57c20a3d8abbd9a/out/obj/staticobjs/bpf.o
[INFO] [stderr]     CC       /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-d57c20a3d8abbd9a/out/obj/staticobjs/btf.o
[INFO] [stderr]     CC       /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-d57c20a3d8abbd9a/out/obj/staticobjs/libbpf.o
[INFO] [stderr]     CC       /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-d57c20a3d8abbd9a/out/obj/staticobjs/libbpf_errno.o
[INFO] [stderr]     CC       /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-d57c20a3d8abbd9a/out/obj/staticobjs/netlink.o
[INFO] [stderr]     CC       /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-d57c20a3d8abbd9a/out/obj/staticobjs/nlattr.o
[INFO] [stderr] 
[INFO] [stderr]   --- stderr
[INFO] [stderr]   cc: error: unrecognized command-line option '-arch'
[INFO] [stderr]   cc: error: unrecognized command-line option '-arch'
[INFO] [stderr]   cc: error: unrecognized command-line option '-arch'
[INFO] [stderr]   cc: error: unrecognized command-line option '-arch'
[INFO] [stderr]   cc: error: unrecognized command-line option '-arch'
[INFO] [stderr]   cc: error: unrecognized command-line option '-arch'
[INFO] [stderr]   cc: error: unrecognized command-line option '-mmacosx-version-min=10.7'
[INFO] [stderr]   make: *** [Makefile:134: /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-d57c20a3d8abbd9a/out/obj/staticobjs/libbpf.o] Error 1
[INFO] [stderr]   make: *** Waiting for unfinished jobs....
[INFO] [stderr]   cc: error: unrecognized command-line option '-mmacosx-version-min=10.7'
[INFO] [stderr]   make: *** [Makefile:134: /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-d57c20a3d8abbd9a/out/obj/staticobjs/btf.o] Error 1
[INFO] [stderr]   cc: error: unrecognized command-line option '-mmacosx-version-min=10.7'
[INFO] [stderr]   make: *** [Makefile:134: /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-d57c20a3d8abbd9a/out/obj/staticobjs/bpf.o] Error 1
[INFO] [stderr]   cc: error: unrecognized command-line option '-mmacosx-version-min=10.7'
[INFO] [stderr]   make: *** [Makefile:134: /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-d57c20a3d8abbd9a/out/obj/staticobjs/netlink.o] Error 1
[INFO] [stderr]   cc: error: unrecognized command-line option '-mmacosx-version-min=10.7'
[INFO] [stderr]   make: *** [Makefile:134: /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-d57c20a3d8abbd9a/out/obj/staticobjs/libbpf_errno.o] Error 1
[INFO] [stderr]   cc: error: unrecognized command-line option '-mmacosx-version-min=10.7'
[INFO] [stderr]   make: *** [Makefile:134: /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-d57c20a3d8abbd9a/out/obj/staticobjs/nlattr.o] Error 1
[INFO] [stderr]   thread 'main' panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libbpf-sys-1.5.0+v1.5.0/build.rs:384:5:
[INFO] [stderr]   make failed
[INFO] [stderr]   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[INFO] running `Command { std: "docker" "inspect" "f830a488492c9598f5e51714bca834bd34aa03ccff579c284a36af58314cc3e6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f830a488492c9598f5e51714bca834bd34aa03ccff579c284a36af58314cc3e6", kill_on_drop: false }`
[INFO] [stdout] f830a488492c9598f5e51714bca834bd34aa03ccff579c284a36af58314cc3e6