Nix on macOS | 1148 Members | |
| “There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org | 182 Servers |
| Sender | Message | Time |
|---|---|---|
| 28 Nov 2025 | ||
| I want the package version to match the one advertised by Swift. Ideally, I could it to build LLVM, but that would really break the patches. | 17:32:44 | |
| * | 17:32:52 | |
| * | 17:33:15 | |
(This means the Swift clang will print 19.1.5 for its version instead of 17.0.0.) | 17:34:26 | |
| exciting! | 20:44:08 | |
| do let me know if i can help at all | 20:44:12 | |
I have a weird build error that I'm trying to fix. python3Packages.torchtune crashes in importsCheckPhase when it imports python3Packages.sentencepiece on Darwin. I've confirmed that other python packages that depend on sentencepiece fail in the same way, but not if it's only used as a check dependency. The final weirdness: nix-build of sentencepiece picks up a prebuilt package, but calling it with --check shows a non-deterministic build. | 21:05:19 | |
| Console.app is how I first depetermined its sentencepiece | 21:05:51 | |
| * Console.app is how I first determined it's sentencepiece that's failing | 21:07:08 | |
| 21:12:23 | |
| * error: derivation 'rj3n6mm11f90ssv0az0aplkiy9b2s48l-python3.13-sentencepiece-0.2.1.drv' may not be deterministic: outputs differ output '/nix/store/cpjk1gyzyz6j18jxfpsswdd0rggyzjah-python3.13-sentencepiece-0.2.1' differs | 21:12:29 | |
*
| 21:24:35 | |
| That’s expected on Darwin. | 21:48:53 | |
| The non-deterministic build? | 22:03:27 | |
| Or the sentencepiece crash? (In which case I would mark Darwin as a bad platform) | 22:03:52 | |
| This. | 22:08:35 | |
| OK, so it's non-causal. | 22:09:25 | |
| Here's the import crash:
| 22:09:42 | |
| Looking through sentencepiece's issues, they finger SWIG as the culprit (potentially fixed in SWIG 4.4.0). There may be a patch to apply in the meantime without bumping SWIG. | 23:20:51 | |
| 29 Nov 2025 | ||
| I'll just link the ongoing saga here https://github.com/NixOS/nixpkgs/issues/466092 | 00:41:37 | |
🤨 | 01:13:02 | |
Oh, you have to explicitly disable SWIFT_ENABLE_SWIFT_IN_SWIFT now to get the C++-only compiler. | 01:30:53 | |
| 02:27:20 | |
| Looks like I’m also hitting unguarded availability errors. 🫠 | 02:27:50 | |
| 03:20:11 | |
| That’s a weird one. | 03:20:15 | |
| samasaur: Have you seen anything like that? | 04:41:51 | |
| Hmm. Actually, it might be similar to https://github.com/swiftlang/swift/pull/84413 | 04:45:13 | |
| I applied a similar patch and got further.
| 05:07:17 | |
| I’m starting to think my time might be better spent on getting 5.10.1 refactored and then add 6.2.1. | 05:11:59 | |