HOSTRUSTC scripts/generate_rust_target error: linking with `cc` failed: exit status: 1 | = note: LC_ALL="C" PATH="/usr/lib/rustlib/aarch64-alpine-linux-musl/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/home/mps/.local/bin:/usr/sbin:/sbin" VSLANG="1033" "cc" "/tmp/rustckGnkDK/symbols.o" "generate_rust_target.generate_rust_target.5e7b32ca-cgu.0.rcgu.o" "generate_rust_target.generate_rust_target.5e7b32ca-cgu.1.rcgu.o" "generate_rust_target.generate_rust_target.5e7b32ca-cgu.10.rcgu.o" "generate_rust_target.generate_rust_target.5e7b32ca-cgu.11.rcgu.o" "generate_rust_target.generate_rust_target.5e7b32ca-cgu.12.rcgu.o" "generate_rust_target.generate_rust_target.5e7b32ca-cgu.13.rcgu.o" "generate_rust_target.generate_rust_target.5e7b32ca-cgu.14.rcgu.o" "generate_rust_target.generate_rust_target.5e7b32ca-cgu.15.rcgu.o" "generate_rust_target.generate_rust_target.5e7b32ca-cgu.2.rcgu.o" "generate_rust_target.generate_rust_target.5e7b32ca-cgu.3.rcgu.o" "generate_rust_target.generate_rust_target.5e7b32ca-cgu.4.rcgu.o" "generate_rust_target.generate_rust_target.5e7b32ca-cgu.5.rcgu.o" "generate_rust_target.generate_rust_target.5e7b32ca-cgu.6.rcgu.o" "generate_rust_target.generate_rust_target.5e7b32ca-cgu.7.rcgu.o" "generate_rust_target.generate_rust_target.5e7b32ca-cgu.8.rcgu.o" "generate_rust_target.generate_rust_target.5e7b32ca-cgu.9.rcgu.o" "generate_rust_target.5bif2oial7dv8z3y.rcgu.o" "-Wl,--as-needed" "-L" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib" "-Wl,-Bstatic" "/tmp/rustckGnkDK/libstd-37b49b4fb2c4d0c5.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/libpanic_unwind-9f038f8107fa4d91.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/libobject-7696989781838485.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/libmemchr-5b59e89f369b4f58.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/libaddr2line-6845dbd74aa2695e.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/libgimli-dfaa45164fc17721.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/librustc_demangle-24bd42eccec0f4ce.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/libstd_detect-680380a09f15e842.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/libhashbrown-c44f641c03823a7c.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/libminiz_oxide-3ba3e67137ba06c7.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/libadler-3bf867101c985efe.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/librustc_std_workspace_alloc-515c473f6eaa88df.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/libunwind-90170a8b1fcd9b46.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/libcfg_if-e1ee7b8ce8e72a73.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/liblibc-da64f3cfed489c91.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/liballoc-8a704d8bbc4278e8.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/librustc_std_workspace_core-f24a4c50939fd3f4.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/libcore-34c4ebaa62ddd14e.rlib" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib/libcompiler_builtins-628d5913176fe2c2.rlib" "-Wl,-Bdynamic" "-lssp_nonshared" "-lgcc_s" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/usr/lib/rustlib/aarch64-alpine-linux-musl/lib" "-o" "scripts/generate_rust_target" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs" = note: /usr/lib/gcc/aarch64-alpine-linux-musl/13.1.1/../../../../aarch64-alpine-linux-musl/bin/ld: /tmp/rustckGnkDK/libstd-37b49b4fb2c4d0c5.rlib(std-37b49b4fb2c4d0c5.std.da596e68-cgu.0.rcgu.o): in function `std::fs::metadata': std.da596e68-cgu.0:(.text._ZN3std2fs8metadata17h0e00d5c4132aa17aE+0x80): undefined reference to `stat64' /usr/lib/gcc/aarch64-alpine-linux-musl/13.1.1/../../../../aarch64-alpine-linux-musl/bin/ld: /tmp/rustckGnkDK/libstd-37b49b4fb2c4d0c5.rlib(std-37b49b4fb2c4d0c5.std.da596e68-cgu.0.rcgu.o): in function `std::sys::common::small_c_string::run_with_cstr_allocating': std.da596e68-cgu.0:(.text.unlikely._ZN3std3sys6common14small_c_string24run_with_cstr_allocating17hc1019bdbc19fd286E+0x78): undefined reference to `stat64' /usr/lib/gcc/aarch64-alpine-linux-musl/13.1.1/../../../../aarch64-alpine-linux-musl/bin/ld: /tmp/rustckGnkDK/libstd-37b49b4fb2c4d0c5.rlib(std-37b49b4fb2c4d0c5.std.da596e68-cgu.0.rcgu.o): in function `std::sys::unix::fs::File::open_c': std.da596e68-cgu.0:(.text._ZN3std3sys4unix2fs4File6open_c17h35d447b5227a9eb9E+0xfc): undefined reference to `open64' /usr/lib/gcc/aarch64-alpine-linux-musl/13.1.1/../../../../aarch64-alpine-linux-musl/bin/ld: /tmp/rustckGnkDK/libstd-37b49b4fb2c4d0c5.rlib(std-37b49b4fb2c4d0c5.std.da596e68-cgu.0.rcgu.o): in function `std::backtrace_rs::symbolize::gimli::mmap': std.da596e68-cgu.0:(.text._ZN3std12backtrace_rs9symbolize5gimli4mmap17he81675bab01eb233E+0x13c): undefined reference to `fstat64' collect2: error: ld returned 1 exit status = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified = note: use the `-l` flag to specify native libraries to link = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname) error: aborting due to previous error make[1]: *** [scripts/Makefile.host:153: scripts/generate_rust_target] Error 1 make: *** [Makefile:1271: scripts] Error 2 >>> ERROR: linux-asahi-edge: build failed