ITADN

Cannot compile master on aarch64-darwin

#91Closedhraban 创建于 2025-09-26
H
hrabancommented
## Reproduce ``` nix build -L github:zimbatm/mdsh/afcc8ed4fd255628d05f9faecb31a706fceaf8f1 ``` ## Expected Successful build ## Observed ### aarch64-darwin native ``` @nix { "action": "setPhase", "phase": "unpackPhase" } Running phase: unpackPhase unpacking source archive /nix/store/4mahf5k832j4g0ab9jgj35c60fa6kmb5-source source root is source Executing cargoSetupPostUnpackHook Finished cargoSetupPostUnpackHook @nix { "action": "setPhase", "phase": "patchPhase" } Running phase: patchPhase Executing cargoSetupPostPatchHook Validating consistency between /private/tmp/nix-build-mdsh-0.9.2.drv-0/source/Cargo.lock and /private/tmp/nix-build-mdsh-0.9.2.drv-0/cargo-vendor-dir/Cargo.lock Finished cargoSetupPostPatchHook @nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" } Running phase: updateAutotoolsGnuConfigScriptsPhase @nix { "action": "setPhase", "phase": "configurePhase" } Running phase: configurePhase @nix { "action": "setPhase", "phase": "buildPhase" } Running phase: buildPhase Executing cargoBuildHook ++ env CC_AARCH64_APPLE_DARWIN=/nix/store/9g8qxz6r8x7g01hkzy739m5j6bawk4d5-clang-wrapper-16.0.6/bin/cc CXX_AARCH64_APPLE_DARWIN=/nix/store/9g8qxz6r8x7g01hkzy739m5j6bawk4d5-clang-wrapper-16.0.6/bin/c++ CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER=/nix/store/9g8qxz6r8x7g01hkzy739m5j6bawk4d5-clang-wrapper-16.0.6/bin/cc CC_AARCH64_APPLE_DARWIN=/nix/store/9g8qxz6r8x7g01hkzy739m5j6bawk4d5-clang-wrapper-16.0.6/bin/cc CXX_AARCH64_APPLE_DARWIN=/nix/store/9g8qxz6r8x7g01hkzy739m5j6bawk4d5-clang-wrapper-16.0.6/bin/c++ CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER=/nix/store/9g8qxz6r8x7g01hkzy739m5j6bawk4d5-clang-wrapper-16.0.6/bin/cc CARGO_BUILD_TARGET=aarch64-apple-darwin HOST_CC=/nix/store/9g8qxz6r8x7g01hkzy739m5j6bawk4d5-clang-wrapper-16.0.6/bin/cc HOST_CXX=/nix/store/9g8qxz6r8x7g01hkzy739m5j6bawk4d5-clang-wrapper-16.0.6/bin/c++ cargo build -j 12 --target aarch64-apple-darwin --offline --profile release warning: `/private/tmp/nix-build-mdsh-0.9.2.drv-0/.cargo/config` is deprecated in favor of `config.toml` note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml` warning: `/private/tmp/nix-build-mdsh-0.9.2.drv-0/.cargo/config` is deprecated in favor of `config.toml` note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml` Compiling proc-macro2 v1.0.95 Compiling unicode-ident v1.0.12 Compiling utf8parse v0.2.2 Compiling anstyle v1.0.10 Compiling is_terminal_polyfill v1.70.1 Compiling anstyle-query v1.1.2 Compiling colorchoice v1.0.3 Compiling clap_lex v0.7.4 Compiling strsim v0.11.1 Compiling memchr v2.7.4 Compiling anyhow v1.0.98 Compiling heck v0.5.0 Compiling anstyle-parse v0.2.6 Compiling shellexpand v3.1.1 Compiling anstream v0.6.18 Compiling nom v8.0.0 Compiling clap_builder v4.5.32 Compiling quote v1.0.40 Compiling syn v2.0.87 Compiling nom-language v0.1.0 Compiling clap_derive v4.5.32 Compiling clap v4.5.32 Compiling mdsh v0.9.2 (/private/tmp/nix-build-mdsh-0.9.2.drv-0/source) error[E0658]: use of unstable library feature 'byte_slice_trim_ascii' --> src/main.rs:74:41 | 74 | std::fs::write(outf, buffer.trim_ascii_end()) | ^^^^^^^^^^^^^^ | = note: see issue #94035 <https://github.com/rust-lang/rust/issues/94035> for more information For more information about this error, try `rustc --explain E0658`. error: could not compile `mdsh` (bin "mdsh") due to 1 previous error warning: build failed, waiting for other jobs to finish... ``` ### aarch64-linux builder on darwin ``` @nix {"action":"setPhase","phase":"unpackPhase"} Running phase: unpackPhase unpacking source archive /nix/store/4mahf5k832j4g0ab9jgj35c60fa6kmb5-source source root is source Executing cargoSetupPostUnpackHook Finished cargoSetupPostUnpackHook @nix {"action":"setPhase","phase":"patchPhase"} Running phase: patchPhase Executing cargoSetupPostPatchHook Validating consistency between /build/source/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock Finished cargoSetupPostPatchHook @nix {"action":"setPhase","phase":"updateAutotoolsGnuConfigScriptsPhase"} Running phase: updateAutotoolsGnuConfigScriptsPhase @nix {"action":"setPhase","phase":"configurePhase"} Running phase: configurePhase @nix {"action":"setPhase","phase":"buildPhase"} Running phase: buildPhase Executing cargoBuildHook ++ env CC_AARCH64_UNKNOWN_LINUX_GNU=/nix/store/a11996pij79myrp43myn4zycdlzh9jsw-gcc-wrapper-13.3.0/bin/cc CXX_AARCH64_UNKNOWN_LINUX_GNU=/nix/store/a11996pij79myrp43myn4zycdlzh9jsw-gcc-wrapper-13.3.0/bin/c++ CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/a11996pij79myrp43myn4zycdlzh9jsw-gcc-wrapper-13.3.0/bin/cc CC_AARCH64_UNKNOWN_LINUX_GNU=/nix/store/a11996pij79myrp43myn4zycdlzh9jsw-gcc-wrapper-13.3.0/bin/cc CXX_AARCH64_UNKNOWN_LINUX_GNU=/nix/store/a11996pij79myrp43myn4zycdlzh9jsw-gcc-wrapper-13.3.0/bin/c++ CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/a11996pij79myrp43myn4zycdlzh9jsw-gcc-wrapper-13.3.0/bin/cc CARGO_BUILD_TARGET=aarch64-unknown-linux-gnu HOST_CC=/nix/store/a11996pij79myrp43myn4zycdlzh9jsw-gcc-wrapper-13.3.0/bin/cc HOST_CXX=/nix/store/a11996pij79myrp43myn4zycdlzh9jsw-gcc-wrapper-13.3.0/bin/c++ cargo build -j 1 --target aarch64-unknown-linux-gnu --offline --profile release warning: `/build/.cargo/config` is deprecated in favor of `config.toml` note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml` warning: `/build/.cargo/config` is deprecated in favor of `config.toml` note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml` Compiling proc-macro2 v1.0.95 Compiling unicode-ident v1.0.12 Compiling utf8parse v0.2.2 Compiling anstyle-parse v0.2.6 Compiling quote v1.0.40 Compiling anstyle v1.0.10 Compiling is_terminal_polyfill v1.70.1 Compiling anstyle-query v1.1.2 Compiling colorchoice v1.0.3 Compiling anstream v0.6.18 Compiling syn v2.0.87 Compiling anyhow v1.0.98 Compiling heck v0.5.0 Compiling memchr v2.7.4 Compiling clap_lex v0.7.4 Compiling strsim v0.11.1 Compiling clap_builder v4.5.32 Compiling nom v8.0.0 Compiling clap_derive v4.5.32 Compiling clap v4.5.32 Compiling nom-language v0.1.0 Compiling shellexpand v3.1.1 Compiling mdsh v0.9.2 (/build/source) error[E0658]: use of unstable library feature 'byte_slice_trim_ascii' --> src/main.rs:74:41 | 74 | std::fs::write(outf, buffer.trim_ascii_end()) | ^^^^^^^^^^^^^^ | = note: see issue #94035 <https://github.com/rust-lang/rust/issues/94035> for more information For more information about this error, try `rustc --explain E0658`. error: could not compile `mdsh` (bin "mdsh") due to 1 previous error ``` ## system ``` $ nix-info -m - system: `"aarch64-darwin"` - host os: `Darwin 24.6.0, macOS 15.6.1` - multi-user?: `yes` - sandbox: `no` - version: `nix-env (Nix) 2.28.3` - nixpkgs: `/nix/store/x06djk7jw02qb6y8fxd0mjgaksw2kd9n-source` ``` Let me know if there are any other details which can help
关闭于 2025-12-20 1 条评论