Closed darkworon closed 1 year ago
Now, simple hello world (with no crates) compiling fine. But I've tried with some crates I using and it still failing. Cargo.toml:
Cargo.toml
[package] name = "rust-http-server" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] #mimalloc = { version = "*", features = ["secure"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1" optional-field = "0.1.6" sha256 = "1" rand = "0.8.5" axum = { version = "0.6.20"} tokio = { version = "1.32.0", features = ["full"] } chrono = { version = "0.4.28", features = ["serde"] } serde_repr = "0.1.16" tower-http = { version = "0.4.4", features = ["full"]} tower = {version = "0.4.13", features = ["full"]} #serde_valid = "0.16.3" axum_serde_valid = { version = "0.16.3" } validator = { version = "0.16.1", features = ["derive"] } tracing = "0.1.37" tracing-subscriber = { version = "0.3.16", features = ["env-filter"]} tokio-context = "*"
cargo build step:
cargo build
#10 [builder 6/6] RUN cargo build --release --target=aarch64-unknown-linux-musl --bin rust-http-server #10 0.385 Updating crates.io index #10 2.718 Downloading crates ... #10 3.721 Downloaded thiserror-impl v1.0.48 #10 3.726 Downloaded time-core v0.1.1 #10 3.727 Downloaded time v0.1.45 #10 3.728 Downloaded thiserror v1.0.48 #10 3.735 Downloaded tracing-core v0.1.31 #10 3.738 Downloaded typenum v1.16.0 #10 3.741 Downloaded cfg-if v1.0.0 #10 3.742 Downloaded unicase v2.7.0 #10 3.744 Downloaded validator v0.16.1 #10 3.746 Downloaded bytes v1.4.0 #10 3.750 Downloaded tower-service v0.3.2 #10 3.751 Downloaded bytecount v0.6.3 #10 3.752 Downloaded tracing v0.1.37 #10 3.756 Downloaded httparse v1.8.0 #10 3.759 Downloaded either v1.9.0 #10 3.760 Downloaded bit-set v0.5.3 #10 3.761 Downloaded proc-macro-error v1.0.4 #10 3.765 Downloaded quote v1.0.33 #10 3.768 Downloaded pin-utils v0.1.0 #10 3.769 Downloaded want v0.3.1 #10 3.770 Downloaded optional-fields-serde-macro v0.1.2 #10 3.771 Downloaded proc-macro-error-attr v1.0.4 #10 3.772 Downloaded http-range-header v0.3.1 #10 3.773 Downloaded num-cmp v0.1.0 #10 3.774 Downloaded clap_lex v0.5.1 #10 3.775 Downloaded bit-vec v0.6.3 #10 3.777 Downloaded anstyle-query v1.0.0 #10 3.779 Downloaded rustversion v1.0.14 #10 3.782 Downloaded hex v0.4.3 #10 3.783 Downloaded fancy-regex v0.11.0 #10 3.788 Downloaded futures-io v0.3.28 #10 3.788 Downloaded form_urlencoded v1.2.0 #10 3.789 Downloaded heck v0.4.1 #10 3.790 Downloaded rand_core v0.6.4 #10 3.792 Downloaded ppv-lite86 v0.2.17 #10 3.793 Downloaded pkg-config v0.3.27 #10 3.794 Downloaded pin-project-internal v1.1.3 #10 3.795 Downloaded paste v1.0.14 #10 3.798 Downloaded matchit v0.7.2 #10 3.801 Downloaded crypto-common v0.1.6 #10 3.801 Downloaded if_chain v1.0.2 #10 3.802 Downloaded futures-task v0.3.28 #10 3.804 Downloaded cpufeatures v0.2.9 #10 3.805 Downloaded alloc-stdlib v0.2.2 #10 3.806 Downloaded anstyle v1.0.2 #10 3.808 Downloaded parking_lot v0.12.1 #10 3.810 Downloaded time v0.3.28 #10 3.817 Downloaded colorchoice v1.0.0 #10 3.817 Downloaded anstream v0.5.0 #10 3.819 Downloaded cc v1.0.83 #10 3.822 Downloaded serde_valid_derive v0.16.3 #10 3.825 Downloaded anyhow v1.0.75 #10 3.829 Downloaded smallvec v1.11.0 #10 3.831 Downloaded generic-array v0.14.7 #10 3.832 Downloaded rand v0.8.5 #10 3.836 Downloaded clap v4.4.2 #10 3.844 Downloaded optional-field v0.1.6 #10 3.845 Downloaded strsim v0.10.0 #10 3.846 Downloaded serde_valid_literal v0.16.3 #10 3.847 Downloaded serde v1.0.188 #10 3.851 Downloaded async-compression v0.4.2 #10 3.859 Downloaded validator_derive v0.16.0 #10 3.860 Downloaded tower-layer v0.3.2 #10 3.861 Downloaded block-buffer v0.10.4 #10 3.862 Downloaded num-integer v0.1.45 #10 3.863 Downloaded futures-core v0.3.28 #10 3.865 Downloaded bitflags v1.3.2 #10 3.868 Downloaded alloc-no-stdlib v2.0.4 #10 3.869 Downloaded sha256 v1.4.0 #10 3.870 Downloaded num-iter v0.1.43 #10 3.871 Downloaded sync_wrapper v0.1.2 #10 3.872 Downloaded aho-corasick v1.0.5 #10 3.879 Downloaded serde_path_to_error v0.1.14 #10 3.880 Downloaded async-trait v0.1.73 #10 3.883 Downloaded regex-syntax v0.6.29 #10 3.891 Downloaded idna v0.4.0 #10 3.898 Downloaded iso8601 v0.6.1 #10 3.900 Downloaded nu-ansi-term v0.46.0 #10 3.902 Downloaded serde_urlencoded v0.7.1 #10 3.903 Downloaded iana-time-zone v0.1.57 #10 3.905 Downloaded regex-automata v0.3.8 #10 3.922 Downloaded signal-hook-registry v1.4.1 #10 3.923 Downloaded tracing-log v0.1.3 #10 3.925 Downloaded num_cpus v1.16.0 #10 3.928 Downloaded utf8parse v0.2.1 #10 3.929 Downloaded clap_derive v4.4.2 #10 3.931 Downloaded brotli v3.3.4 #10 3.957 Downloaded socket2 v0.5.3 #10 3.959 Downloaded slab v0.4.9 #10 3.960 Downloaded serde_derive v1.0.188 #10 3.963 Downloaded flate2 v1.0.27 #10 3.967 Downloaded sharded-slab v0.1.4 #10 3.970 Downloaded base64 v0.21.3 #10 3.973 Downloaded minimal-lexical v0.2.1 #10 3.978 Downloaded url v2.4.1 #10 3.981 Downloaded hashbrown v0.12.3 #10 3.985 Downloaded num-bigint v0.4.4 #10 3.990 Downloaded unicode-normalization v0.1.22 #10 3.993 Downloaded hyper v0.14.27 #10 4.001 Downloaded serde_json v1.0.105 #10 4.009 Downloaded tracing-subscriber v0.3.17 #10 4.016 Downloaded syn v2.0.31 #10 4.026 Downloaded syn v1.0.109 #10 4.036 Downloaded futures-util v0.3.28 #10 4.049 Downloaded libc v0.2.147 #10 4.077 Downloaded encoding_rs v0.8.33 #10 4.100 Downloaded zstd-sys v2.0.8+zstd.1.5.5 #10 4.118 Downloaded brotli-decompressor v2.3.4 #10 4.125 Downloaded chrono v0.4.29 #10 4.132 Downloaded itertools v0.10.5 #10 4.137 Downloaded axum v0.6.20 #10 4.143 Downloaded http v0.2.9 #10 4.147 Downloaded zstd v0.12.4 #10 4.149 Downloaded uuid v1.4.1 #10 4.153 Downloaded once_cell v1.18.0 #10 4.155 Downloaded num-traits v0.2.16 #10 4.157 Downloaded lock_api v0.4.10 #10 4.159 Downloaded unicode-ident v1.0.11 #10 4.161 Downloaded unicode-bidi v0.3.13 #10 4.163 Downloaded getrandom v0.2.10 #10 4.165 Downloaded futures-channel v0.3.28 #10 4.167 Downloaded crc32fast v1.3.2 #10 4.169 Downloaded bitflags v2.4.0 #10 4.171 Downloaded ahash v0.8.3 #10 4.173 Downloaded tinyvec v1.6.0 #10 4.175 Downloaded num-rational v0.4.1 #10 4.176 Downloaded tokio v1.32.0 #10 4.210 Downloaded regex-syntax v0.7.5 #10 4.218 Downloaded regex v1.9.5 #10 4.230 Downloaded hdrhistogram v7.5.2 #10 4.237 Downloaded jobserver v0.1.26 #10 4.238 Downloaded digest v0.10.7 #10 4.240 Downloaded h2 v0.3.21 #10 4.246 Downloaded mime v0.3.17 #10 4.247 Downloaded serde_repr v0.1.16 #10 4.248 Downloaded version_check v0.9.4 #10 4.249 Downloaded axum-core v0.3.4 #10 4.251 Downloaded zstd-safe v6.0.6 #10 4.252 Downloaded tokio-macros v2.1.0 #10 4.253 Downloaded ipnet v2.8.0 #10 4.254 Downloaded nom v7.1.3 #10 4.260 Downloaded memchr v2.6.3 #10 4.265 Downloaded regex-automata v0.1.10 #10 4.270 Downloaded iri-string v0.7.0 #10 4.276 Downloaded mio v0.8.8 #10 4.281 Downloaded jsonschema v0.17.1 #10 4.287 Downloaded reqwest v0.11.20 #10 4.294 Downloaded autocfg v1.1.0 #10 4.295 Downloaded num v0.4.1 #10 4.295 Downloaded unicode-segmentation v1.10.1 #10 4.299 Downloaded socket2 v0.4.9 #10 4.300 Downloaded log v0.4.20 #10 4.302 Downloaded pin-project v1.1.3 #10 4.312 Downloaded fraction v0.13.1 #10 4.315 Downloaded miniz_oxide v0.7.1 #10 4.317 Downloaded proc-macro2 v1.0.66 #10 4.319 Downloaded tower v0.4.13 #10 4.327 Downloaded sha2 v0.10.7 #10 4.329 Downloaded anstyle-parse v0.2.1 #10 4.330 Downloaded num-complex v0.4.4 #10 4.332 Downloaded mime_guess v2.0.4 #10 4.333 Downloaded serde_valid v0.16.3 #10 4.338 Downloaded clap_builder v4.4.2 #10 4.343 Downloaded matchers v0.1.0 #10 4.344 Downloaded indexmap v1.9.3 #10 4.347 Downloaded scopeguard v1.2.0 #10 4.348 Downloaded ryu v1.0.15 #10 4.350 Downloaded pin-project-lite v0.2.13 #10 4.355 Downloaded parking_lot_core v0.9.8 #10 4.357 Downloaded overload v0.1.1 #10 4.358 Downloaded http-body v0.4.5 #10 4.359 Downloaded deranged v0.3.8 #10 4.360 Downloaded byteorder v1.4.3 #10 4.361 Downloaded tokio-util v0.7.8 #10 4.366 Downloaded rand_chacha v0.3.1 #10 4.367 Downloaded percent-encoding v2.3.0 #10 4.368 Downloaded itoa v1.0.9 #10 4.369 Downloaded httpdate v1.0.3 #10 4.370 Downloaded futures-sink v0.3.28 #10 4.370 Downloaded fnv v1.0.7 #10 4.371 Downloaded tinyvec_macros v0.1.1 #10 4.372 Downloaded time-macros v0.2.14 #10 4.373 Downloaded axum_serde_valid v0.16.3 #10 4.374 Downloaded lazy_static v1.4.0 #10 4.375 Downloaded tower-http v0.4.4 #10 4.382 Downloaded tokio-context v0.1.3 #10 4.382 Downloaded thread_local v1.1.7 #10 4.384 Downloaded tracing-attributes v0.1.26 #10 4.385 Downloaded adler v1.0.2 #10 4.386 Downloaded try-lock v0.2.4 #10 4.387 Downloaded validator_types v0.16.0 #10 4.428 Compiling proc-macro2 v1.0.66 #10 4.428 Compiling unicode-ident v1.0.11 #10 4.428 Compiling autocfg v1.1.0 #10 4.428 Compiling libc v0.2.147 #10 4.428 Compiling version_check v0.9.4 #10 4.430 Compiling cfg-if v1.0.0 #10 4.430 Compiling memchr v2.6.3 #10 4.432 Compiling serde v1.0.188 #10 4.474 Compiling pin-project-lite v0.2.13 #10 4.511 Compiling bytes v1.4.0 #10 4.542 Compiling parking_lot_core v0.9.8 #10 4.671 error: linking with `cc` failed: exit status: 1 #10 4.671 | #10 4.671 = note: LC_ALL="C" PATH="/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/bin:/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/bin/self-contained:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crt1.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crti.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtbegin.o" "/tmp/rustcYC2AxU/symbols.o" "/usr/src/rust-http-server/target/release/build/serde-3e29558011f6fa95/build_script_build-3e29558011f6fa95.build_script_build.863f13f500d0a653-cgu.0.rcgu.o" "/usr/src/rust-http-server/target/release/build/serde-3e29558011f6fa95/build_script_build-3e29558011f6fa95.build_script_build.863f13f500d0a653-cgu.1.rcgu.o" "/usr/src/rust-http-server/target/release/build/serde-3e29558011f6fa95/build_script_build-3e29558011f6fa95.1vkoi9jynffnun1x.rcgu.o" "-Wl,--as-needed" "-L" "/usr/src/rust-http-server/target/release/deps" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libstd-2ad8dcade37f4a90.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libpanic_unwind-979572faa2a17916.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libobject-93508898bcfc3702.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libmemchr-ab66446b81463d74.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libaddr2line-6083b516af549008.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libgimli-2389476f2626efb6.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_demangle-97faebafc321e964.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libstd_detect-e8ac812a6dab364e.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libhashbrown-dde0af57b0f2901e.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_std_workspace_alloc-8df52c7f042aeffd.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libminiz_oxide-8789ebd13f9e0a12.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libadler-cb238a2d7c01ef75.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libunwind-0ebf8faa9e79b9cc.rlib" "-lunwind" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcfg_if-73698e09b48b4cfd.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/liblibc-3f7bca623c41b752.rlib" "-lc" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/liballoc-11ab57860e7dd426.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_std_workspace_core-7ffd2525fa6ce213.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcore-e91e1df47a197349.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained" "-o" "/usr/src/rust-http-server/target/release/build/serde-3e29558011f6fa95/build_script_build-3e29558011f6fa95" "-Wl,--gc-sections" "-static" "-no-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtend.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtn.o" #10 4.671 = note: /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib(45c91108d938afe8-cpu_model.o): in function `init_have_lse_atomics': #10 4.671 /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1051: undefined reference to `getauxval' #10 4.671 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib(45c91108d938afe8-cpu_model.o): in function `init_cpu_features': #10 4.671 /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1344: undefined reference to `getauxval' #10 4.671 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1345: undefined reference to `getauxval' #10 4.671 collect2: error: ld returned 1 exit status #10 4.671 #10 4.671 = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified #10 4.671 = note: use the `-l` flag to specify native libraries to link #10 4.671 = 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) #10 4.671 #10 4.694 Compiling num-traits v0.2.16 #10 4.715 error: linking with `cc` failed: exit status: 1 #10 4.715 | #10 4.715 = note: LC_ALL="C" PATH="/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/bin:/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/bin/self-contained:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crt1.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crti.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtbegin.o" "/tmp/rustcgbqLBh/symbols.o" "/usr/src/rust-http-server/target/release/build/proc-macro2-9a7b2995e5f20514/build_script_build-9a7b2995e5f20514.build_script_build.db061e5c5edf8068-cgu.0.rcgu.o" "/usr/src/rust-http-server/target/release/build/proc-macro2-9a7b2995e5f20514/build_script_build-9a7b2995e5f20514.build_script_build.db061e5c5edf8068-cgu.1.rcgu.o" "/usr/src/rust-http-server/target/release/build/proc-macro2-9a7b2995e5f20514/build_script_build-9a7b2995e5f20514.build_script_build.db061e5c5edf8068-cgu.2.rcgu.o" "/usr/src/rust-http-server/target/release/build/proc-macro2-9a7b2995e5f20514/build_script_build-9a7b2995e5f20514.2qxka1xlp0lg2rd4.rcgu.o" "-Wl,--as-needed" "-L" "/usr/src/rust-http-server/target/release/deps" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libstd-2ad8dcade37f4a90.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libpanic_unwind-979572faa2a17916.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libobject-93508898bcfc3702.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libmemchr-ab66446b81463d74.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libaddr2line-6083b516af549008.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libgimli-2389476f2626efb6.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_demangle-97faebafc321e964.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libstd_detect-e8ac812a6dab364e.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libhashbrown-dde0af57b0f2901e.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_std_workspace_alloc-8df52c7f042aeffd.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libminiz_oxide-8789ebd13f9e0a12.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libadler-cb238a2d7c01ef75.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libunwind-0ebf8faa9e79b9cc.rlib" "-lunwind" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcfg_if-73698e09b48b4cfd.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/liblibc-3f7bca623c41b752.rlib" "-lc" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/liballoc-11ab57860e7dd426.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_std_workspace_core-7ffd2525fa6ce213.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcore-e91e1df47a197349.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained" "-o" "/usr/src/rust-http-server/target/release/build/proc-macro2-9a7b2995e5f20514/build_script_build-9a7b2995e5f20514" "-Wl,--gc-sections" "-static" "-no-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtend.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtn.o" #10 4.715 = note: /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib(45c91108d938afe8-cpu_model.o): in function `init_have_lse_atomics': #10 4.715 /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1051: undefined reference to `getauxval' #10 4.715 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib(45c91108d938afe8-cpu_model.o): in function `init_cpu_features': #10 4.715 /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1344: undefined reference to `getauxval' #10 4.715 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1345: undefined reference to `getauxval' #10 4.715 collect2: error: ld returned 1 exit status #10 4.715 #10 4.715 = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified #10 4.715 = note: use the `-l` flag to specify native libraries to link #10 4.715 = 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) #10 4.715 #10 4.725 Compiling lock_api v0.4.10 #10 4.735 error: linking with `cc` failed: exit status: 1 #10 4.735 | #10 4.735 = note: LC_ALL="C" PATH="/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/bin:/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/bin/self-contained:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crt1.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crti.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtbegin.o" "/tmp/rustcfIlnaj/symbols.o" "/usr/src/rust-http-server/target/release/build/libc-e509c3cb51f5a25f/build_script_build-e509c3cb51f5a25f.build_script_build.2ac83da0ee50bdbe-cgu.0.rcgu.o" "/usr/src/rust-http-server/target/release/build/libc-e509c3cb51f5a25f/build_script_build-e509c3cb51f5a25f.build_script_build.2ac83da0ee50bdbe-cgu.1.rcgu.o" "/usr/src/rust-http-server/target/release/build/libc-e509c3cb51f5a25f/build_script_build-e509c3cb51f5a25f.build_script_build.2ac83da0ee50bdbe-cgu.2.rcgu.o" "/usr/src/rust-http-server/target/release/build/libc-e509c3cb51f5a25f/build_script_build-e509c3cb51f5a25f.phink4iy1cftxvz.rcgu.o" "-Wl,--as-needed" "-L" "/usr/src/rust-http-server/target/release/deps" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libstd-2ad8dcade37f4a90.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libpanic_unwind-979572faa2a17916.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libobject-93508898bcfc3702.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libmemchr-ab66446b81463d74.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libaddr2line-6083b516af549008.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libgimli-2389476f2626efb6.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_demangle-97faebafc321e964.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libstd_detect-e8ac812a6dab364e.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libhashbrown-dde0af57b0f2901e.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_std_workspace_alloc-8df52c7f042aeffd.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libminiz_oxide-8789ebd13f9e0a12.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libadler-cb238a2d7c01ef75.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libunwind-0ebf8faa9e79b9cc.rlib" "-lunwind" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcfg_if-73698e09b48b4cfd.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/liblibc-3f7bca623c41b752.rlib" "-lc" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/liballoc-11ab57860e7dd426.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_std_workspace_core-7ffd2525fa6ce213.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcore-e91e1df47a197349.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained" "-o" "/usr/src/rust-http-server/target/release/build/libc-e509c3cb51f5a25f/build_script_build-e509c3cb51f5a25f" "-Wl,--gc-sections" "-static" "-no-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtend.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtn.o" #10 4.735 = note: /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib(45c91108d938afe8-cpu_model.o): in function `init_have_lse_atomics': #10 4.735 /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1051: undefined reference to `getauxval' #10 4.735 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib(45c91108d938afe8-cpu_model.o): in function `init_cpu_features': #10 4.735 /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1344: undefined reference to `getauxval' #10 4.735 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1345: undefined reference to `getauxval' #10 4.735 collect2: error: ld returned 1 exit status #10 4.735 #10 4.735 = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified #10 4.735 = note: use the `-l` flag to specify native libraries to link #10 4.735 = 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) #10 4.735 #10 4.743 error: linking with `cc` failed: exit status: 1 #10 4.743 | #10 4.743 = note: LC_ALL="C" PATH="/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/bin:/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/bin/self-contained:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crt1.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crti.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtbegin.o" "/tmp/rustcgTBEML/symbols.o" "/usr/src/rust-http-server/target/release/build/parking_lot_core-a77054a26eccb060/build_script_build-a77054a26eccb060.build_script_build.2b6aa1ef5390d821-cgu.0.rcgu.o" "/usr/src/rust-http-server/target/release/build/parking_lot_core-a77054a26eccb060/build_script_build-a77054a26eccb060.4pncsgrs281y0yt5.rcgu.o" "-Wl,--as-needed" "-L" "/usr/src/rust-http-server/target/release/deps" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libstd-2ad8dcade37f4a90.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libpanic_unwind-979572faa2a17916.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libobject-93508898bcfc3702.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libmemchr-ab66446b81463d74.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libaddr2line-6083b516af549008.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libgimli-2389476f2626efb6.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_demangle-97faebafc321e964.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libstd_detect-e8ac812a6dab364e.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libhashbrown-dde0af57b0f2901e.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_std_workspace_alloc-8df52c7f042aeffd.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libminiz_oxide-8789ebd13f9e0a12.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libadler-cb238a2d7c01ef75.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libunwind-0ebf8faa9e79b9cc.rlib" "-lunwind" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcfg_if-73698e09b48b4cfd.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/liblibc-3f7bca623c41b752.rlib" "-lc" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/liballoc-11ab57860e7dd426.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_std_workspace_core-7ffd2525fa6ce213.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcore-e91e1df47a197349.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained" "-o" "/usr/src/rust-http-server/target/release/build/parking_lot_core-a77054a26eccb060/build_script_build-a77054a26eccb060" "-Wl,--gc-sections" "-static" "-no-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtend.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtn.o" #10 4.743 = note: /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib(45c91108d938afe8-cpu_model.o): in function `init_have_lse_atomics': #10 4.743 /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1051: undefined reference to `getauxval' #10 4.743 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib(45c91108d938afe8-cpu_model.o): in function `init_cpu_features': #10 4.743 /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1344: undefined reference to `getauxval' #10 4.743 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1345: undefined reference to `getauxval' #10 4.743 collect2: error: ld returned 1 exit status #10 4.743 #10 4.743 = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified #10 4.743 = note: use the `-l` flag to specify native libraries to link #10 4.743 = 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) #10 4.744 #10 4.750 error: could not compile `serde` (build script) due to previous error #10 4.750 warning: build failed, waiting for other jobs to finish... #10 4.782 error: could not compile `proc-macro2` (build script) due to previous error #10 4.804 error: could not compile `libc` (build script) due to previous error #10 4.811 error: could not compile `parking_lot_core` (build script) due to previous error #10 4.882 error: linking with `cc` failed: exit status: 1 #10 4.882 | #10 4.882 = note: LC_ALL="C" PATH="/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/bin:/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/bin/self-contained:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crt1.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crti.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtbegin.o" "/tmp/rustcpYKss5/symbols.o" "/usr/src/rust-http-server/target/release/build/num-traits-5f922f1096306ca5/build_script_build-5f922f1096306ca5.build_script_build.364c01379529eb29-cgu.0.rcgu.o" "/usr/src/rust-http-server/target/release/build/num-traits-5f922f1096306ca5/build_script_build-5f922f1096306ca5.4wj51kn3kte7yfau.rcgu.o" "-Wl,--as-needed" "-L" "/usr/src/rust-http-server/target/release/deps" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/usr/src/rust-http-server/target/release/deps/libautocfg-89e2ccd8a0ff7d92.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libstd-2ad8dcade37f4a90.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libpanic_unwind-979572faa2a17916.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libobject-93508898bcfc3702.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libmemchr-ab66446b81463d74.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libaddr2line-6083b516af549008.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libgimli-2389476f2626efb6.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_demangle-97faebafc321e964.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libstd_detect-e8ac812a6dab364e.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libhashbrown-dde0af57b0f2901e.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_std_workspace_alloc-8df52c7f042aeffd.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libminiz_oxide-8789ebd13f9e0a12.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libadler-cb238a2d7c01ef75.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libunwind-0ebf8faa9e79b9cc.rlib" "-lunwind" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcfg_if-73698e09b48b4cfd.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/liblibc-3f7bca623c41b752.rlib" "-lc" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/liballoc-11ab57860e7dd426.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_std_workspace_core-7ffd2525fa6ce213.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcore-e91e1df47a197349.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained" "-o" "/usr/src/rust-http-server/target/release/build/num-traits-5f922f1096306ca5/build_script_build-5f922f1096306ca5" "-Wl,--gc-sections" "-static" "-no-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtend.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtn.o" #10 4.882 = note: /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib(45c91108d938afe8-cpu_model.o): in function `init_have_lse_atomics': #10 4.882 /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1051: undefined reference to `getauxval' #10 4.882 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib(45c91108d938afe8-cpu_model.o): in function `init_cpu_features': #10 4.882 /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1344: undefined reference to `getauxval' #10 4.882 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1345: undefined reference to `getauxval' #10 4.882 collect2: error: ld returned 1 exit status #10 4.882 #10 4.882 = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified #10 4.882 = note: use the `-l` flag to specify native libraries to link #10 4.882 = 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) #10 4.882 #10 4.908 error: linking with `cc` failed: exit status: 1 #10 4.908 | #10 4.908 = note: LC_ALL="C" PATH="/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/bin:/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/bin/self-contained:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crt1.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crti.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtbegin.o" "/tmp/rustcMK8VZL/symbols.o" "/usr/src/rust-http-server/target/release/build/lock_api-ceea4bbc91036c51/build_script_build-ceea4bbc91036c51.build_script_build.cb4c97bbd4563d87-cgu.0.rcgu.o" "/usr/src/rust-http-server/target/release/build/lock_api-ceea4bbc91036c51/build_script_build-ceea4bbc91036c51.2dmowcka7aukh2h0.rcgu.o" "-Wl,--as-needed" "-L" "/usr/src/rust-http-server/target/release/deps" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/usr/src/rust-http-server/target/release/deps/libautocfg-89e2ccd8a0ff7d92.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libstd-2ad8dcade37f4a90.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libpanic_unwind-979572faa2a17916.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libobject-93508898bcfc3702.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libmemchr-ab66446b81463d74.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libaddr2line-6083b516af549008.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libgimli-2389476f2626efb6.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_demangle-97faebafc321e964.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libstd_detect-e8ac812a6dab364e.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libhashbrown-dde0af57b0f2901e.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_std_workspace_alloc-8df52c7f042aeffd.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libminiz_oxide-8789ebd13f9e0a12.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libadler-cb238a2d7c01ef75.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libunwind-0ebf8faa9e79b9cc.rlib" "-lunwind" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcfg_if-73698e09b48b4cfd.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/liblibc-3f7bca623c41b752.rlib" "-lc" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/liballoc-11ab57860e7dd426.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/librustc_std_workspace_core-7ffd2525fa6ce213.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcore-e91e1df47a197349.rlib" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib" "-L" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained" "-o" "/usr/src/rust-http-server/target/release/build/lock_api-ceea4bbc91036c51/build_script_build-ceea4bbc91036c51" "-Wl,--gc-sections" "-static" "-no-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtend.o" "/usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/self-contained/crtn.o" #10 4.908 = note: /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib(45c91108d938afe8-cpu_model.o): in function `init_have_lse_atomics': #10 4.908 /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1051: undefined reference to `getauxval' #10 4.908 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /usr/local/rustup/toolchains/1.72.0-aarch64-unknown-linux-musl/lib/rustlib/aarch64-unknown-linux-musl/lib/libcompiler_builtins-5b084770a5817f4e.rlib(45c91108d938afe8-cpu_model.o): in function `init_cpu_features': #10 4.908 /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1344: undefined reference to `getauxval' #10 4.908 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1345: undefined reference to `getauxval' #10 4.908 collect2: error: ld returned 1 exit status #10 4.908 #10 4.908 = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified #10 4.908 = note: use the `-l` flag to specify native libraries to link #10 4.908 = 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) #10 4.909 #10 4.946 error: could not compile `num-traits` (build script) due to previous error #10 4.972 error: could not compile `lock_api` (build script) due to previous error #10 ERROR: process "/bin/sh -c cargo build --release --target=aarch64-unknown-linux-musl --bin rust-http-server" did not complete successfully: exit code: 101 ------ > [builder 6/6] RUN cargo build --release --target=aarch64-unknown-linux-musl --bin rust-http-server: 4.908 /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1344: undefined reference to `getauxval' 4.908 /usr/lib/gcc/aarch64-alpine-linux-musl/12.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: /cargo/registry/src/index.crates.io-6f17d22bba15001f/compiler_builtins-0.1.98/./lib/builtins/cpu_model.c:1345: undefined reference to `getauxval' 4.908 collect2: error: ld returned 1 exit status 4.908 4.908 = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified 4.908 = note: use the `-l` flag to specify native libraries to link 4.908 = 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) 4.909 4.946 error: could not compile `num-traits` (build script) due to previous error 4.972 error: could not compile `lock_api` (build script) due to previous error ------ Dockerfile5:14 -------------------- 12 | RUN rustup target add aarch64-unknown-linux-musl 13 | 14 | >>> RUN cargo build --release --target=aarch64-unknown-linux-musl --bin rust-http-server 15 | 16 | ################ -------------------- ERROR: failed to solve: process "/bin/sh -c cargo build --release --target=aarch64-unknown-linux-musl --bin rust-http-server" did not complete successfully: exit code: 101 make: *** [docker-musl] Error 1
Originally posted by @darkworon in https://github.com/tweag/rust-alpine-mimalloc/issues/1#issuecomment-1709719138
Does it work now?
yes, now it works fine. Thank you!
Now, simple hello world (with no crates) compiling fine. But I've tried with some crates I using and it still failing.
Cargo.toml
:cargo build
step:Originally posted by @darkworon in https://github.com/tweag/rust-alpine-mimalloc/issues/1#issuecomment-1709719138