Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix: aarch64-darwin build failure: "ld: framework not found IOKit" #53

Open
montchr opened this issue Sep 29, 2023 · 2 comments
Open

nix: aarch64-darwin build failure: "ld: framework not found IOKit" #53

montchr opened this issue Sep 29, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@montchr
Copy link

montchr commented Sep 29, 2023

Describe the bug

Build failure for nufmt package via the Nix flake on aarch64-darwin @ d2dba45

Full build log:

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/c2x8pipws7qjb6lq8gxjrcpy93ay8iz3-410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source
source root is 410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source
Executing cargoSetupPostUnpackHook
Finished cargoSetupPostUnpackHook
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
Executing cargoSetupPostPatchHook
Validating consistency between /private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/Cargo.lock and /private/tmp/nix-build-nufmt.drv-0/cargo-vendor-dir/Cargo.lock
Finished cargoSetupPostPatchHook
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Executing cargoBuildHook
++ env CC_aarch64-apple-darwin=/nix/store/lhqd2mwnd8wf1zh4jrd73hp8z1v5q9jw-clang-wrapper-11.1.0/bin/cc CXX_aarch64-apple-darwin=/nix/store/lhqd2mwnd8wf1zh4jrd73hp8z1v5q9jw-clang-wrapper-11.1.0/bin/c++ CC_aarch64-apple-darwin=/nix/store/lhqd2mwnd8wf1zh4jrd73hp8z1v5q9jw-clang-wrapper-11.1.0/bin/cc CXX_aarch64-apple-darwin=/nix/store/lhqd2mwnd8wf1zh4jrd73hp8z1v5q9jw-clang-wrapper-11.1.0/bin/c++ cargo build -j 8 --target aarch64-apple-darwin --frozen --release
   Compiling libc v0.2.144
   Compiling proc-macro2 v1.0.59
   Compiling unicode-ident v1.0.9
   Compiling quote v1.0.28
   Compiling version_check v0.9.4
   Compiling autocfg v1.1.0
   Compiling cfg-if v1.0.0
   Compiling memchr v2.5.0
   Compiling io-lifetimes v1.0.11
   Compiling rustix v0.37.19
   Compiling bitflags v1.3.2
   Compiling ahash v0.7.6
   Compiling once_cell v1.17.2
   Compiling serde v1.0.163
   Compiling crossbeam-utils v0.8.15
   Compiling utf8parse v0.2.1
   Compiling memoffset v0.8.0
   Compiling aho-corasick v1.0.1
   Compiling regex-syntax v0.7.2
   Compiling syn v2.0.18
   Compiling crossbeam-epoch v0.9.14
   Compiling errno v0.3.1
   Compiling getrandom v0.2.9
   Compiling hashbrown v0.12.3
   Compiling ahash v0.8.3
   Compiling num-traits v0.2.15
   Compiling scopeguard v1.1.0
   Compiling is-terminal v0.4.7
   Compiling unicode-width v0.1.10
   Compiling log v0.4.18
   Compiling core-foundation-sys v0.8.4
   Compiling vte_generate_state_changes v0.1.1
   Compiling regex v1.8.3
   Compiling rustversion v1.0.12
   Compiling syn v1.0.109
   Compiling thiserror v1.0.40
   Compiling erased-serde v0.3.25
   Compiling arrayvec v0.5.2
   Compiling heck v0.4.1
   Compiling itoa v1.0.6
   Compiling rayon-core v1.11.0
   Compiling vte v0.10.1
   Compiling crossbeam-deque v0.8.3
   Compiling iana-time-zone v0.1.56
   Compiling crossbeam-channel v0.5.8
   Compiling num_cpus v1.15.0
   Compiling time v0.1.45
   Compiling indexmap v1.9.3
   Compiling serde_json v1.0.96
   Compiling unicode-linebreak v0.1.4
   Compiling bit-vec v0.6.3
   Compiling is_ci v1.1.1
   Compiling arrayvec v0.7.2
   Compiling nu-ansi-term v0.47.0
   Compiling serde_derive v1.0.163
   Compiling ghost v0.1.9
   Compiling thiserror-impl v1.0.40
   Compiling smawk v0.3.1
   Compiling either v1.8.1
   Compiling lscolors v0.14.0
   Compiling inventory v0.3.6
   Compiling num-format v0.4.4
   Compiling textwrap v0.15.2
   Compiling typetag-impl v0.2.8
   Compiling miette-derive v5.9.0
   Compiling supports-color v2.0.0
   Compiling bit-set v0.5.3
   Compiling hashbrown v0.13.2
   Compiling strip-ansi-escapes v0.1.1
   Compiling supports-unicode v2.0.0
   Compiling supports-hyperlinks v2.1.0
   Compiling dirs-sys-next v0.1.2
   Compiling terminal_size v0.1.17
   Compiling unicase v2.6.0
   Compiling utf8-width v0.1.6
   Compiling owo-colors v3.5.0
   Compiling sys-locale v0.3.0
   Compiling ryu v1.0.13
   Compiling nu-utils v0.81.0
   Compiling dirs-next v2.0.0
   Compiling miette v5.9.0
   Compiling lru v0.10.0
   Compiling rayon v1.7.0
   Compiling fancy-regex v0.11.0
   Compiling anstyle-parse v0.2.0
   Compiling anstyle v1.0.0
   Compiling colorchoice v1.0.0
   Compiling anstyle-query v1.0.0
   Compiling strum v0.24.1
   Compiling anstream v0.3.2
   Compiling strum_macros v0.24.3
   Compiling chrono v0.4.26
   Compiling typetag v0.2.8
   Compiling chrono-humanize v0.2.2
   Compiling byte-unit v4.0.19
   Compiling sysinfo v0.29.2
   Compiling nu-protocol v0.81.0
   Compiling nu-path v0.81.0
   Compiling anyhow v1.0.71
   Compiling clap_lex v0.5.0
   Compiling nu-glob v0.81.0
   Compiling strsim v0.10.0
   Compiling clap_builder v4.3.0
   Compiling itertools v0.10.5
   Compiling clap_derive v4.3.0
   Compiling humantime v2.1.0
   Compiling termcolor v1.2.0
   Compiling bytesize v1.2.0
   Compiling env_logger v0.10.0
   Compiling clap v4.3.0
   Compiling nu-engine v0.81.0
   Compiling nu-parser v0.81.0
   Compiling nufmt v0.1.0 (/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source)
error: linking with `/nix/store/lhqd2mwnd8wf1zh4jrd73hp8z1v5q9jw-clang-wrapper-11.1.0/bin/cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/bin:/nix/store/kh6pw2jy75w834d62i0xhdp531pgcifg-cargo-1.72.0/bin:/nix/store/syha2bf86nwdfpwmmb1sd7m9bnswisv7-cargo-auditable-0.6.1/bin:/nix/store/nr260285ir9fcz5grsc3522k0y31khwm-auditable-cargo-1.72.0/bin:/nix/store/kh6pw2jy75w834d62i0xhdp531pgcifg-cargo-1.72.0/bin:/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/bin:/nix/store/lhqd2mwnd8wf1zh4jrd73hp8z1v5q9jw-clang-wrapper-11.1.0/bin:/nix/store/adq7mqvlblq6ck2a3qcimlx7lgaj71p6-clang-11.1.0/bin:/nix/store/kmvdv9dda4064k9bmmy8540xzaprc8ls-coreutils-9.3/bin:/nix/store/ng9j7s9nv2gy17m4n4078cdmnlg3rpga-cctools-binutils-darwin-wrapper-11.1.0-973.0.1/bin:/nix/store/4cyq37pwgzcnlzysqkpvrlaxp54ckvar-cctools-binutils-darwin-11.1.0-973.0.1/bin:/nix/store/kmvdv9dda4064k9bmmy8540xzaprc8ls-coreutils-9.3/bin:/nix/store/i8ghysdn40c2i6b9maylmn3d1d7x0ix3-findutils-4.9.0/bin:/nix/store/a18724qp7yrm4hr9swqp9asa4xd291q2-diffutils-3.10/bin:/nix/store/niqr00gsad0gfxx3skr1vhl7wb76idml-gnused-4.9/bin:/nix/store/cdmbbylvs8hr92b41a6v1ds874z2rmz2-gnugrep-3.11/bin:/nix/store/w0q2n50cjbgqqn18pg1miganjhny6ws4-gawk-5.2.2/bin:/nix/store/ppznc7jmszsjkgc9b3n98wr16bwgjckv-gnutar-1.35/bin:/nix/store/ia55kybwcyr5x26kkggghmi4l3bjifhb-gzip-1.13/bin:/nix/store/66wm4b5pms454m30gf2f7g9sqpryk49q-bzip2-1.0.8-bin/bin:/nix/store/86rrxgy5bc461gr44qdpr9bwc3dxggqd-gnumake-4.4.1/bin:/nix/store/hm8sxwvz7qbf5kzgprdlggj231l5g2s4-bash-5.2-p15/bin:/nix/store/p07ddiglrh562addqvmm8spkvwc9pcsa-patch-2.7.6/bin:/nix/store/zdlgkkgmnfn4xkfsbmpxqsmzfjb2jlwa-xz-5.4.4-bin/bin:/nix/store/f8fhzgd8j037nxq9c1f1cwqanxdczs5i-file-5.45/bin" VSLANG="1033" ZERO_AR_DATE="1" "/nix/store/lhqd2mwnd8wf1zh4jrd73hp8z1v5q9jw-clang-wrapper-11.1.0/bin/cc" "-arch" "arm64" "/private/tmp/nix-build-nufmt.drv-0/rustcxZtA6M/symbols.o" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/nufmt-bde431773c02a6fd.nufmt.8194e2ce5fe2916c-cgu.0.rcgu.o" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/nufmt-bde431773c02a6fd.nufmt.8194e2ce5fe2916c-cgu.1.rcgu.o" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/nufmt-bde431773c02a6fd.nufmt.8194e2ce5fe2916c-cgu.2.rcgu.o" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/nufmt-bde431773c02a6fd.nufmt.8194e2ce5fe2916c-cgu.3.rcgu.o" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/nufmt-bde431773c02a6fd.nufmt.8194e2ce5fe2916c-cgu.4.rcgu.o" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/nufmt-bde431773c02a6fd.nufmt.8194e2ce5fe2916c-cgu.5.rcgu.o" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/nufmt-bde431773c02a6fd.nufmt.8194e2ce5fe2916c-cgu.6.rcgu.o" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/nufmt-bde431773c02a6fd.nufmt.8194e2ce5fe2916c-cgu.7.rcgu.o" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/nufmt-bde431773c02a6fd.5dkzth77p5r9vjfp.rcgu.o" "-L" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps" "-L" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/release/deps" "-L" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libenv_logger-c8362391b422118e.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libtermcolor-c9eec022cec4960a.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libhumantime-fe7e0cc6e94f7e7b.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libnu_formatter-969d651deb3890e3.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libnu_parser-8e39fafe50df90ad.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libbytesize-98623ce0b9b81c90.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libnu_engine-8cd469cffeda6bb7.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libsysinfo-f66b1cf2f66a0c31.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/librayon-d2902b92a9dfd608.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/librayon_core-cef32f6e8e074644.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libnum_cpus-01b16c3f7c8bd261.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libcrossbeam_deque-80872cb52e3be8e7.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libcrossbeam_epoch-cd0920ec4adddcef.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libmemoffset-52a5794233fb5ef1.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libscopeguard-23b6e478b47898d6.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libcrossbeam_channel-c1358ca2fcb7eccd.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libcrossbeam_utils-b782f2cf79f34621.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libnu_glob-ab9e762c402d02ce.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libnu_path-9a73436e3bda95e3.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libdirs_next-87bd4cb501eb04a6.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libdirs_sys_next-73e0809882bad39e.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libitertools-ad8ef518b069f9ed.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libeither-2bf75f6c8a9c85a4.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libnu_protocol-3388ae24170f7f22.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libstrum-cb13d6acecff8aac.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libserde_json-bd567176f2a89cef.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libryu-19db2614551b2aab.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libtypetag-8a7bf6bac221b821.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libinventory-d7e8159cc9966d71.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/liberased_serde-59b3cb23d2726340.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libchrono_humanize-62a10c1a194fbc6d.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libbyte_unit-2a9dad4a0f5dba9d.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libutf8_width-2990ed6b775b8ac2.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libnu_utils-ee3c2b6e6759f195.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libsys_locale-f3b099a02662fbe4.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libstrip_ansi_escapes-e2d189930616cdf4.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libvte-56b59e0f2b329504.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libarrayvec-5c3fb313dd9d3b3e.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/liblscolors-56c2188c181c7f4a.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libnu_ansi_term-c42e2d4ec1c86aa1.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libnum_format-ec9fb69fd030679a.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libitoa-639cfc30ab25ac88.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libarrayvec-0ae2e0d5cdef01c4.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libindexmap-b73e286324d972fd.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libhashbrown-9aea9c03367df539.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libahash-49035099052de005.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libgetrandom-ff8c9c7e2475efa1.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/liblru-b2f01ae786ece4a8.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libhashbrown-f376a681d05e7f92.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libahash-746a007cdbe3443c.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libcfg_if-eeb50c2af7e84420.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libfancy_regex-a36a892dd2964ba4.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libregex-9a6f7f9809384a10.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libaho_corasick-441d374a17e29855.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libmemchr-76d7b689666cf7f2.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libregex_syntax-7e5c63ef1c9c83bb.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libbit_set-bd0cb01ed42b0d62.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libbit_vec-c85de6967df2ad6a.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libmiette-7d84f552897c8653.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libtextwrap-4d733776a59ed31e.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libsmawk-f3e170a2177e083a.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libunicode_linebreak-2cd84ef03d16b86a.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libterminal_size-eb3937f3384ecc05.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libsupports_hyperlinks-6935269785871523.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libsupports_color-257c4f7f2c479a6b.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libis_ci-3d3de0649956ff77.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libsupports_unicode-3357b0d96ce4f244.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libowo_colors-d9bd1fc6626f7728.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libthiserror-a7f0f8fbfe5d8876.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libchrono-3239f7ebf29f4bab.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libnum_traits-9df59452b5feb0fd.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libiana_time_zone-c3a4541c359df0db.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libcore_foundation_sys-e6b002aeb9fa6259.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libtime-351ec0aa84454667.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libserde-c22e972d1749012d.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/liblog-5ab11c3361eaf1db.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libclap-4b51da2706e62875.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libonce_cell-c4c9cba0d6939773.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libclap_builder-0531a668f7fd011b.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libunicode_width-0080df3551494362.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libstrsim-a221274df827ff32.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libanstream-8db78d328cd27f33.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libanstyle_query-3bea51867d67ef86.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libis_terminal-017f8af181b8a2b3.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/librustix-483f60be0a94a8bb.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/liberrno-a716b4054c141e58.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libio_lifetimes-9b4c479fa27bedad.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/liblibc-710b1feeff222afc.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libanstyle-bad2ea09566eff17.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libcolorchoice-58a6380d4defb1ef.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libanstyle_parse-daf0bec95a0cb1e8.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libutf8parse-25fcdbdcd63d04a4.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libunicase-967b9e9b656d148d.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libclap_lex-3009329e692eccaa.rlib" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/libbitflags-9647d0e4a4b24aa7.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/libstd-ea564c277a9775e7.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-c304a3a182c52105.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/libobject-0da73a32c086f64c.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-556ad8b38e2b6326.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-57143c50a93b3a9f.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/libgimli-adc2359764c1f3f9.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-2d8358e39b89a642.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-d0d09b18e41baa81.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-39f4403a59eee8ff.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-ecdabbd76e51f43d.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-aa17e9989b8bb446.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/libadler-f43598e54d974a89.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/libunwind-ea359c2001d296ca.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-d6ca6b2b6de59e80.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/liblibc-675c3823e7b08979.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/liballoc-b138f6381e7b42de.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-54a048c441247cd0.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/libcore-1dcac5a329c19f30.rlib" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-9a5dde18cc747729.rlib" "-framework" "IOKit" "-framework" "CoreFoundation" "-framework" "CoreFoundation" "-framework" "CoreFoundation" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/nix/store/6ffwx9gfngvj7gh2gibgqvcv9qbh9v9l-rustc-1.72.0/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/nufmt-bde431773c02a6fd" "-Wl,-dead_strip" "-nodefaultlibs" "/private/tmp/nix-build-nufmt.drv-0/410s7a56qxn8lzxb6pwnm3d0nlgc6qvn-source/target/aarch64-apple-darwin/release/deps/nufmt_audit_data.o" "-Wl,-u,_AUDITABLE_VERSION_INFO"
  = note: ld: framework not found IOKit
          clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: could not compile `nufmt` (bin "nufmt") due to previous error

Steps To Reproduce

Steps to reproduce the behavior:

  1. aarch64-darwin machine running macOS Ventura 13.6
  2. nix build github:nushell/nufmt#packages.aarch64-darwin.default

Expected behavior

Build should succeed.

Environment

(nix flake)

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 22.6.0, macOS 13.6`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.17.0`
 - channels(cdom): `"home-manager"`
 - channels(root): `""`
 - nixpkgs: `/nix/store/fannlmwcx2grglq9q30qjfgj5685rjp6-i6hq63805y784dml4j8pgkrz3lryxzld-source`

Notify maintainers

@montchr montchr added the bug Something isn't working label Sep 29, 2023
@montchr montchr changed the title nix: failed to build on aarch64-darwin nix: aarch64-darwin build failure: "ld: framework not found IOKit" Sep 29, 2023
@AucaCoyan
Copy link
Contributor

Hi Montchr! Thanks for submitting the issue.
I think @IogaMaster can give us a hand, he is way more experienced in nix than me
(I'm a peasant windows user 🤣)

Anything else, I'd be glad to help!

@IogaMaster
Copy link
Contributor

IogaMaster commented Sep 29, 2023

I am not on darwin, but this appears to be the issue,
pkgs.darwin.apple_sdk.frameworks.IOKit needs to be installed.

Please clone and add this to the flake:

buildInputs = [] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [pkgs.darwin.apple_sdk.frameworks.IOKit];

This seems to be valid on my NixOS machine, please test on MacOS. If it works I will make a pr to fix and close this issue.

Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants