Closed natsukium closed 7 months ago
https://github.com/NixOS/nixpkgs/pull/296082#issuecomment-2003578574 states that this only fixed the swift build but all downstream packages are still broken. re-opening.
all downstream packages are still broken
Actually, it seems only dark-mode-notify is broken, others seem fine. Probably because it uses Cocoa or disables sandbox. I don't know for sure.
I noticed that my personal package does not build either. Maybe it's because of swift itself or swiftpm?
❯ nom build .#bclm
this derivation will be built:
/nix/store/5fydm8ymavd5xf6kzaf8pzp7c1vyzixj-bclm-0.1.0.drv
bclm> building '/nix/store/5fydm8ymavd5xf6kzaf8pzp7c1vyzixj-bclm-0.1.0.drv'
bclm> Running phase: unpackPhase
bclm> unpacking source archive /nix/store/flpabhsb1drhc20hlbxy0gdz0nfiy7wn-source
bclm> source root is source
bclm> Running phase: patchPhase
bclm> Running phase: updateAutotoolsGnuConfigScriptsPhase
bclm> Running phase: configurePhase
bclm> Running phase: buildPhase
bclm> build flags: -j 8 -c release
bclm> TSCUtility/Triple.swift:215: Fatal error: Failed to parse target info (malformed).
bclm> Raw compiler output:
bclm> /nix/store/ghp1m1i27yyqfys8i6ilpcq7mrpy7848-swiftpm-5.8/nix-support/setup-hook: line 2: 63542 Trace/BPT trap: 5 TERM=dumb swift-build "${flagsArray[@]}"
error: builder for '/nix/store/5fydm8ymavd5xf6kzaf8pzp7c1vyzixj-bclm-0.1.0.drv' failed with exit code 133;
The above open PR seems to run into the same issue…
Since https://github.com/NixOS/nixpkgs/pull/291901 was merged into the master, swift cannot be built on aarch64.
Steps To Reproduce
Steps to reproduce the behavior:
Build log
https://hydra.nixos.org/build/252498280 https://hydra.nixos.org/build/252595108
Additional context
reported in https://github.com/NixOS/nixpkgs/pull/291901#issuecomment-1976557559
I'm not familiar with swift or clang, but I'm using the following overlay as a workaround until it's fixed.
Notify maintainers
@dtzWill @trepetti @dduan @Trundle @stephank
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.