| 30 Mar 2024 |
Alex | tau I've been modernising my RISC-V configuration, so I just so happen to have a pure flake that can evaluate GHC. It's not yet done building so I'm not entirely sure it'll work flawlessly on my VF2, but feel free to use it as a reference for how to overlay GHC.
https://github.com/AlexandreTunstall/nixos-riscv | 18:06:38 |
| 31 Mar 2024 |
hive ⬡ | right now it's doing an emulated build, and i'm guessing there's no way to get it to do a cross build ? | 05:45:32 |
hive ⬡ | i don't think nix build has an option for that | 05:46:16 |
hive ⬡ | i know nix-build does, but i have been able to find a flag for nix build anywhere | 05:46:37 |
Alex | In reply to @hive:the-apothecary.club right now it's doing an emulated build, and i'm guessing there's no way to get it to do a cross build ? Cross-compiling Haskell packages doesn't work.
I think the main issue is probably that Cabal needs to compile Setup.hs for the build platform, so you can't just instruct it to use a GHC that targets the host platform. | 06:29:33 |
Alex | In reply to @hive:the-apothecary.club i don't think nix build has an option for that Nix can cross-compile an entire NixOS system, but not when using flakes unless the flake was specifically written for cross-compilation (e.g. by setting nixpkgs.buildPlatform). | 06:35:46 |
hive ⬡ | alright, thanks | 06:57:41 |
hive ⬡ | after a 9 hour build, the build for diffutils failed the overflow checks,,, ;-; | 20:37:50 |
hive ⬡ | Download diffutils-log.txt | 20:39:54 |
hive ⬡ | it successfully built so i really have no idea why the checks failed | 20:40:35 |
hive ⬡ | i think i should probably report this bug to nixpkgs | 20:42:00 |
Alex |
Segmentation fault
Check kernel log. | 20:50:16 |
hive ⬡ | would that be journalctl | 20:51:00 |
Alex | journalctl -ek
If on a systemd distribution (like NixOS) | 20:51:22 |