libbpf-rs icon indicating copy to clipboard operation
libbpf-rs copied to clipboard

cross compile error on branch 1fc9fe8 Release 0.23.1

Open NorthFat opened this issue 1 year ago • 3 comments

Compiling proc-macro2 v1.0.74 Compiling unicode-ident v1.0.5 Compiling serde v1.0.200 Compiling libc v0.2.154 Compiling cc v1.0.90 Compiling thiserror v1.0.60 Compiling bitflags v2.5.0 Compiling cfg-if v1.0.0 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.74/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="proc-macro"' -C metadata=6ea4f6f4b1ddc048 -C extra-filename=-6ea4f6f4b1ddc048 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/build/proc-macro2-6ea4f6f4b1ddc048 -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name unicode_ident --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unicode-ident-1.0.5/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=72d7bf29ea9bade2 -C extra-filename=-72d7bf29ea9bade2 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.200/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="serde_derive"' --cfg 'feature="std"' -C metadata=e6286a3b084e573b -C extra-filename=-e6286a3b084e573b --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/build/serde-e6286a3b084e573b -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name cc --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.90/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=81941c7bf4bf550d -C extra-filename=-81941c7bf4bf550d --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.154/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="extra_traits"' --cfg 'feature="std"' -C metadata=8f577f797266b1ca -C extra-filename=-8f577f797266b1ca --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/build/libc-8f577f797266b1ca -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name bitflags --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-2.5.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="std"' -C metadata=bcf9535acc03f7ba -C extra-filename=-bcf9535acc03f7ba --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/thiserror-1.0.60/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=087e6058ba640b75 -C extra-filename=-087e6058ba640b75 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/build/thiserror-087e6058ba640b75 -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name cfg_if --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cfg-if-1.0.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=330a72d854cebf0a -C extra-filename=-330a72d854cebf0a --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Compiling syn v1.0.107 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.107/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="clone-impls"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="extra-traits"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="proc-macro"' --cfg 'feature="quote"' -C metadata=5899c3eebb2982e2 -C extra-filename=-5899c3eebb2982e2 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/build/syn-5899c3eebb2982e2 -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Compiling pkg-config v0.3.30 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name pkg_config /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pkg-config-0.3.30/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=064e9605162839df -C extra-filename=-064e9605162839df --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Compiling semver v1.0.23 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.23/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="serde"' --cfg 'feature="std"' -C metadata=38e4ed62f8f8c3fc -C extra-filename=-38e4ed62f8f8c3fc --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/build/semver-38e4ed62f8f8c3fc -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/ebpf/libbpf-rs/target/debug/build/serde-e6286a3b084e573b/build-script-build Running /home/jbf/ebpf/libbpf-rs/target/debug/build/proc-macro2-6ea4f6f4b1ddc048/build-script-build Compiling once_cell v1.19.0 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name once_cell --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="race"' --cfg 'feature="std"' -C metadata=db4b1592012d5599 -C extra-filename=-db4b1592012d5599 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/ebpf/libbpf-rs/target/debug/build/thiserror-087e6058ba640b75/build-script-build Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name proc_macro2 --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.74/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="proc-macro"' -C metadata=f8460701eb6b1dcb -C extra-filename=-f8460701eb6b1dcb --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --extern unicode_ident=/home/jbf/ebpf/libbpf-rs/target/debug/deps/libunicode_ident-72d7bf29ea9bade2.rmeta --cap-lints allow --cfg wrap_proc_macro Compiling serde_json v1.0.116 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_json-1.0.116/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' --cfg 'feature="unbounded_depth"' -C metadata=69f063d3dcf428a8 -C extra-filename=-69f063d3dcf428a8 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/build/serde_json-69f063d3dcf428a8 -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/ebpf/libbpf-rs/target/debug/build/syn-5899c3eebb2982e2/build-script-build Compiling rustix v0.38.31 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustix-0.38.31/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="fs"' --cfg 'feature="std"' --cfg 'feature="use-libc-auxv"' -C metadata=00fed6db6c81bc66 -C extra-filename=-00fed6db6c81bc66 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/build/rustix-00fed6db6c81bc66 -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Compiling camino v1.1.1 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/camino-1.1.1/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="serde"' --cfg 'feature="serde1"' -C metadata=bec6d224c03d322a -C extra-filename=-bec6d224c03d322a --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/build/camino-bec6d224c03d322a -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/ebpf/libbpf-rs/target/debug/build/libc-8f577f797266b1ca/build-script-build Compiling rustversion v1.0.9 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustversion-1.0.9/build/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=438c346f127d301e -C extra-filename=-438c346f127d301e --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/build/rustversion-438c346f127d301e -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name libc /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.154/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="extra_traits"' --cfg 'feature="std"' -C metadata=bf03a92426a97be5 -C extra-filename=-bf03a92426a97be5 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow --cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_int128 --cfg libc_core_cvoid --cfg libc_packedN --cfg libc_cfg_target_vendor --cfg libc_non_exhaustive --cfg libc_long_array --cfg libc_ptr_addr_of --cfg libc_underscore_const_names --cfg libc_const_extern_fn Compiling anyhow v1.0.82 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anyhow-1.0.82/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=e0b1681013e62cff -C extra-filename=-e0b1681013e62cff --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/build/anyhow-e0b1681013e62cff -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Compiling quote v1.0.35 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name quote --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/quote-1.0.35/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="proc-macro"' -C metadata=a6b51d9fba8b8af7 -C extra-filename=-a6b51d9fba8b8af7 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --extern proc_macro2=/home/jbf/ebpf/libbpf-rs/target/debug/deps/libproc_macro2-f8460701eb6b1dcb.rmeta --cap-lints allow Running /home/jbf/ebpf/libbpf-rs/target/debug/build/rustversion-438c346f127d301e/build-script-build Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.154/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=66083ce0ca0e288e -C extra-filename=-66083ce0ca0e288e --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/build/libc-66083ce0ca0e288e -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name rustversion --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustversion-1.0.9/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debuginfo=2 -C metadata=a8f2081260444deb -C extra-filename=-a8f2081260444deb --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --extern proc_macro --cap-lints allow Compiling heck v0.5.0 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name heck --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/heck-0.5.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=6f3760e578df6e90 -C extra-filename=-6f3760e578df6e90 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Compiling heck v0.4.0 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name heck --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/heck-0.4.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' -C metadata=3b52ca4221ce3f03 -C extra-filename=-3b52ca4221ce3f03 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Compiling syn v2.0.46 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name syn --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-2.0.46/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="clone-impls"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="full"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="proc-macro"' --cfg 'feature="quote"' -C metadata=76dbe447ac1e572d -C extra-filename=-76dbe447ac1e572d --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --extern proc_macro2=/home/jbf/ebpf/libbpf-rs/target/debug/deps/libproc_macro2-f8460701eb6b1dcb.rmeta --extern quote=/home/jbf/ebpf/libbpf-rs/target/debug/deps/libquote-a6b51d9fba8b8af7.rmeta --extern unicode_ident=/home/jbf/ebpf/libbpf-rs/target/debug/deps/libunicode_ident-72d7bf29ea9bade2.rmeta --cap-lints allow Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name syn --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.107/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="clone-impls"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="extra-traits"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="proc-macro"' --cfg 'feature="quote"' -C metadata=1496b6b6578f41ba -C extra-filename=-1496b6b6578f41ba --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --extern proc_macro2=/home/jbf/ebpf/libbpf-rs/target/debug/deps/libproc_macro2-f8460701eb6b1dcb.rmeta --extern quote=/home/jbf/ebpf/libbpf-rs/target/debug/deps/libquote-a6b51d9fba8b8af7.rmeta --extern unicode_ident=/home/jbf/ebpf/libbpf-rs/target/debug/deps/libunicode_ident-72d7bf29ea9bade2.rmeta --cap-lints allow --cfg syn_disable_nightly_tests Running /home/jbf/ebpf/libbpf-rs/target/debug/build/serde-e6286a3b084e573b/build-script-build Compiling utf8parse v0.2.1 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name utf8parse --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/utf8parse-0.2.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' -C metadata=fb88971119ec6954 -C extra-filename=-fb88971119ec6954 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Compiling anstyle-parse v0.2.3 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name anstyle_parse --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anstyle-parse-0.2.3/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="utf8"' -C metadata=dd4fae2e50d9339c -C extra-filename=-dd4fae2e50d9339c --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --extern utf8parse=/home/jbf/ebpf/libbpf-rs/target/debug/deps/libutf8parse-fb88971119ec6954.rmeta --cap-lints allow Compiling anstyle v1.0.0 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name anstyle --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anstyle-1.0.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=e3839a7a749c78cb -C extra-filename=-e3839a7a749c78cb --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/ebpf/libbpf-rs/target/debug/build/libc-66083ce0ca0e288e/build-script-build Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name utf8parse --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/utf8parse-0.2.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' -C metadata=98b4c7fecaa13626 -C extra-filename=-98b4c7fecaa13626 --out-dir /home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps --target aarch64-unknown-linux-gnu -C linker=aarch64-linux-gnu-gcc -L dependency=/home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow -C linker=aarch64-linux-gnu-ld Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name libc /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.154/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=0d4edef4bdbed934 -C extra-filename=-0d4edef4bdbed934 --out-dir /home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps --target aarch64-unknown-linux-gnu -C linker=aarch64-linux-gnu-gcc -L dependency=/home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow -C linker=aarch64-linux-gnu-ld --cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_int128 --cfg libc_core_cvoid --cfg libc_packedN --cfg libc_cfg_target_vendor --cfg libc_non_exhaustive --cfg libc_long_array --cfg libc_ptr_addr_of --cfg libc_underscore_const_names --cfg libc_const_extern_fn Compiling colorchoice v1.0.0 Compiling anstyle-query v1.0.2 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name colorchoice --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/colorchoice-1.0.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=9630ef8566f255aa -C extra-filename=-9630ef8566f255aa --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name anstyle_query --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anstyle-query-1.0.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=b7a7e69f7253fabf -C extra-filename=-b7a7e69f7253fabf --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Compiling anstream v0.6.11 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name anstream --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anstream-0.6.11/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="auto"' --cfg 'feature="default"' --cfg 'feature="wincon"' -C metadata=b2d7572368106739 -C extra-filename=-b2d7572368106739 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --extern anstyle=/home/jbf/ebpf/libbpf-rs/target/debug/deps/libanstyle-e3839a7a749c78cb.rmeta --extern anstyle_parse=/home/jbf/ebpf/libbpf-rs/target/debug/deps/libanstyle_parse-dd4fae2e50d9339c.rmeta --extern anstyle_query=/home/jbf/ebpf/libbpf-rs/target/debug/deps/libanstyle_query-b7a7e69f7253fabf.rmeta --extern colorchoice=/home/jbf/ebpf/libbpf-rs/target/debug/deps/libcolorchoice-9630ef8566f255aa.rmeta --extern utf8parse=/home/jbf/ebpf/libbpf-rs/target/debug/deps/libutf8parse-fb88971119ec6954.rmeta --cap-lints allow Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name anstyle_parse --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anstyle-parse-0.2.3/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="utf8"' -C metadata=9c2928da0a63a4d4 -C extra-filename=-9c2928da0a63a4d4 --out-dir /home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps --target aarch64-unknown-linux-gnu -C linker=aarch64-linux-gnu-gcc -L dependency=/home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --extern utf8parse=/home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps/libutf8parse-98b4c7fecaa13626.rmeta --cap-lints allow -C linker=aarch64-linux-gnu-ld Running /home/jbf/ebpf/libbpf-rs/target/debug/build/camino-bec6d224c03d322a/build-script-build Running /home/jbf/ebpf/libbpf-rs/target/debug/build/rustix-00fed6db6c81bc66/build-script-build Running /home/jbf/ebpf/libbpf-rs/target/debug/build/serde_json-69f063d3dcf428a8/build-script-build Running /home/jbf/ebpf/libbpf-rs/target/debug/build/semver-38e4ed62f8f8c3fc/build-script-build Running /home/jbf/ebpf/libbpf-rs/target/debug/build/thiserror-087e6058ba640b75/build-script-build Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name bitflags --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-2.5.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="std"' -C metadata=3983a9835858f4bf -C extra-filename=-3983a9835858f4bf --out-dir /home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps --target aarch64-unknown-linux-gnu -C linker=aarch64-linux-gnu-gcc -L dependency=/home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow -C linker=aarch64-linux-gnu-ld Compiling nix v0.27.1 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name nix --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nix-0.27.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="fs"' -C metadata=f21dc407d3faf919 -C extra-filename=-f21dc407d3faf919 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --extern bitflags=/home/jbf/ebpf/libbpf-rs/target/debug/deps/libbitflags-bcf9535acc03f7ba.rmeta --extern cfg_if=/home/jbf/ebpf/libbpf-rs/target/debug/deps/libcfg_if-330a72d854cebf0a.rmeta --extern libc=/home/jbf/ebpf/libbpf-rs/target/debug/deps/liblibc-bf03a92426a97be5.rmeta --cap-lints allow Compiling itoa v1.0.4 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name itoa --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/itoa-1.0.4/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=dde2db8e49f443db -C extra-filename=-dde2db8e49f443db --out-dir /home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps --target aarch64-unknown-linux-gnu -C linker=aarch64-linux-gnu-gcc -L dependency=/home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow -C linker=aarch64-linux-gnu-ld Compiling linux-raw-sys v0.4.12 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name linux_raw_sys --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/linux-raw-sys-0.4.12/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="elf"' --cfg 'feature="errno"' --cfg 'feature="general"' --cfg 'feature="ioctl"' --cfg 'feature="no_std"' -C metadata=3e55ba3d3fbe11bc -C extra-filename=-3e55ba3d3fbe11bc --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name anstyle --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anstyle-1.0.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=aec2811acbaabf03 -C extra-filename=-aec2811acbaabf03 --out-dir /home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps --target aarch64-unknown-linux-gnu -C linker=aarch64-linux-gnu-gcc -L dependency=/home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow -C linker=aarch64-linux-gnu-ld Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name itoa --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/itoa-1.0.4/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=d761450ca2b255b3 -C extra-filename=-d761450ca2b255b3 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Compiling strsim v0.11.0 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name strsim /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/strsim-0.11.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=b49d1aad7d0f7d6f -C extra-filename=-b49d1aad7d0f7d6f --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Compiling vsprintf v2.0.0 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/vsprintf-2.0.0/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=1b2a0b6e6c8d2d40 -C extra-filename=-1b2a0b6e6c8d2d40 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/build/vsprintf-1b2a0b6e6c8d2d40 -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --extern cc=/home/jbf/ebpf/libbpf-rs/target/debug/deps/libcc-81941c7bf4bf550d.rlib --cap-lints allow Compiling regex-syntax v0.8.2 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name regex_syntax --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/regex-syntax-0.8.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="std"' --cfg 'feature="unicode-perl"' -C metadata=d4b716ea18d55b88 -C extra-filename=-d4b716ea18d55b88 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name colorchoice --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/colorchoice-1.0.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=3718cba1920ff34d -C extra-filename=-3718cba1920ff34d --out-dir /home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps --target aarch64-unknown-linux-gnu -C linker=aarch64-linux-gnu-gcc -L dependency=/home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow -C linker=aarch64-linux-gnu-ld Compiling clap_lex v0.7.0 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name clap_lex --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_lex-0.7.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=da79178aa885c4d1 -C extra-filename=-da79178aa885c4d1 --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name anstyle_query --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anstyle-query-1.0.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=45a49dc3a5654c93 -C extra-filename=-45a49dc3a5654c93 --out-dir /home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps --target aarch64-unknown-linux-gnu -C linker=aarch64-linux-gnu-gcc -L dependency=/home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow -C linker=aarch64-linux-gnu-ld Compiling ryu v1.0.11 Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name ryu --edition=2018 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ryu-1.0.11/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=8a0d956f51e0624e -C extra-filename=-8a0d956f51e0624e --out-dir /home/jbf/ebpf/libbpf-rs/target/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --cap-lints allow Running /home/jbf/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name anstream --edition=2021 /home/jbf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anstream-0.6.11/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="auto"' --cfg 'feature="default"' --cfg 'feature="wincon"' -C metadata=71584d7026086554 -C extra-filename=-71584d7026086554 --out-dir /home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps --target aarch64-unknown-linux-gnu -C linker=aarch64-linux-gnu-gcc -L dependency=/home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps -L dependency=/home/jbf/ebpf/libbpf-rs/target/debug/deps --extern anstyle=/home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps/libanstyle-aec2811acbaabf03.rmeta --extern anstyle_parse=/home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps/libanstyle_parse-9c2928da0a63a4d4.rmeta --extern anstyle_query=/home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps/libanstyle_query-45a49dc3a5654c93.rmeta --extern colorchoice=/home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps/libcolorchoice-3718cba1920ff34d.rmeta --extern utf8parse=/home/jbf/ebpf/libbpf-rs/target/aarch64-unknown-linux-gnu/debug/deps/libutf8parse-98b4c7fecaa13626.rmeta --cap-lints allow -C linker=aarch64-linux-gnu-ld Running /home/jbf/ebpf/libbpf-rs/target/debug/build/vsprintf-1b2a0b6e6c8d2d40/build-script-build The following warnings were emitted during compilation:

warning: [email protected]: aarch64-fsl-linux-gcc: error: unrecognized command-line option ‘-m64’

error: failed to run custom build command for vsprintf v2.0.0

Caused by: process didn't exit successfully: /home/jbf/ebpf/libbpf-rs/target/debug/build/vsprintf-1b2a0b6e6c8d2d40/build-script-build (exit status: 1) --- stdout cargo:rerun-if-changed=src/lib.c TARGET = Some("x86_64-unknown-linux-gnu") OPT_LEVEL = Some("0") HOST = Some("x86_64-unknown-linux-gnu") cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu CC_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu CC_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = Some("aarch64-fsl-linux-gcc -mcpu=cortex-a53 -march=armv8-a+crc+crypto -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jbf/fsl-auto-glibc-x86_64-cortexa53-crypto-toolchain-38.0/sysroots/cortexa53-crypto-fsl-linux") cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu CFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu CFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = Some(" -O2 -pipe -g -feliminate-unused-debug-types ") cargo:warning=aarch64-fsl-linux-gcc: error: unrecognized command-line option ‘-m64’

--- stderr

error occurred: Command "aarch64-fsl-linux-gcc" "-mcpu=cortex-a53" "-march=armv8-a+crc+crypto" "-fstack-protector-strong" "-O2" "-D_FORTIFY_SOURCE=2" "-Wformat" "-Wformat-security" "-Werror=format-security" "--sysroot=/home/jbf/fsl-auto-glibc-x86_64-cortexa53-crypto-toolchain-38.0/sysroots/cortexa53-crypto-fsl-linux" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-O2" "-pipe" "-g" "-feliminate-unused-debug-types" "-o" "/home/jbf/ebpf/libbpf-rs/target/debug/build/vsprintf-df51011337ce2a69/out/2e40c9e35e9506f4-lib.o" "-c" "src/lib.c" with args "aarch64-fsl-linux-gcc" did not execute successfully (status code exit status: 1).

warning: build failed, waiting for other jobs to finish...

my config.toml: [target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"

NorthFat avatar May 09 '24 08:05 NorthFat

Seems as if vsprintf failed to build? Can you report it there?

danielocfb avatar May 09 '24 14:05 danielocfb

Seems as if vsprintf failed to build? Can you report it there?

I cross compile vsprintf alone and there is no problem. I use this command to cross compile cargo build --target aarch64-unknown-linux-gnu -p vsprintf info: component 'rust-std' for target 'aarch64-unknown-linux-gnu' is up to date Fresh cc v1.0.90 Fresh libc v0.2.154 Fresh vsprintf v2.0.0 Finished dev [unoptimized + debuginfo] target(s) in 0.04s

NorthFat avatar May 10 '24 00:05 NorthFat

I sovled the problem, The error "-m64“ is probably related to environment variables of the YOCTO cross-compiler,so I changed the cross-compiler to a baremetal one and export some enviroment variable manually, In summary, cross-compiling Rust projects requires some tricky and a bit of luck. By the way, I modified the libbpf-sys-1.4.1+v1.4.0/build.rs otherwise, I can't pass the compilation.

NorthFat avatar May 11 '24 00:05 NorthFat

By the way, I modified the libbpf-sys-1.4.1+v1.4.0/build.rs otherwise, I can't pass the compilation.

Feel free to open a pull request there.

danielocfb avatar May 20 '24 17:05 danielocfb