12 Dec 2024 |
K900 | You're trying to cross-compile Linux from Darwin? | 18:45:15 |
K900 | Yeah not happening | 18:45:18 |
K900 | Not x86, not aarch64, not anything | 18:45:25 |
K900 | Run a Linux VM | 18:45:29 |
Martin Häcker | I'm currently trying to understand how I did this yesterday, but I seem to remembering that cross compiling from darwin-x86 to raspi the same way was much faster because many packages where cached. | 18:46:25 |
K900 | Uhh | 18:46:50 |
K900 | Definitely not the case | 18:46:53 |
K900 | We barely have cross things cached for x86_64-linux to aarch64-linu | 18:47:04 |
K900 | * We barely have cross things cached for x86_64-linux to aarch64-linux | 18:47:05 |
K900 | And you're doing aarch64-darwin to ... armv6l? | 18:47:16 |
Martin Häcker | Well, I'm working through the nixpkgs tutorial and am currently at the cross compilation chapter. | 18:47:46 |
K900 | Uhh | 18:47:54 |
K900 | We should probably have it not say that | 18:48:09 |
K900 | Or tell you to cross-compile to the other variant of your existing target | 18:48:30 |
K900 | i.e. aarch64-darwin to x86_64-darwin or vice versa | 18:48:39 |
K900 | Or equivalent for Linux | 18:48:43 |
Martin Häcker | I'm referring to https://nixos.org/manual/nixpkgs/stable/#chap-cross where it says:
The tests are conducted by a cluster called Hydra, which also builds binary packages from the Nix expressions in Nixpkgs for x86_64-linux, i686-linux and x86_64-darwin. The binaries are made available via a binary cache.
| 18:49:05 |
K900 | And? | 18:51:05 |
K900 | Oh wait | 18:51:51 |
K900 | Yeah OK I see how you read that wrong | 18:51:58 |
K900 | That's not just for cross | 18:52:00 |
K900 | That's for everything | 18:52:03 |
K900 | And mostly non-cross things | 18:52:06 |
K900 | And Hydra does build aarch64-darwin, the docs just are out of date | 18:52:17 |
Martin Häcker | So, the cross packages are generally not built / cached on hydra, or is the 24.11 channel just too new for them to be cached yet? | 18:53:16 |
K900 | Cross packages are generally not built | 18:53:33 |
K900 | We build a very small subset of specifically x86_64-linux to aarch64-linux | 18:53:43 |
Artturin | See https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/release-cross.nix for what is built | 18:54:04 |
Martin Häcker | so the fact that it seemed they where for darwin-x86 has some other reason | 18:54:04 |
K900 | You probably downloaded the native x86_64-darwin toolchain | 18:54:27 |