Nix Cross Compiling | 577 Members | |
| 125 Servers |
| Sender | Message | Time |
|---|---|---|
| 9 Feb 2026 | ||
| * (#exotic:nixos.org might be a better channel for this until this rolls back to being about issues with cross, but I'll reply here ig) https://github.com/NixOS/nixpkgs/pull/488831 is what I needed for the installer to be recognised (and for it to look nice in the boot menu). https://github.com/OPNA2608/nixpkgs/commit/848a9e2f68e726b3727d10e759074eae3c6414e6 has the config i'm using. env "NIX_PATH=nixpkgs=$PWD:nixos-config=$PWD/newworldmac-nixos-installer.nix" nom-build ./nixos -A config.system.build.images.iso is what i've been using to build it.and the wip/ppc64-installer branch on my nixpkgs fork has the full nixpkgs state that i've been using to build & test everything. cherrypicked fixes from master-past-fork and staging, and relevant open PRs. | 19:31:44 | |
| 10 Feb 2026 | ||
| 10:28:26 | ||
| 10:36:46 | ||
| 19:48:27 | ||
| 22:42:57 | ||
| 11 Feb 2026 | ||
| Thank you! I will try it out on weekend and let you know. For now I am preparing electricity in the mancave. Wife wants me out of the bedroom with my gear :D | 06:48:00 | |
| the screenshot of boot menu is epic | 11:22:49 | |
| I am starting on the build | 11:23:01 | |
| trying to YOLO the cross compile. If that fails, I will move to a native build or try QEMU static | 12:04:06 | |
| https://github.com/NixOS/nixpkgs/issues/473862#issuecomment-3872075407 has a change to rust-bindgen which may get you further, if you fail on smth with
| 12:08:54 | |
| it stopped on GRUB:
It tried to generate fonts and got confused between host and cross system it seems. No worries, I will try it on a native system on the weekend | 17:06:23 | |
i feel like i had fixed that at some point when i tried to test grub2_ieee1275 built cross… | 17:28:03 | |
ah, i must've excluded that to get rid of 10.rebuild-nixos-tests… | 17:29:48 | |
| https://github.com/NixOS/nixpkgs/commit/5dd035f7ff49bf2ff560720e46d5505cd02e1367 try applying this | 17:30:37 | |
* ah, i must've excluded that to get rid of 10.rebuild-nixos-tests on the grub2_ieee1275 init, and then forgotten about submitting that separately… | 17:37:15 | |
| applied, and re-trying | 17:59:03 | |
building the BootX with the fancy nixos flake icon cross fails. moving ppm2osbadgeicon from the let block into pkgs/by-name/pm/ppm2osbadgeicons so it doesn't try to run a cross-compiled binary should fix it… | 18:17:28 | |
| 12 Feb 2026 | ||
| it did not get that far yet. Cross compiling libqrtr fails:
any direction I should look at? I am clsoe to finishing the installer cross compile | 07:58:27 | |
| this one has some special logic for meson cross-compile: | 08:28:03 | |
| it tried to use the following qemu wrapper: | 09:58:36 | |
| and seems it passed some ppc64 binaries in the LD_ paths I think | 09:58:56 | |
| qemu-ppc64 seems to work fine, it is my host native binary | 09:59:42 | |
| 10:20:22 | ||
| hi, can someone take a look at https://github.com/NixOS/nixpkgs/pull/489743 please? it does fix one issue for fractal to crosscompile but i am not sure if this is the most elegant way to solve it | 11:36:24 | |
| if I disable modemmanager, it fails on gdk-pixbuf: | 12:01:58 | |
| that sounds like something got linked incorrectly. built for the buildPlatform, but with hostPlatform library paths in its rpath. | 12:08:57 | |
| i'm failing in
| 12:42:07 | |
| i'll try to submit the grub thing from earlier when i have time (not rn) and i'll adjust the bootx stuff so cross is happier, but i don't have a clue for this one. you might have to setup either a VM or some other linux distro on the machine itself, build the image natively, and let the machine run for afew days… | 12:43:49 | |
| * i'll try to submit the grub thing from earlier when i have time (not rn) and i'll adjust the bootx stuff so cross is happier, but i don't have a clue for this one. you might have to setup either a VM or some other linux distro on the machine itself, start building the image natively, and let the machine run for afew days to complete the builds… | 12:44:23 | |
| (same error on nixpkgs master FWIW) | 12:45:51 | |