!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

237 Members
NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux https://github.com/orgs/NixOS/teams/risc-v68 Servers

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


SenderMessageTime
30 Mar 2024
@alex:tunstall.xyzAlex

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:the-apothecary.clubhive ⬡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:the-apothecary.clubhive ⬡i don't think nix build has an option for that05:46:16
@hive:the-apothecary.clubhive ⬡i know nix-build does, but i have been able to find a flag for nix build anywhere05:46:37
@alex:tunstall.xyzAlex
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:tunstall.xyzAlex
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:the-apothecary.clubhive ⬡alright, thanks06:57:41
@hive:the-apothecary.clubhive ⬡after a 9 hour build, the build for diffutils failed the overflow checks,,, ;-;20:37:50
@hive:the-apothecary.clubhive ⬡Download diffutils-log.txt20:39:54
@hive:the-apothecary.clubhive ⬡it successfully built so i really have no idea why the checks failed20:40:35
@hive:the-apothecary.clubhive ⬡i think i should probably report this bug to nixpkgs20:42:00
@alex:tunstall.xyzAlex

Segmentation fault

Check kernel log.

20:50:16
@hive:the-apothecary.clubhive ⬡would that be journalctl20:51:00
@alex:tunstall.xyzAlex
journalctl -ek

If on a systemd distribution (like NixOS)

20:51:22

Show newer messages


Back to Room ListRoom Version: 10