!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

398 Members
92 Servers

Load older messages


SenderMessageTime
17 Sep 2024
@sternenseemann:systemli.orgsterni
In reply to @kjeremy:matrix.org
splicing is so awful
yes, it was a hack to allow for cross without changing existing code, originally, not even the original author(s) liked it. Unfortunately, getting rid of it is very hard.
10:47:26
@tomcruz:olaf.onetomcruz joined the room.14:14:16
@lassulus:lassul.uslassulus changed their profile picture.14:38:13
18 Sep 2024
@angelos_:matrix.organstylianI remember once some show me a command line in nix, that you could run binaries of other architectures using the binfmt feature of Linux kernel, can you help me find that command? 09:58:39
@angelos_:matrix.organstylianok, I think I found it: nix build nixpkgs#pkgsCross.wasi32.ripgrep10:01:40
@toxicfrog:ancilla.caToxicFrogThat's for cross-compiling the wasi32 build of ripgrep, doesn't mean you'll be able to run it afterwards but do report back11:14:04
@toxicfrog:ancilla.caToxicFrog I suspect you are actually looking for the boot.binfmt option tree 11:14:31
19 Sep 2024
@memegames99:matrix.org@memegames99:matrix.org joined the room.01:51:59
@memegames99:matrix.org@memegames99:matrix.org set a profile picture.02:02:29
@julius:mtx.liftm.deˈt͡sɛːzaɐ̯ anstylian: Cross-compiling rust packages to wasi is broken, I've got a PR for that, but it's unlikely to be merged. (You can play with build github:NixOS/nixpkgs/pull/323161/merge#pkgsCross.wasi32.rusti-cal if you want). 02:49:04
@julius:mtx.liftm.deˈt͡sɛːzaɐ̯Also, that's cross compiling, not compiling with binfmt, wich is really native compiling with an interpreter/emulator.02:49:49
@julius:mtx.liftm.deˈt͡sɛːzaɐ̯ And if you want that binfmt interpretation, you need to set https://search.nixos.org/options?channel=unstable&show=boot.binfmt.registrations&from=0&size=50&sort=relevance&type=packages&query=binfmt. Then you can run stuff from pkgsCross, but also from nixpkgs#legacyPackages.aarch64-linux.…. 02:50:51
@julius:mtx.liftm.deˈt͡sɛːzaɐ̯ * anstylian: Cross-compiling rust packages to wasi is broken, I've got a PR for that, but it's unlikely to be merged. (You can play with build github:NixOS/nixpkgs/pull/323161/head#pkgsCross.wasi32.rusti-cal if you want). 02:51:56
@julius:mtx.liftm.deˈt͡sɛːzaɐ̯(Also, lots of wasi stuff won't work, because pkgsCross.wasi32 uses wasip1 without threads.)02:52:43
21 Sep 2024
@jaredbaur:matrix.orgJared Baur Fix for libspng: https://github.com/NixOS/nixpkgs/pull/343426 05:22:56
@jaredbaur:matrix.orgJared Baur ~Fix for libspng: https://github.com/NixOS/nixpkgs/pull/343426~
wait, not fixed yet
05:27:59
@jaredbaur:matrix.orgJared Baur Fix for libspng: https://github.com/NixOS/nixpkgs/pull/343426 05:29:48
23 Sep 2024
@elikoga:matrix.orgelikoga joined the room.15:29:50
24 Sep 2024
@kjeremy:matrix.orgkjeremy Artturin: did your removal of with libs from splicing help? 17:09:00
@artturin:matrix.orgArtturin
In reply to @kjeremy:matrix.org
Artturin: did your removal of with libs from splicing help?
I dunno, I'll try a different way of evalling cross pkgs https://github.com/NixOS/nixpkgs/pull/341067/commits/f5a55270cad669d9d80d98894f56082f714c884f
with the heavy python override removed https://github.com/NixOS/nixpkgs/pull/341067/commits/5a77603c4ce0a57ff57bde3363b79414bfb27fc7
20:08:55
@kjeremy:matrix.orgkjeremyIt probably won't be meaningful until the Python bits are fixed20:10:10
25 Sep 2024
@artturin:matrix.orgArtturinEval fail16:50:43
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/34447616:50:44
@artturin:matrix.orgArtturin
In reply to @artturin:matrix.org
I dunno, I'll try a different way of evalling cross pkgs https://github.com/NixOS/nixpkgs/pull/341067/commits/f5a55270cad669d9d80d98894f56082f714c884f
with the heavy python override removed https://github.com/NixOS/nixpkgs/pull/341067/commits/5a77603c4ce0a57ff57bde3363b79414bfb27fc7
Currently fixing all the cross eval fails https://github.com/NixOS/nixpkgs/pull/344499 https://github.com/NixOS/nixpkgs/pull/344516
21:18:44
@rosscomputerguy:matrix.orgTristan Ross
In reply to @artturin:matrix.org
Currently fixing all the cross eval fails https://github.com/NixOS/nixpkgs/pull/344499 https://github.com/NixOS/nixpkgs/pull/344516
Nice, we need better cross.
22:03:05
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/34451622:09:24
26 Sep 2024
@fabianhjr:matrix.orgFabián Heredia set a profile picture.01:16:03
@kjeremy:matrix.orgkjeremy Artturin: Did your splicing change expose these already existing errors or did your change cause the breakage? 13:47:27
@artturin:matrix.orgArtturin
In reply to @kjeremy:matrix.org
Artturin: Did your splicing change expose these already existing errors or did your change cause the breakage?
Existing
13:47:41
@artturin:matrix.orgArtturinOfborg evalling the cross set, not the splicing change13:48:04

Show newer messages


Back to Room ListRoom Version: 6