!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

579 Members
126 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
19 May 2025
@emilazy:matrix.orgemilywhich we use a fair bit13:48:02
@k900:0upti.meK900Yes but it doesn't exist on Canadian cross13:48:26
@emilazy:matrix.orgemilyI mean, it can, right? you just have to build another compiler13:49:48
@k900:0upti.meK900Well yes but that kinda defeats the point of Canadian cross13:51:02
@emilazy:matrix.orgemilyis there a point of Canadian cross?13:52:30
@k900:0upti.meK900Yes, the point of Canadian cross is that you use your slow build machine to build a cross-compiler for a fast host machine13:53:19
@k900:0upti.meK900And then use that cross-compiler to build packages for target13:53:27
@k900:0upti.meK900But faster13:53:31
@emilazy:matrix.orgemilyyou could just build the compiler on the fast host machine.13:55:33
@emilazy:matrix.orgemilyto me the sensible use-case for Canadian cross looks like "we can only get x86 CI, not AArch64, but we want to offer AArch64 binaries of our compiler for various targets"13:56:23
@emilazy:matrix.orgemilyin which case building an extra compiler is basically fine.13:56:32
21 May 2025
@weethet:catgirl.cloudWeetHet changed their profile picture.10:59:09
22 May 2025
@rhelmot:matrix.orgrhelmotperl modules cross is an irredeemable nightmare22:29:14
@rhelmot:matrix.orgrhelmotI cannot figure out how to get it to build extension modules that do not link the build platform's libc...22:30:16
@rhelmot:matrix.orgrhelmotnew problem - https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/misc/gdb/default.nix#L40 I don't think this is correct, since when I build gdb with buildPlatform = linux and hostPlatform = freebsd, this ends up being a linux path pulling glibc into the closure, which is completely useless.22:56:58
@rhelmot:matrix.orgrhelmotdoes anyone know how to test whatever that line is supposed to support?22:57:41
@rhelmot:matrix.orgrhelmothttps://github.com/NixOS/nixpkgs/pull/73574 concerning...23:03:10

Show newer messages


Back to Room ListRoom Version: 6