!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

506 Members
110 Servers

Load older messages


SenderMessageTime
19 May 2025
@k900:0upti.meK900What do you mean?13:32:04
@emilazy:matrix.orgemilylet's say I want to build an x86 Linux rustc that targets AArch64 Linux on Darwin. how do I do that?13:32:10
@k900:0upti.meK900I don't think we really expose Canadian cross like that13:32:54
@emilazy:matrix.orgemilythen how come we even support it :P13:33:11
@emilazy:matrix.orgemily can you make it happen with pkgsCross? 13:33:17
@emilazy:matrix.orgemilylooks like no13:34:16
@emilazy:matrix.orgemilyat least not in the obvious way13:34:22
@k900:0upti.meK900We don't really13:34:33
@qyliss:fairydust.spaceAlyssa RosspkgsCross is just wrapping instantiating nixpkgs with a crossSystem13:34:39
@emilazy:matrix.orgemilywe kinda do considering how much logic we have for three cross platforms…13:34:54
@k900:0upti.meK900The whole build/host/target thing doesn't actually mean you can instantiate a nixpkgs for arbitrary build/host/target13:35:09
@k900:0upti.meK900Honestly I still want to kill off target at some point13:35:32
@emilazy:matrix.orgemilywhy not? in most cases we handle it correctly13:35:39
@k900:0upti.meK900I forgot why it blows up the platform offset logic but it does13:36:44
@k900:0upti.meK900Honestly that whole thing is the primary reason I really want to kill target13:37:09
@emilazy:matrix.orgemilywell that's dumb13:37:09
@k900:0upti.meK900Having just two platform offsets and having them saturate makes things SO much easier13:37:22
@emilazy:matrix.orgemily targetPlatform is bad, but I thought we were at least getting value out of it 13:37:21
@k900:0upti.meK900To reason about13:37:26
@emilazy:matrix.orgemilyGCC and wrappers should just take a target argument.13:37:47
@emilazy:matrix.orgemilyit's rough when you need to build libraries for target though13:37:58
@k900:0upti.meK900Yeah, that's what I was thinking as well13:38:00
@k900:0upti.meK900Anything that's explicitly-targeted can just require specifying a target13:38:21
@k900:0upti.meK900 Actually that also blows up Canadian cross 13:38:38
@emilazy:matrix.orgemily yes, but pkgsTarget* gets hard 13:38:37
@emilazy:matrix.orgemilyit's rare though13:38:44
@k900:0upti.meK900Because there is no pkgsOnBuildForTarget13:38:46
@k900:0upti.meK900Technically pkgsTarget does not get hard in that setup, it just becomes normal cross13:39:35
@emilazy:matrix.orgemilyuh. hm13:39:36
@k900:0upti.meK900Which does require another nixpkgs13:39:40

Show newer messages


Back to Room ListRoom Version: 6