!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

442 Members
104 Servers

Load older messages


SenderMessageTime
12 Dec 2024
@k900:0upti.meK900You're trying to cross-compile Linux from Darwin?18:45:15
@k900:0upti.meK900Yeah not happening18:45:18
@k900:0upti.meK900Not x86, not aarch64, not anything18:45:25
@k900:0upti.meK900Run a Linux VM18:45:29
@dont.wanna.tell:matrix.orgMartin HäckerI'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:0upti.meK900Uhh18:46:50
@k900:0upti.meK900Definitely not the case18:46:53
@k900:0upti.meK900We barely have cross things cached for x86_64-linux to aarch64-linu18:47:04
@k900:0upti.meK900* We barely have cross things cached for x86_64-linux to aarch64-linux18:47:05
@k900:0upti.meK900And you're doing aarch64-darwin to ... armv6l?18:47:16
@dont.wanna.tell:matrix.orgMartin HäckerWell, I'm working through the nixpkgs tutorial and am currently at the cross compilation chapter. 18:47:46
@k900:0upti.meK900Uhh18:47:54
@k900:0upti.meK900We should probably have it not say that18:48:09
@k900:0upti.meK900Or tell you to cross-compile to the other variant of your existing target18:48:30
@k900:0upti.meK900i.e. aarch64-darwin to x86_64-darwin or vice versa18:48:39
@k900:0upti.meK900Or equivalent for Linux18:48:43
@dont.wanna.tell:matrix.orgMartin 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:0upti.meK900And?18:51:05
@k900:0upti.meK900Oh wait18:51:51
@k900:0upti.meK900Yeah OK I see how you read that wrong18:51:58
@k900:0upti.meK900That's not just for cross18:52:00
@k900:0upti.meK900That's for everything18:52:03
@k900:0upti.meK900And mostly non-cross things18:52:06
@k900:0upti.meK900And Hydra does build aarch64-darwin, the docs just are out of date18:52:17
@dont.wanna.tell:matrix.orgMartin HäckerSo, 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:0upti.meK900Cross packages are generally not built18:53:33
@k900:0upti.meK900We build a very small subset of specifically x86_64-linux to aarch64-linux18:53:43
@artturin:matrix.orgArtturinSee https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/release-cross.nix for what is built18:54:04
@dont.wanna.tell:matrix.orgMartin Häckerso the fact that it seemed they where for darwin-x86 has some other reason18:54:04
@k900:0upti.meK900You probably downloaded the native x86_64-darwin toolchain18:54:27

Show newer messages


Back to Room ListRoom Version: 6