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

Build failure: Wezterm (x86-64 darwin) #239384

Closed
augustebaum opened this issue Jun 23, 2023 · 55 comments
Closed

Build failure: Wezterm (x86-64 darwin) #239384

augustebaum opened this issue Jun 23, 2023 · 55 comments
Labels
0.kind: build failure A package fails to build 6.topic: darwin Running or building packages on Darwin

Comments

@augustebaum
Copy link
Contributor

Build log

Builds have been failing for the past 5 days:
https://hydra.nixos.org/job/nixpkgs/trunk/wezterm.x86_64-darwin/all

Notify maintainers

@SuperSandro2000 @mimame

Metadata

- system: `"x86_64-darwin"`
- host os: `Darwin 21.6.0, macOS 10.16`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.13.3`
- channels(auguste): `"darwin, home-manager"`
- nixpkgs: `/nix/store/q336zlh9g3f5k0vabn6xzwhxasnhk7hv-source`
@augustebaum augustebaum added the 0.kind: build failure A package fails to build label Jun 23, 2023
@ncfavier
Copy link
Member

Looks like the same error as in #231291

@ncfavier
Copy link
Member

cc @NixOS/darwin-maintainers

@uri-canva
Copy link
Contributor

My first thought is that it might be using an older sdk on x86_64-darwin compared to aarch64-darwin, but first I'm going to let a bisect run overnight on my x86_64-darwin laptop, it's quite old so it's going to take a while.

@toonn
Copy link
Contributor

toonn commented Jun 25, 2023

This does look like an SDK issue. The annotation states it's only available from 10.16, which is 11.

Try calling the package with darwin.apple_sdk_11_0.callPackage in top-level.

@ncfavier
Copy link
Member

That's already the case:

  wezterm = darwin.apple_sdk_11_0.callPackage ../applications/terminal-emulators/wezterm {
    inherit (darwin.apple_sdk_11_0.frameworks) Cocoa CoreGraphics Foundation UserNotifications System;
  };

@emilazy
Copy link
Member

emilazy commented Jun 25, 2023

Apparently this might be a toolchain bug?

Some stuff I dug up:

I'm not sure if we're running into the exact same thing or what that thing even is though. It looks like __darwin_check_fd_set_overflow is only available on macOS 11 and above and should be in libSystem. We could try -Wl,-U,___darwin_check_fd_set_overflow at the risk of breaking things. Or maybe we need to set -mmacosx-version-min/MACOSX_DEPLOYMENT_TARGET (but I guess darwin.apple_sdk_11_0.callPackage might already handle that)?

@emilazy
Copy link
Member

emilazy commented Jun 25, 2023

See mono/mono#19393 (comment) in particular.

@toonn
Copy link
Contributor

toonn commented Jun 25, 2023

Hmm, puzzling. Maybe similar to #233815? The 10.12 Libsystem being brought in somehow?

I don't think the deployment target should matter. If it's older than 11 the symbol should be linked weakly.

@toonn
Copy link
Contributor

toonn commented Jun 25, 2023

The mono issue seems unrelated. They are/were building with -no_weak_imports, which means the build fails with an older deployment target because a weak reference is necessary but not allowed.

@emilazy
Copy link
Member

emilazy commented Jun 25, 2023

Hmm, puzzling. Maybe similar to #233815? The 10.12 Libsystem being brought in somehow?

That does kind of seem like what #233136 may have caused?

Edit: But that was trying to fix the same error, so probably not the root cause.

@emilazy
Copy link
Member

emilazy commented Jun 25, 2023

FWIW, it seems to build and run fine with this diff:

diff --git a/pkgs/applications/terminal-emulators/wezterm/default.nix b/pkgs/applications/terminal-emulators/wezterm/default.nix
index 9743197d832..36a8bbc8e05 100644
--- a/pkgs/applications/terminal-emulators/wezterm/default.nix
+++ b/pkgs/applications/terminal-emulators/wezterm/default.nix
@@ -88,7 +88,7 @@ rustPlatform.buildRustPackage rec {
 
   buildFeatures = [ "distro-defaults" ];
 
-  env.NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework System";
+  env.NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-U ___darwin_check_fd_set_overflow";
 
   postInstall = ''
     mkdir -p $out/nix-support

But of course that could just be masking an underlying problem. (Though the -framework System feels like that already.)

@toonn
Copy link
Contributor

toonn commented Jun 26, 2023

 -U symbol_name
                 Specified that it is ok for symbol_name to have no defini-
                 tion.  With -two_levelnamespace, the resulting symbol will be
                 marked dynamic_lookup which means dyld will search all loaded
                 images.

-two_levelnamespace is the default so unless -flat_namespace is passed somewhere this should result in the dynamic lookup mentioned and I think that would work on any x86_64-darwin running macOS 11 or newer.

I do believe this means SDK 10.12 is actually being used though so a real solution would require further digging.

@emilazy
Copy link
Member

emilazy commented Jun 26, 2023

Do we have any other Rust packages that are using a newer SDK and that we know are definitely linking with it properly? It could be that the hooks for that stuff don't work with Rust builds.

@ncfavier
Copy link
Member

$ (builtin cd pkgs/top-level; rg -l buildRust $(rg -Po '(?<=apple_sdk_11_0\.callPackage )[^ {]+' all-packages.nix) | sort)
../applications/blockchains/lighthouse/default.nix
../applications/misc/inlyne/default.nix
../applications/misc/pueue/default.nix
../applications/misc/stork/default.nix
../applications/terminal-emulators/wezterm/default.nix
../applications/version-management/delta/default.nix
../applications/version-management/git-trim/default.nix
../development/compilers/hvm/default.nix
../development/compilers/kind2/default.nix
../development/tools/rbspy/default.nix
../development/tools/rcodesign/default.nix
../development/tools/rust/cargo-watch/default.nix
../development/tools/wizer/default.nix
../servers/search/qdrant/default.nix
../shells/nushell/default.nix
../shells/nushell/plugins/query.nix
../tools/admin/procs/default.nix
../tools/backup/bupstash/default.nix
../tools/filesystems/httm/default.nix
../tools/misc/fclones/gui.nix
../tools/misc/killport/default.nix
../tools/misc/toastify/default.nix
../tools/security/age-plugin-yubikey/default.nix
../tools/system/bottom/default.nix

@uri-canva
Copy link
Contributor

5 steps left on my bisect, will probably take another day.

@uri-canva
Copy link
Contributor

Bisect finished, it's 1073ea7, PR: #235250.

@emilazy
Copy link
Member

emilazy commented Jun 27, 2023

Very strange. I didn't know we even used libxcrypt on Darwin.

@uri-canva
Copy link
Contributor

I think I did the bisect wrong, it doesn't make much sense, libxcrypt is just a dependency of python and perl, and while they're used for building wezterm, they're not linked into it as far as I can tell.

@uri-canva
Copy link
Contributor

Hmm, no, it does get a cache hit on 3e6aebf. Maybe it's a difference between hydra and my laptop? Will try to build it on my laptop.

@emilazy
Copy link
Member

emilazy commented Jun 28, 2023

My understanding is that git bisect can only be relied on to give fully accurate results when there is a commit such that all commits before that one pass the test and all commits after fail it. For stdenv/staging type changes that can have unrelated breakage in the middle and hide or expose problems created by other commits, that seems like an unsafe assumption. But I'd be very interested if it does somehow end up being libxcrypt; I looked at the nixpkgs PR and the upstream diff and can't fathom how it would have broken things :)

@uri-canva
Copy link
Contributor

Yeah at first I thought maybe the error was different, but no I got the same linking error.

@uri-canva
Copy link
Contributor

Maybe it's stdenv -> openssh -> openssl -> perl -> libxcrypt. I just noticed the linking error comes from liblibssh-rs-sys, the -sys means it links against the system library, as opposed to using the vendored sources right? But I would think the perl part of the dependency link is a nativeBuildInputs not a buildInputs.

@uri-canva
Copy link
Contributor

Ok the build on 3e6aebf succeeds (though it says the outputs differ).

@uri-canva
Copy link
Contributor

I tried reverting the commit on current master, dd05e2a, and it didn't fix the build... I don't know what's going on 😂 .

@eclairevoyant eclairevoyant added the 6.topic: darwin Running or building packages on Darwin label Dec 15, 2023
@cpick
Copy link

cpick commented Jan 23, 2024

I've reduced this down to a small repo that reproduces the error. It essentially boils down to:

flake.nix:

{
  inputs = {
    nixpkgs.url = "nixpkgs/4471857c0a4a8a0ffc7bdbeaf1b998746ce12a82";
  };

  outputs = { self, nixpkgs }:
    let
      pkgs = nixpkgs.legacyPackages.x86_64-darwin;
    in {

      packages.x86_64-darwin.default = pkgs.darwin.apple_sdk_11_0.callPackage (
        { rustPlatform, perl, System }:
        rustPlatform.buildRustPackage {
          name = "wezterm-build-error";
          src = ./.;
          cargoLock = { lockFile = ./Cargo.lock; };
          nativeBuildInputs = [ perl ];
          buildInputs = [ System ];
        }
      ) {
        inherit (pkgs.darwin.apple_sdk_11_0.frameworks) System;
      };

    };
}

Cargo.toml:

[package]
name = "wezterm-build-error"
version = "0.1.0"
edition = "2021"

[dependencies]
openssl = { version = "0.10", features=["vendored"] }
git2 = { version = "0.16", default-features = false, features = ["https"] }
  • The openssl crate's "vendored" feature seems to be needed to get its openssl-sys dependency to build.
  • The git2 crate's "https" features appears to be needed to trigger this issue's stransport.c build failure. My hunch is that this is because it causes git2's libgit2-sys dependency to itself also depend on the openssl-sys crate.

I based this off of the 4471857 nixpkgs commit somewhat arbitrarily as the current nixpkgs-unstable branch when I started looking into the issue.

I'm new to Nix so it's been a bit slow-going to get to this point. I wanted to share my progress in case this causes someone else to immediately understand the underlying issue.

@cpick
Copy link

cpick commented Jan 23, 2024

I believe the git2/libgit2-sys/openssl/openssl-sys crates are all red-herrings.

I reduced my test repo down so that it just uses the cc crate to attempt compile a compile a file that only includes CoreFoundation.h and that fails with the same error.

flake.nix:

{
  inputs = {
    nixpkgs.url = "nixpkgs/4471857c0a4a8a0ffc7bdbeaf1b998746ce12a82";
  };

  outputs = { self, nixpkgs }:
    let
      pkgs = nixpkgs.legacyPackages.x86_64-darwin;
    in {

      packages.x86_64-darwin.default = pkgs.darwin.apple_sdk_11_0.callPackage (
        { rustPlatform }:
        rustPlatform.buildRustPackage {
          name = "wezterm-build-error";
          src = ./.;
          cargoLock = { lockFile = ./Cargo.lock; };
        }
      ) {};

    };
}

Cargo.toml:

[package]
name = "wezterm-build-error"
version = "0.1.0"
build = "build.rs"
edition = "2021"

[build-dependencies]
cc = "1.0.43"

build.rs:

fn main() {
    cc::Build::new().file("inc.c").compile("inc");
}

inc.c:

#include <CoreFoundation/CoreFoundation.h>

Error from nix build:

@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/c5r7x4fhhcb1gzx7f013p91kamsdarfz-gas5kd03z1fkcn2i1fra4j9qvyk392rd-source
source root is gas5kd03z1fkcn2i1fra4j9qvyk392rd-source
Executing cargoSetupPostUnpackHook
Finished cargoSetupPostUnpackHook
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
Executing cargoSetupPostPatchHook
Validating consistency between /private/tmp/nix-build-wezterm-build-error.drv-1/gas5kd03z1fkcn2i1fra4j9qvyk392rd-source/Cargo.lock and /private/tmp/nix-build-wezterm-build-error.drv-1/cargo-vendor-dir/Cargo.lock
Finished cargoSetupPostPatchHook
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
Executing cargoBuildHook
++ env CC_X86_64_APPLE_DARWIN=/nix/store/4mlkc25c87bl6yr4dvdklx2dy5nfj1fv-clang-wrapper-16.0.6/bin/cc CXX_X86_64_APPLE_DARWIN=/nix/store/4mlkc25c87bl6yr4dvdklx2dy5nfj1fv-clang-wrapper-16.0.6/bin/c++ CARGO_TARGET_X86_64_APPLE_DARWIN_LINKER=/nix/store/4mlkc25c87bl6yr4dvdklx2dy5nfj1fv-clang-wrapper-16.0.6/bin/cc CC_X86_64_APPLE_DARWIN=/nix/store/4mlkc25c87bl6yr4dvdklx2dy5nfj1fv-clang-wrapper-16.0.6/bin/cc CXX_X86_64_APPLE_DARWIN=/nix/store/4mlkc25c87bl6yr4dvdklx2dy5nfj1fv-clang-wrapper-16.0.6/bin/c++ CARGO_TARGET_X86_64_APPLE_DARWIN_LINKER=/nix/store/4mlkc25c87bl6yr4dvdklx2dy5nfj1fv-clang-wrapper-16.0.6/bin/cc CARGO_BUILD_TARGET=x86_64-apple-darwin HOST_CC=/nix/store/4mlkc25c87bl6yr4dvdklx2dy5nfj1fv-clang-wrapper-16.0.6/bin/cc HOST_CXX=/nix/store/4mlkc25c87bl6yr4dvdklx2dy5nfj1fv-clang-wrapper-16.0.6/bin/c++ cargo build -j 8 --target x86_64-apple-darwin --frozen --profile release
   Compiling libc v0.2.152
   Compiling cc v1.0.83
   Compiling wezterm-build-error v0.1.0 (/private/tmp/nix-build-wezterm-build-error.drv-1/gas5kd03z1fkcn2i1fra4j9qvyk392rd-source)
The following warnings were emitted during compilation:

warning: [email protected]: In file included from inc.c:1:
warning: [email protected]: In file included from /nix/store/lg50ki620x8j6s5nhrsmn40a1y6fin98-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
warning: [email protected]: In file included from /nix/store/lg50ki620x8j6s5nhrsmn40a1y6fin98-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:17:
warning: [email protected]: In file included from /nix/store/lg50ki620x8j6s5nhrsmn40a1y6fin98-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:16:
warning: [email protected]: /nix/store/lg50ki620x8j6s5nhrsmn40a1y6fin98-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:1189:83: error: expected ','
warning: [email protected]:     kCFURLBookmarkCreationWithSecurityScope API_AVAILABLE(macos(10.7), macCatalyst(13.0))  API_UNAVAILABLE(ios, watchos, tvos) = ( 1UL << 11 ), // Mac OS X 10.7.3 and later, include information in the bookmark data which allows the same sandboxed process to access the resource after being relaunched
warning: [email protected]:                                                                                   ^
warning: [email protected]: /nix/store/lg50ki620x8j6s5nhrsmn40a1y6fin98-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:1190:98: error: expected ','
warning: [email protected]:     kCFURLBookmarkCreationSecurityScopeAllowOnlyReadAccess API_AVAILABLE(macos(10.7), macCatalyst(13.0)) API_UNAVAILABLE(ios, watchos, tvos) = ( 1UL << 12 ), // Mac OS X 10.7.3 and later, if used with kCFURLBookmarkCreationWithSecurityScope, at resolution time only read access to the resource will be granted
warning: [email protected]:                                                                                                  ^
warning: [email protected]: /nix/store/lg50ki620x8j6s5nhrsmn40a1y6fin98-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:1200:85: error: expected ','
warning: [email protected]:     kCFURLBookmarkResolutionWithSecurityScope API_AVAILABLE(macos(10.7), macCatalyst(13.0)) API_UNAVAILABLE(ios, watchos, tvos) = ( 1UL << 10 ), // Mac OS X 10.7.3 and later, use the secure information included at creation time to provide the ability to access the resource in a sandboxed process.
warning: [email protected]:                                                                                     ^
warning: [email protected]: 3 errors generated.

error: failed to run custom build command for `wezterm-build-error v0.1.0 (/private/tmp/nix-build-wezterm-build-error.drv-1/gas5kd03z1fkcn2i1fra4j9qvyk392rd-source)`

Caused by:
  process didn't exit successfully: `/private/tmp/nix-build-wezterm-build-error.drv-1/gas5kd03z1fkcn2i1fra4j9qvyk392rd-source/target/release/build/wezterm-build-error-2b0a4d25197fb65f/build-script-build` (exit status: 1)
  --- stdout
  TARGET = Some("x86_64-apple-darwin")
  OPT_LEVEL = Some("3")
  HOST = Some("x86_64-apple-darwin")
  cargo:rerun-if-env-changed=CC_x86_64-apple-darwin
  CC_x86_64-apple-darwin = None
  cargo:rerun-if-env-changed=CC_x86_64_apple_darwin
  CC_x86_64_apple_darwin = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = Some("/nix/store/4mlkc25c87bl6yr4dvdklx2dy5nfj1fv-clang-wrapper-16.0.6/bin/cc")
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3,sse4.1,ssse3")
  cargo:rerun-if-env-changed=CFLAGS_x86_64-apple-darwin
  CFLAGS_x86_64-apple-darwin = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_apple_darwin
  CFLAGS_x86_64_apple_darwin = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  running: env -u IPHONEOS_DEPLOYMENT_TARGET "/nix/store/4mlkc25c87bl6yr4dvdklx2dy5nfj1fv-clang-wrapper-16.0.6/bin/cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-arch" "x86_64" "-Wall" "-Wextra" "-o" "/private/tmp/nix-build-wezterm-build-error.drv-1/gas5kd03z1fkcn2i1fra4j9qvyk392rd-source/target/x86_64-apple-darwin/release/build/wezterm-build-error-8a956244ef1895a7/out/inc.o" "-c" "inc.c"
  cargo:warning=In file included from inc.c:1:

  cargo:warning=In file included from /nix/store/lg50ki620x8j6s5nhrsmn40a1y6fin98-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:

  cargo:warning=In file included from /nix/store/lg50ki620x8j6s5nhrsmn40a1y6fin98-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:17:

  cargo:warning=In file included from /nix/store/lg50ki620x8j6s5nhrsmn40a1y6fin98-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:16:

  cargo:warning=/nix/store/lg50ki620x8j6s5nhrsmn40a1y6fin98-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:1189:83: error: expected ','

  cargo:warning=    kCFURLBookmarkCreationWithSecurityScope API_AVAILABLE(macos(10.7), macCatalyst(13.0))  API_UNAVAILABLE(ios, watchos, tvos) = ( 1UL << 11 ), // Mac OS X 10.7.3 and later, include information in the bookmark data which allows the same sandboxed process to access the resource after being relaunched

  cargo:warning=                                                                                  ^

  cargo:warning=/nix/store/lg50ki620x8j6s5nhrsmn40a1y6fin98-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:1190:98: error: expected ','

  cargo:warning=    kCFURLBookmarkCreationSecurityScopeAllowOnlyReadAccess API_AVAILABLE(macos(10.7), macCatalyst(13.0)) API_UNAVAILABLE(ios, watchos, tvos) = ( 1UL << 12 ), // Mac OS X 10.7.3 and later, if used with kCFURLBookmarkCreationWithSecurityScope, at resolution time only read access to the resource will be granted

  cargo:warning=                                                                                                 ^

  cargo:warning=/nix/store/lg50ki620x8j6s5nhrsmn40a1y6fin98-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:1200:85: error: expected ','

  cargo:warning=    kCFURLBookmarkResolutionWithSecurityScope API_AVAILABLE(macos(10.7), macCatalyst(13.0)) API_UNAVAILABLE(ios, watchos, tvos) = ( 1UL << 10 ), // Mac OS X 10.7.3 and later, use the secure information included at creation time to provide the ability to access the resource in a sandboxed process.

  cargo:warning=                                                                                    ^

  cargo:warning=3 errors generated.

  exit status: 1

  --- stderr


  error occurred: Command env -u IPHONEOS_DEPLOYMENT_TARGET "/nix/store/4mlkc25c87bl6yr4dvdklx2dy5nfj1fv-clang-wrapper-16.0.6/bin/cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-arch" "x86_64" "-Wall" "-Wextra" "-o" "/private/tmp/nix-build-wezterm-build-error.drv-1/gas5kd03z1fkcn2i1fra4j9qvyk392rd-source/target/x86_64-apple-darwin/release/build/wezterm-build-error-8a956244ef1895a7/out/inc.o" "-c" "inc.c" with args "cc" did not execute successfully (status code exit status: 1).

This is leading me to believe that the cc crate is not working properly with apple_sdk_11_0.

@cpick
Copy link

cpick commented Jan 24, 2024

Similar issues:

I still got some other compile errors with this patch, any idea what's going wrong? Maybe some c compiler version need to be bumped?

That usually happens when you have a 10.12 stdenv trying to build something that is using frameworks from the 11.0 SDK.

I was able to get cronosd to build, but it was hacky. I didn’t have much luck with the provided nix stuff and didn’t want to sink a lot of time into it, so I installed go_1_18, darwin.apple_sdk_11_0.stdenv.cc, and darwin.apple_sdk_11_0.MacOSX-SDK from my branch into my profile and used that. I had to set NIX_CFLAGS_COMPILE_x86_64_apple_darwin and NIX_LDFLAGS_x86_64_apple_darwin to point to the SDK in my profile, but I was able to build by running make. Like I said, hacky. Hopefully that’s close-ish to what you were trying to do.

The issue is portaudio is propagating frameworks from the 10.12 SDK. Mixing frameworks from different SDK versions doesn’t work. It results in errors because the headers aren’t compatible. You need to override portaudio to use the 11.0 SDK.

let
  # portaudio propagates Darwin frameworks. Rebuild it using the 11.0 stdenv from Qt and the 11.0 SDK frameworks.
  portaudio' = if !stdenv.isDarwin
    then portaudio
    else portaudio.override {
      inherit stdenv;
      inherit (darwin.apple_sdk_11_0.frameworks) AudioUnit AudioToolbox CoreAudio CoreServices Carbon;
    };
in

And this followup:

... I thought Qt would provide an 11.0 SDK one, but it’s apparently still the default 10.12 SDK stdenv. Using the 11.0 SDK stdenv directly allows it to build for me. I apologize for not doing more testing (aside from confirming the expression for portaudio). Here’s a diff with the changes I made to get it to build for x86_64-darwin. ...

The above issues lead me to believe that there's something else in rustPlatform.buildRustPackage that's not setting stdenv correctly?

I suppose at the very least I'm learning more and more about Nix internals and macOS SDKs :/

@alienman5k
Copy link

Would it be a valid option to have another package for Wezterm to use the binary released instead of building using rust so we can pick one or the other (I know one can build it's own derivation for that, but just asking if this could be done at the Nix packages level?)

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/on-the-future-of-darwin-sdks-or-how-you-can-stop-worrying-and-put-the-sdk-in-build-inputs/50574/3

@reckenrode
Copy link
Contributor

reckenrode commented Aug 21, 2024

Per the above Discourse mention, I tried to build Wezterm on x86_64-darwin. Assuming I would need to determine which SDK I needed to use based on how the build failed, I built it with the default (10.12) SDK. It built. So yay? 🤷🏻‍♂️

Update: I just checked all-packages.nix. It’s using apple_sdk_11_0.callPackage, which is changed to add the 11.3 SDK for you to your build inputs. That’s why it built. It successfully used the 11.0 SDK.

The fonts are all messed up, but I don’t know whether I need to do something to make them available.

@reckenrode
Copy link
Contributor

reckenrode commented Oct 11, 2024

The Darwin refactor has been merged into staging. Wezterm should be fixed on staging.

@cpick
Copy link

cpick commented Oct 11, 2024

I've been following all the work you've been doing on this (all of macOS, really), thank you so much @reckenrode!

siriobalmelli added a commit to siriobalmelli/nixpkgs that referenced this issue Oct 14, 2024
Won't PR: upstream will be fixed by new SDK PR coming soon.

See NixOS#239384 (comment)

Signed-off-by: Sirio Balmelli <[email protected]>
@cpick
Copy link

cpick commented Oct 24, 2024

It looks like the most recent x86_64-darwin nixpkgs-unstable build failed with:

error: linking with `/nix/store/b0435735h2jvry8qmkm9psjvgfnd3614-clang-wrapper-16.0.6/bin/cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET -u XROS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/bin:/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/bin:/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/bin:/nix/store/a9srl123i7n8rnad7hdl4da1pkai0s6h-cargo-1.81.0/bin:/nix/store/i023p7in4v753iiiy6s5i8axcz3rdf4q-cargo-auditable-0.6.2/bin:/nix/store/zfqhfvh43v97d6msb2pvb186rhfb2ynn-ncurses-6.4.20221231-dev/bin:/nix/store/phrhq0i6gfz65brx2avzwj4y9nd317c3-ncurses-6.4.20221231/bin:/nix/store/fz33c0w5zjragrniihagc367gyq6x165-pkg-config-wrapper-0.29.2/bin:/nix/store/d30gb7nm3bnd58a5c3gwnmxywzbls69v-python3-3.12.6/bin:/nix/store/cgir4qba53ybi9vnpzjpghypk5mwf9hm-perl-5.40.0/bin:/nix/store/mnvgs1q4py90cmgf24ql2q1amvky1fhs-auditable-cargo-1.81.0/bin:/nix/store/a9srl123i7n8rnad7hdl4da1pkai0s6h-cargo-1.81.0/bin:/nix/store/cc635zk0qwbjc4jpmx8v63hfjfvwd67s-rustc-wrapper-1.81.0/bin:/nix/store/d7x0hgas344pmbbpgiswmr2ibisd3rw3-clang-wrapper-16.0.6/bin:/nix/store/90lp6xiadr91l3hi3y3xzkpqk8pj6p6s-clang-16.0.6/bin:/nix/store/k8pmb9qpypmip7ph667abbs6rllfd1f1-coreutils-9.5/bin:/nix/store/xj16wx0437fic8zngm7q1z0cznarxzqg-cctools-binutils-darwin-wrapper-1010.6/bin:/nix/store/f41z63w8pzm09q26xk1kvcadlk00wi09-cctools-binutils-darwin-1010.6/bin:/nix/store/k8pmb9qpypmip7ph667abbs6rllfd1f1-coreutils-9.5/bin:/nix/store/zkvwgk334yhdvw4rhmh9k07h4g7vavi6-findutils-4.10.0/bin:/nix/store/5y8m89gmmmkjkidf2mkyhxa7vhgdh40s-diffutils-3.10/bin:/nix/store/hj87q7liarm4d5cb8mw5p7f58qq69lhc-gnused-4.9/bin:/nix/store/knhqbfrkmkpd079yq6axms7ibsqh1nkz-gnugrep-3.11/bin:/nix/store/9ynaam3mm7733qsdqkndgpq1314ah3z2-gawk-5.2.2/bin:/nix/store/0fmsasvm56c9gwz0q2xcgxiq1irkiwjp-gnutar-1.35/bin:/nix/store/6scwbp4sla2dsr6fbiksi8mrcsvgbpm4-gzip-1.13/bin:/nix/store/c9sznb8hcfjrml7zv6n3j7vag8z74jc8-bzip2-1.0.8-bin/bin:/nix/store/1f90m5f11kfyyg198qblv1x7blycfvfd-gnumake-4.4.1/bin:/nix/store/m32rsgpxqpnc674ayk60iarj68s5q9lp-bash-5.2p32/bin:/nix/store/6gddygcpp0y70vjk24v1qr4mjgc841yk-patch-2.7.6/bin:/nix/store/qxyrdx7ai299dg3r09zabdrw631dmhlg-xz-5.6.2-bin/bin:/nix/store/z1hy6njxcc1nzhbbl44knwqk3wlmvy96-file-5.45/bin" VSLANG="1033" ZERO_AR_DATE="1" "/nix/store/b0435735h2jvry8qmkm9psjvgfnd3614-clang-wrapper-16.0.6/bin/cc" "-arch" "x86_64" "-m64" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/rustc7liwkG/symbols.o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454.ssh.c3bb9f36dea37968-cgu.00.rcgu.o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454.ssh.c3bb9f36dea37968-cgu.01.rcgu.o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454.ssh.c3bb9f36dea37968-cgu.02.rcgu.o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454.ssh.c3bb9f36dea37968-cgu.03.rcgu.o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454.ssh.c3bb9f36dea37968-cgu.04.rcgu.o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454.ssh.c3bb9f36dea37968-cgu.05.rcgu.o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454.ssh.c3bb9f36dea37968-cgu.06.rcgu.o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454.ssh.c3bb9f36dea37968-cgu.07.rcgu.o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454.ssh.c3bb9f36dea37968-cgu.08.rcgu.o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454.ssh.c3bb9f36dea37968-cgu.09.rcgu.o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454.ssh.c3bb9f36dea37968-cgu.10.rcgu.o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454.ssh.c3bb9f36dea37968-cgu.11.rcgu.o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454.ssh.c3bb9f36dea37968-cgu.12.rcgu.o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454.ssh.c3bb9f36dea37968-cgu.13.rcgu.o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454.ssh.c3bb9f36dea37968-cgu.14.rcgu.o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454.ssh.c3bb9f36dea37968-cgu.15.rcgu.o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454.6csp1tq5x10ibvgjuoelz7joz.rcgu.o" "-L" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps" "-L" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/release/deps" "-L" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/build/openssl-sys-19966e85bc4d7428/out/openssl-build/install/lib" "-L" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/build/openssl-sys-19966e85bc4d7428/out/openssl-build/install/lib" "-L" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/build/libssh-rs-sys-daf675324926ccd5/out" "-L" "/nix/store/rwgab1wyik753vgna21k67zpbnlirk67-zlib-1.3.1/lib" "-L" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/build/libssh2-sys-779b3ea1762f7059/out/build" "-L" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libenv_logger-b1421d95b7dbe99c.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libenv_filter-b0d2aa412dbc1674.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libhumantime-d2aa06004f6bfa22.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libwezterm_ssh-1163dade34483813.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libgethostname-4e72ee4ed28fe40a.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libdirs_next-dddeeaad71e22c21.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libdirs_sys_next-b0cafddc2e27a8fe.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libfilenamegen-bf235891c06f7218.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libwalkdir-04bf3d3967eaa1d3.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libsame_file-91a0601e5a1b3146.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libbstr-87b9b658a1e39791.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libregex_automata-2ad463082e76afc9.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libssh2-942615424e87b7b1.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libparking_lot-2e04aaadddd76913.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libparking_lot_core-c6a1d7e6c47f1e60.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libinstant-48e34bd021c4e0d7.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/liblibssh2_sys-830c7dcf539ad62d.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/liblibz_sys-406ba921a778241f.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libsocket2-9e0c26eec6af857d.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libcamino-1ce6e4c3a96ed171.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/liblibssh_rs-42951a8beca436d5.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libopenssl_sys-1f1a58a639a69481.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/liblibssh_rs_sys-65ffb9115a652d4a.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libsmol-3e23462b77a347b8.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libasync_process-ac5dd9d4bc698c0b.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libasync_signal-33c2d122567533c2.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libasync_io-69ec24470d5bf1c0.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libpolling-6cb76828b2cc57e3.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libevent_listener-0f60ad123d46e845.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libasync_net-b42232135dc5c39a.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libasync_fs-c1976689d57175ea.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libasync_channel-013138a89a9e8c40.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libblocking-7f0204aa2337ef6b.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libtracing-91489cf39a8be66f.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libtracing_core-4b6957f53fd87087.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libpiper-c1492429ef27b573.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libatomic_waker-fe19516f280abf01.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libasync_channel-7b0c4de1a53a86f1.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libasync_io-74dd62748eda829c.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/librustix-cad062c474656967.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libio_lifetimes-fe930b8ef8efc683.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libpolling-692b4ccc8a2b1a0c.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libasync_lock-e052da28ac6ae0a8.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libevent_listener-12b1ee2393db27c9.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libsocket2-5fb260d0ffaa5a9f.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libfutures_lite-c96de3e47004472a.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libfastrand-5754eb4d9358706b.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libfutures_io-2944d4adc198d1af.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libwaker_fn-03023ee271ec6251.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libasync_executor-782edbdf99eb7cff.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libslab-eed35c322f4fa45e.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libfutures_lite-ff29d5ce9cdc6bb9.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libconcurrent_queue-eb902ebea1c7282c.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libasync_task-1bf28a74f62946d3.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libasync_lock-69372473b222460f.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libevent_listener_strategy-057d9fa9281bb333.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libevent_listener-ecba175675e1ebcf.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libpin_project_lite-0569d4506e11d25a.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libparking-74d9dc2b42e614b1.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libtermwiz-c0399df35ee9de9e.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libhex-7550a1798a06539f.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libtermios-7d50c33a40604075.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libsignal_hook-3d73d6ade12c3aed.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libsignal_hook_registry-2faf81bc50c58b28.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libfixedbitset-85f665fd2b745677.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libmemmem-b1b189fe73c745ce.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libunicode_segmentation-470eab7021d78c1e.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libimage-a4239a3839bf8f2e.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libqoi-40efff5c11e9e98c.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libbytemuck-f4126e4e476af384.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libpng-2bd161016337c3f4.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libfdeflate-f6a6165d82cabfb7.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libexr-3df372c426833766.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libflume-a6d952f3809ae056.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libspin-ad31dff3774f367e.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/liblock_api-4c9300543690edcb.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libscopeguard-de12484a554f307a.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libpin_project-e7d0b1d6729adac7.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libfutures_sink-6116ba4a0e803691.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libfutures_core-4882fdcc81042643.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libnanorand-9f84394fee4d92e3.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libzune_inflate-e13bef5e3e08c88a.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libbit_field-3164c4ab9d78927b.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/liblebe-45fd7363a37d3a3a.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libhalf-5bee5ffe3dc1e5bb.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libsmallvec-a8a33503d3ab9e8d.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libgif-6e106e0335564400.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libcolor_quant-214907abb0539396.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libbyteorder-3bea009263fc9d61.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libtiff-7850f9e0fbc20b1a.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libflate2-3f59eb4f87acbdea.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libminiz_oxide-29ae3175b2fa2da5.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libsimd_adler32-f3bf372607189d6b.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libcrc32fast-2fdea6c8d7d521e1.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libweezl-0c2f087209bb88e7.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libjpeg_decoder-cb64431e11ea54ec.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/librayon-dce50b2fda7ea572.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/librayon_core-27a0b3db39981cf4.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libcrossbeam_deque-3bd562ad6e890559.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libcrossbeam_epoch-8e1000f2e4a00698.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libcrossbeam_utils-c479311ec52237fb.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libeither-f0165bc3d53760b2.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libwezterm_blob_leases-64fc6dab5854fd09.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libmac_address-a7c047c5aa6ab1d6.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libnix-4120df074950b2d1.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libtempfile-74841b7c2ae971d6.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libfastrand-b28908607b9882fc.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libuuid-595b0790a3cfc9d1.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libgetrandom-d0c0cb630b27d444.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libatomic-05c3b92a8bf55bb0.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libonce_cell-e86259d689b62968.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libsha2-228eb3d5a6ed71be.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libcpufeatures-e4cc67ba53d2a302.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libdigest-7d03ee74c14fd69e.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libblock_buffer-cfa6198b4c216627.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libcrypto_common-e56de2995a4768f9.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libgeneric_array-09e66642574a89ad.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libtypenum-9581eb1e1cf889d4.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libfancy_regex-0ecd0057db335927.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libregex-bdbf5ba613367921.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libregex_automata-4b04fd3a31a24cdd.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libaho_corasick-7e1ac310a644d571.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libregex_syntax-26a15b11e18b87a8.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libbit_set-bc22bc753215dacb.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libbit_vec-483c34ac185511b8.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libbase64-4ffecf11f3ae55c5.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libwezterm_input_types-d443db8bc8333aa8.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libeuclid-09a7946fb95f0c76.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libvtparse-fb3fdd4be685f2c5.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libnix-08e32856bb1e4a51.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libmemoffset-187d4033ac28edeb.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libwezterm_color_types-263c82d4575bf411.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libdeltae-8981d7f8760d2070.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/liblazy_static-ed1471a383136a61.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libcsscolorparser-36b25d7f1a865f3e.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/liblab-2447dcbaf5523bed.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libwezterm_bidi-35c302d6948be6c3.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libwezterm_dynamic-31b4461dda731fbf.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libordered_float-33cae540f4e0d917.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libnum_traits-38d8c8fa9d071d0c.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libfinl_unicode-ac0de8b4b76a5215.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libterminfo-f8d6ac7adf2c9ee4.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libdirs-01da86d54e78b2a0.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libdirs_sys-09fdd86efd8354c0.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libphf-402a3f0b9012a89f.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libphf_shared-99828bdab7b06e29.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libsiphasher-845ece0ab3952a2b.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libnom-a69bef935d7ec767.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libfnv-9d96f68d5c993a6e.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libsemver-b3180821fa83e4de.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libsemver_parser-758634bc2358cbdb.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libpest-7691c2b1edfdf721.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libucd_trie-27df8557906d784e.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libmemchr-21d646878147c106.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libportable_pty-90857e916d913c2c.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libshell_words-d4badcf159815a0f.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/liblog-47d2a646799a629c.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libserial-9cd1f693c8c5a013.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libserial_unix-48e342c70663553c.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libioctl_rs-b3245a5a93e06af3.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libtermios-d90504208af1a1f3.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libserial_core-1ef983a447f9c9aa.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libfiledescriptor-133df858e50267a9.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libthiserror-8f627a7b7cce841f.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libnix-bac26be5b469676e.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libmemoffset-cf7035623e42640a.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libpin_utils-0fbd724cdc5e9713.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libbitflags-0378fb8e3df33f03.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libcfg_if-295443682fa664c0.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libdowncast_rs-937f2c6481f9d11c.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libclap-019b5e849b4fbd64.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libclap_builder-683c43162a90785f.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libterminal_size-22b062d84fcb216c.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/librustix-f85f2fb7cb73666c.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/liberrno-258abce18fa58cc6.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libbitflags-0b642c85f3237f0f.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libserde-131464d2e4e620b0.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/liblibc-e860fc370c12f37f.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libstrsim-63298b00c0667fb4.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libanstream-f6e2bc45e518f007.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libanstyle_query-b49ba38a8e8460f0.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libcolorchoice-4b8a5dd3cb42b3e6.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libanstyle_parse-786ac53e436bd6fd.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libutf8parse-64497777f9ea9d1d.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libclap_lex-84084f137695480d.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libanstyle-6a872659cf5daeb4.rlib" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/deps/libanyhow-303251ec129f8758.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/libstd-b6f2a66ac3d21afd.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-99af62e49cf0be36.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/libobject-75bc5e0b53933eac.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/libmemchr-c0454d093e99dfa3.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-149ff79632e07d15.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/libgimli-db8f81316bbd3669.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-5531c52bbe137346.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-6d9b8d86dc0559b0.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-b9fefbc38425687c.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-8f82e403e4f30d11.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/libminiz_oxide-fff572d3c5ea718a.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/libadler-909621b8e00c1a1e.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/libunwind-5aafce6817068415.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-a913a9ab42eb5cf9.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/liblibc-894ad464632bc58a.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/liballoc-936cd79702d823c7.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-41f8dfaf63135682.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/libcore-6c124524f1b0f1d0.rlib" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-96ede4a7c156dd8d.rlib" "-lz" "-lssl" "-lcrypto" "-lz" "-lc" "-lc" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/nix/store/fpm7b4phrga7ia5xqp4lz52dv41sl5yg-rustc-1.81.0/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh-dc6fa084a71c3454" "-Wl,-dead_strip" "-nodefaultlibs" "/private/tmp/nix-build-wezterm-20240203-110809-5046fc22.drv-0/source/target/x86_64-apple-darwin/release/examples/ssh_audit_data.o" "-Wl,-u,_AUDITABLE_VERSION_INFO"
  = note: Undefined symbols for architecture x86_64:
            "___darwin_check_fd_set_overflow", referenced from:
                _ssh_poll in liblibssh_rs_sys-65ffb9115a652d4a.rlib(poll.o)
          ld: symbol(s) not found for architecture x86_64
          clang-16: error: linker command failed with exit code 1 (use -v to see invocation)

So I'm guessing there's still some wonkiness here on x86_64?
(It's also interesting that there was one build on 2024-08-31 that succeeded on x86_64.)

@cpick
Copy link

cpick commented Oct 24, 2024

I think I've just been confused by where the apple-sdk fixes have been released. It looks like they've been merged into the staging (and staging-next) branch which itself is still working towards master (and, subsequently, nixpkgs-unstable) here: #348827

@emilazy
Copy link
Member

emilazy commented Oct 24, 2024

Yeah, I’d expect about a week or so until it hits the channels.

@reckenrode
Copy link
Contributor

And to confirm: Wezterm build successfully on x86_64-darwin.

https://hydra.nixos.org/build/276152619

@SuperSandro2000
Copy link
Member

Does this mean we can now close this issue or are there some points remaining?

@reckenrode
Copy link
Contributor

It probably should wait until staging-next is merged into master, though that’s likely not far off from now.

@workadev
Copy link

workadev commented Oct 31, 2024

To chime in a bit I have no luck as well.

Sequoia on MBP 12,1 (x86_64-darwin), did a nix flake update and unable to build wezterm

error: could not compile wezterm-ssh (example "ssh") due to 1 previous error
> warning: build failed, waiting for other jobs to finish...
> warning: config (lib test) generated 2 warnings (2 duplicates)
> warning: config (lib) generated 2 warnings
For full logs, run 'nix log /nix/store/nq4fjpzs89i24syir96ysv4qq48k2sm2-wezterm-20240203-110809-5046fc22.drv'.
error: 1 dependencies of derivation '/nix/store/rddijl9gpirisc0x97i0vj5kcwjjhn8f-system-applications.drv' failed to build
error: 1 dependencies of derivation '/nix/store/n65vcb5r68hs61vgwddj1q24i01bg7nj-darwin-system-24.11.20241029.30c9efe+darwin5.b379bd4.drv' failed to build

However, wezterm is successfully installed using homebrew which I have inside nix.

  • system: "x86_64-darwin"
  • host os: Darwin 24.1.0, macOS 10.16
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 2.24.9
  • channels(root): "nixpkgs"
  • nixpkgs: `/nix/store/y8pbnccb8bc1p8fchx7zkb0874yblrg3-source``

@reckenrode
Copy link
Contributor

reckenrode commented Oct 31, 2024

#348827 has been merged, so #346043 is now merged into master. Closing since this is now fixed.

@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Oct 31, 2024

We usually don't wait until staging is merged to close issues it closes because who is going to keep track of that? I easily lose track and so the issues are closed when the PR is merged.

@emilazy
Copy link
Member

emilazy commented Oct 31, 2024

Then why do we have a “fixed on staging” label?

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/title-the-darwin-sdks-have-been-updated/55295/1

@workadev
Copy link

workadev commented Nov 4, 2024

Not sure do I need to open a new issue or can use this one to report. I do apologise in advance.

So I did a fresh install of the OS and nix darwin with flakes after I saw the post on discourse by @reckenrode

Flake file is straight out of the installation box

{
  description = "Worka Darwin system flake";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
    nix-darwin.url = "github:LnL7/nix-darwin";
    nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
  };

  outputs = inputs@{ self, nix-darwin, nixpkgs }:
  let
    configuration = { pkgs, ... }: {
      # List packages installed in system profile. To search by name, run:
      # $ nix-env -qaP | grep wget
      environment.systemPackages =
        [ 
	  pkgs.neovim
          pkgs.wezterm
        ];

      # Auto upgrade nix package and the daemon service.
      services.nix-daemon.enable = true;
      # nix.package = pkgs.nix;

      # Necessary for using flakes on this system.
      nix.settings.experimental-features = "nix-command flakes";

      # Enable alternative shell support in nix-darwin.
      # programs.fish.enable = true;

      # Set Git commit hash for darwin-version.
      system.configurationRevision = self.rev or self.dirtyRev or null;

      # Used for backwards compatibility, please read the changelog before changing.
      # $ darwin-rebuild changelog
      system.stateVersion = 5;

      # The platform the configuration will be used on.
      nixpkgs.hostPlatform = "x86_64-darwin";
    };
  in
  {
    # Build darwin flake using:
    # $ darwin-rebuild build --flake .#simple
    darwinConfigurations."worka" = nix-darwin.lib.darwinSystem {
      modules = [ configuration ];
    };

    # Expose the package set, including overlays, for convenience.
    darwinPackages = self.darwinConfigurations."worka".pkgs;
  };
}

Some errors:

  • error: builder for '/nix/store/nq4fjpzs89i24syir96ysv4qq48k2sm2-wezterm-20240203-110809-5046fc22.drv' failed with exit code 101;
  • error: linking with /nix/store/b0435735h2jvry8qmkm9psjvgfnd3614-clang-wrapper-16.0.6/bin/cc failed: exit status: 1

Bunch of text then at the end:

  • error: 1 dependencies of derivation '/nix/store/j8axdxsgrsx1wy6f7kjm1051iqd0rgi3-system-applications.drv' failed to build
  • error: 1 dependencies of derivation '/nix/store/0kwyrd3hscsjakskbvk17jiwhbwnc6xx-darwin-system-24.11.20241030.2d2a9dd+darwin5.4652874.drv' failed to build
 - system: `"x86_64-darwin"`
 - host os: `Darwin 24.1.0, macOS 10.16`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.24.9`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/store/0z5aw6jjbjq9sqcd03gfa7zkk25nzwgc-source`

Maybe wait for another day or two for the SDK to be available on unstable?

@emilazy
Copy link
Member

emilazy commented Nov 4, 2024

Yes, the rework has not yet hit nixpkgs-unstable; the builders have been somewhat overloaded the past few days.

@emilazy
Copy link
Member

emilazy commented Nov 4, 2024

Never mind it’s stuck because of Transmission apparently and nobody noticed. Will try to fix. (Edit: Uh never mind I think darwin-tested doesn’t actually block the channel or something.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

No branches or pull requests