!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

421 Members
96 Servers

Load older messages


SenderMessageTime
12 Dec 2024
@k900:0upti.meK900Which is used to build the cross toolchain18:54:32
@k900:0upti.meK900That should be cached for all four tier 1 targets18:54:39
@dont.wanna.tell:matrix.orgMartin HäckerLooking at https://github.com/NixOS/nixpkgs/blob/7f6f4d968db96de346a9b62d829e45cd5efd617c/pkgs/top-level/release-cross.nix#L16 it seems to me that there is darwin-x86 in there but not darwin-arm18:55:20
@dont.wanna.tell:matrix.orgMartin Häckeram I reading that wrong?18:55:23
@k900:0upti.meK900I don't think much of that is evaluated, never mind built18:56:34
@k900:0upti.meK900Hm it is actually18:57:13
@k900:0upti.meK900It just is mostly broken18:57:18
@k900:0upti.meK900https://hydra.nixos.org/eval/181043318:57:20
@k900:0upti.meK900Which is to be expected18:57:23
@k900:0upti.meK900Because Darwin to Linux cross is hard and also broken18:57:37
@dont.wanna.tell:matrix.orgMartin HäckerYeah, I guess so. So for future reference, if I want to try and follow the tutorials there, either use a docker container to build this or a linux vm?18:59:02
@artturin:matrix.orgArtturinWe probably want to replace x86_64-darwin there with aarch64-darwin since it's better supported nowadays, darwin to linux cross still broken though18:59:05
@k900:0upti.meK900Yes18:59:11
@artturin:matrix.orgArtturin
In reply to @dont.wanna.tell:matrix.org
Yeah, I guess so. So for future reference, if I want to try and follow the tutorials there, either use a docker container to build this or a linux vm?
Dunno what's the virt perf like but https://nixcademy.com/posts/macos-linux-builder/
18:59:33
@dont.wanna.tell:matrix.orgMartin Häcker
In reply to @artturin:matrix.org
We probably want to replace x86_64-darwin there with aarch64-darwin since it's better supported nowadays, darwin to linux cross still broken though
I was thinking about filing a feature request for that. If I’d want that, where would be the best place for that?
19:00:47
@k900:0upti.meK900Honestly just drop Darwin from that set19:03:22
@k900:0upti.meK900Unless someone steps up and says "we will maintain darwin to linux cross"19:03:32
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/36468019:05:34
@dont.wanna.tell:matrix.orgMartin Häcker @k900:0upti.meI'm still a bit new, but that is something I am interested in 19:09:48
@k900:0upti.meK900It's not fun19:10:03
@szlend:matrix.orgszlend https://github.com/NixOS/nixpkgs/pull/361521 :D 19:10:13
@k900:0upti.meK900Especially when the VM route is right there19:10:20
@szlend:matrix.orgszlendglad to see someone else is interested, opened an issue a year back with no response19:10:59
@k900:0upti.meK900Darwin to Linux cross is a purely theoretical exercise19:12:39
@dont.wanna.tell:matrix.orgMartin HäckerI did get it working (the compilation part) with some simple hello world example. So at least it’s not completely impossible19:13:25
@dont.wanna.tell:matrix.orgMartin HäckerAt least a good part of the infrastructure compiles cleanly19:13:57
@szlend:matrix.orgszlend I've been using darwin -> aarch64-linux/x86_64-linux successfully for 3 years now 19:14:43
@szlend:matrix.orgszlendmy only complaint is that I wish the two major linux targets were cached19:15:34
@szlend:matrix.orgszlendmy use case being able to cross-compile docker images without reaching out to a VM19:16:22
@alexfmpe:matrix.orgalexfmpeHuh that's actually working? I set up the linux builder at work specifically to build docker images for x86_64 linux from dev mac laptops22:24:29

There are no newer messages yet.


Back to Room ListRoom Version: 6