Closed haze closed 2 years ago
During the build process for nix-index, the lzma-sys package fails to build.
nix-index
lzma-sys
error: failed to run custom build command for `lzma-sys v0.1.10` Caused by: process didn't exit successfully: `/private/tmp/nix-build-nix-index-0.1.2.drv-0/source/target/release/build/lzma-sys-a1ea0e6db488b539/build-script-build` (exit code: 101) --- stdout cargo:rerun-if-env-changed=LZMA_API_STATIC cargo:rustc-link-search=/private/tmp/nix-build-nix-index-0.1.2.drv-0/source/target/aarch64-apple-darwin/release/build/lzma-sys-109297ac9b613a54/out/lib cargo:root=/private/tmp/nix-build-nix-index-0.1.2.drv-0/source/target/aarch64-apple-darwin/release/build/lzma-sys-109297ac9b613a54/out cargo:include=/private/tmp/nix-build-nix-index-0.1.2.drv-0/source/target/aarch64-apple-darwin/release/build/lzma-sys-109297ac9b613a54/out/include cargo:rerun-if-changed=xz-5.2.3/configure cargo:rustc-link-lib=static=lzma OPT_LEVEL = Some("3") TARGET = Some("aarch64-apple-darwin") HOST = Some("aarch64-apple-darwin") CC_aarch64-apple-darwin = Some("/nix/store/xplakdjml94svlqkb982yq9x301l8q3x-clang-wrapper-11.1.0/bin/cc") CFLAGS_aarch64-apple-darwin = None CFLAGS_aarch64_apple_darwin = None HOST_CFLAGS = None CFLAGS = None DEBUG = Some("true") running: "sh" "/private/tmp/nix-build-nix-index-0.1.2.drv-0/source/target/aarch64-apple-darwin/release/build/lzma-sys-109297ac9b613a54/out/src/configure" "--prefix=/private/tmp/nix-build-nix-index-0.1.2.drv-0/source/target/aarch64-apple-darwin/release/build/lzma-sys-109297ac9b613a54/out" "--disable-doc" "--disable-lzma-links" "--disable-lzmainfo" "--disable-lzmadec" "--disable-xz" "--disable-xzdec" "--disable-scripts" "--disable-shared" "--disable-nls" "--disable-rpath" "--enable-threads=yes" XZ Utils 5.2.3 System type: checking build system type... --- stderr Invalid configuration `arm64-apple-darwin21.0.0': machine `arm64-apple' not recognized configure: error: /nix/store/ldfws5lqyz0irmb3bcvnjawyhsva38xq-bash-4.4-p23/bin/bash /private/tmp/nix-build-nix-index-0.1.2.drv-0/source/target/aarch64-apple-darwin/release/build/lzma-sys-109297ac9b613a54/out/src/build-aux/config.sub arm64-apple-darwin21.0.0 failed thread 'main' panicked at 'assertion failed: try_run(cmd)', /private/tmp/nix-build-nix-index-0.1.2.drv-0/nix-index-0.1.2-vendor.tar.gz/lzma-sys/build.rs:182:5 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... 1error: build failed
I'm not sure what the error is, because I am able to build xz2-rs just fine by itself
xz2-rs
NB: cargo install —path . failed. cargo build —release succeeded.
cargo install —path .
cargo build —release
@bennofs is it possible to merge #170 and this patch https://github.com/angustrau/nix-index/commit/12360cfe6318c55f8a87ee1149de5ce6d98e2a0d to fix darwin build?
During the build process for
nix-index
, thelzma-sys
package fails to build.I'm not sure what the error is, because I am able to build
xz2-rs
just fine by itselfNB:
cargo install —path .
failed.cargo build —release
succeeded.