libbpf-rs 0.23.3

libbpf-rs is a safe, idiomatic, and opinionated wrapper around libbpf-sys
Documentation
Build #1246685 2024-06-11T22:01:39.480311+00:00
# rustc version
rustc 1.81.0-nightly (b5b13568f 2024-06-10)# docs.rs version
docsrs 0.6.0 (2d4f32bd 2024-05-19)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/libbpf-rs-0.23.3/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/libbpf-rs-0.23.3/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder/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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20240610-1.81.0-nightly-b5b13568f\", \"--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] a7b3afb808c0ae7da36ac668774a990ffb95ecbd30505be520833d4a867a39e6
[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" "a7b3afb808c0ae7da36ac668774a990ffb95ecbd30505be520833d4a867a39e6", 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.4.2+v1.4.2
[INFO] [stderr] The following warnings were emitted during compilation:
[INFO] [stderr] 
[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] 
[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-dd565b14fb2ee8f1/build-script-build` (exit status: 1)
[INFO] [stderr]   --- stdout
[INFO] [stderr]   cargo:rerun-if-changed=src/lib.c
[INFO] [stderr]   TARGET = Some("x86_64-apple-darwin")
[INFO] [stderr]   OPT_LEVEL = Some("0")
[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]   RUSTC_LINKER = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CROSS_COMPILE
[INFO] [stderr]   CROSS_COMPILE = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[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=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-aca9fe5b10732f20/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.4.2+v1.4.2`
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/target/debug/build/libbpf-sys-ac62da15d90806c0/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]   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]   RUSTC_LINKER = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CROSS_COMPILE
[INFO] [stderr]   CROSS_COMPILE = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[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=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]     CC       /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-eeb1b921bc8e6e23/out/obj/staticobjs/bpf.o
[INFO] [stderr]     CC       /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-eeb1b921bc8e6e23/out/obj/staticobjs/btf.o
[INFO] [stderr]     CC       /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-eeb1b921bc8e6e23/out/obj/staticobjs/libbpf.o
[INFO] [stderr]     CC       /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-eeb1b921bc8e6e23/out/obj/staticobjs/libbpf_errno.o
[INFO] [stderr]     CC       /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-eeb1b921bc8e6e23/out/obj/staticobjs/netlink.o
[INFO] [stderr]     CC       /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-eeb1b921bc8e6e23/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]   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-eeb1b921bc8e6e23/out/obj/staticobjs/btf.o] Error 1
[INFO] [stderr]   make: *** Waiting for unfinished jobs....
[INFO] [stderr]   make: *** [Makefile:134: /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-eeb1b921bc8e6e23/out/obj/staticobjs/libbpf.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-eeb1b921bc8e6e23/out/obj/staticobjs/libbpf_errno.o] Error 1
[INFO] [stderr]   cc: error: unrecognized command-line option '-mmacosx-version-min=10.7'
[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-eeb1b921bc8e6e23/out/obj/staticobjs/netlink.o] Error 1
[INFO] [stderr]   make: *** [Makefile:134: /opt/rustwide/target/x86_64-apple-darwin/debug/build/libbpf-sys-eeb1b921bc8e6e23/out/obj/staticobjs/nlattr.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-eeb1b921bc8e6e23/out/obj/staticobjs/bpf.o] Error 1
[INFO] [stderr]   thread 'main' panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/libbpf-sys-1.4.2+v1.4.2/build.rs:340: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" "a7b3afb808c0ae7da36ac668774a990ffb95ecbd30505be520833d4a867a39e6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a7b3afb808c0ae7da36ac668774a990ffb95ecbd30505be520833d4a867a39e6", kill_on_drop: false }`
[INFO] [stdout] a7b3afb808c0ae7da36ac668774a990ffb95ecbd30505be520833d4a867a39e6