community/rust: linking broken
$ echo 'fn main() {}' | rustc -o tmp -
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/usr/lib/rustlib/x86_64-alpine-linux-musl/bin:/usr/lib/ccache/bin:/home/lauren/.cargo/bin:/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/lauren/.local/bin:/home/lauren/.yarn/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustc5j3YRm/symbols.o" "tmp.rust_out.51afe8d2-cgu.0.rcgu.o" "tmp.rust_out.51afe8d2-cgu.1.rcgu.o" "tmp.rust_out.51afe8d2-cgu.2.rcgu.o" "tmp.rust_out.51afe8d2-cgu.3.rcgu.o" "tmp.rust_out.51afe8d2-cgu.4.rcgu.o" "tmp.2lnlu7e7pig7d85r.rcgu.o" "-Wl,--as-needed" "-L" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib" "-Wl,-Bstatic" "/tmp/rustc5j3YRm/libstd-92e7e3590515609f.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/libpanic_unwind-da4e24c96bd81a4b.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/libobject-fa33c8348c5ed2a0.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/libmemchr-dad49bed51837ce5.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/libaddr2line-fec1450ea7255577.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/libgimli-68f27b25e4ad8a3c.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/librustc_demangle-e38e7c667f6bbb46.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/libstd_detect-dd631b8117abe0a3.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/libhashbrown-f0f0e2f2e1b3cf6c.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/libminiz_oxide-303f02f2aea66074.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/libadler-a63048a1d5d7a335.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/librustc_std_workspace_alloc-fbc315d28d7f8b7b.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/libunwind-9b0835c61811957c.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/libcfg_if-8eef813d8eec1779.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/liblibc-fc966b9b9672d2b8.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/liballoc-dc74990b4836e6a4.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/librustc_std_workspace_core-e6515f5e34b30bbe.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/libcore-a4a90212b72df1df.rlib" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib/libcompiler_builtins-7d60e406cfd168ad.rlib" "-Wl,-Bdynamic" "-lssp_nonshared" "-lgcc_s" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/usr/lib/rustlib/x86_64-alpine-linux-musl/lib" "-o" "tmp" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs" "-Wl,-rpath,$ORIGIN/../../usr/lib/rustlib/x86_64-alpine-linux-musl/lib" "-Wl,--enable-new-dtags" "-Wl,-z,origin"
= note: /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/rustc5j3YRm/libstd-92e7e3590515609f.rlib(std-92e7e3590515609f.std.cd3b1d1a-cgu.0.rcgu.o): in function `std::fs::metadata':
std.cd3b1d1a-cgu.0:(.text._ZN3std2fs8metadata17hc052a1d5d7eb3f8eE+0xba): undefined reference to `stat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/rustc5j3YRm/libstd-92e7e3590515609f.rlib(std-92e7e3590515609f.std.cd3b1d1a-cgu.0.rcgu.o): in function `std::sys::common::small_c_string::run_with_cstr_allocating':
std.cd3b1d1a-cgu.0:(.text.unlikely._ZN3std3sys6common14small_c_string24run_with_cstr_allocating17h8d86ac46c0d39246E+0xaa): undefined reference to `stat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/rustc5j3YRm/libstd-92e7e3590515609f.rlib(std-92e7e3590515609f.std.cd3b1d1a-cgu.0.rcgu.o): in function `std::sys::unix::fs::File::open_c':
std.cd3b1d1a-cgu.0:(.text._ZN3std3sys4unix2fs4File6open_c17h1f258fd20c66e4f5E+0xe3): undefined reference to `open64'
/usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: std.cd3b1d1a-cgu.0:(.text._ZN3std3sys4unix2fs4File6open_c17h1f258fd20c66e4f5E+0xfa): undefined reference to `open64'
/usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/rustc5j3YRm/libstd-92e7e3590515609f.rlib(std-92e7e3590515609f.std.cd3b1d1a-cgu.0.rcgu.o): in function `std::backtrace_rs::symbolize::gimli::mmap':
std.cd3b1d1a-cgu.0:(.text._ZN3std12backtrace_rs9symbolize5gimli4mmap17h386ee27c79fa713dE+0x171): 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