NixOS RISC-V | 234 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-v | 69 Servers |
| Sender | Message | Time |
|---|---|---|
| 30 Mar 2024 | ||
| git.solarpunk.moe/geekygays/nixconf | 17:12:33 | |
| * https://git.solarpunk.moe/geekygays/nixconf | 17:12:41 | |
nixosConfigurations.cmb2.config.system.build.toplevel on branch magrathea?Let me take a look... | 17:20:12 | |
| yeah the magrathrea branch | 17:22:01 | |
| its under systems/riscv64-linux/cmb2 | 17:22:36 | |
| I can't say I fully understand which of the modules is included in the configuration, but I'll start from there. | 17:23:22 | |
| Well, I've gotten it to evaluate.
This works for two reasons:
To compile ShellCheck and nix-output-monitor, you must overlay the default GHC builds to replace them with a usable GHC. Note that my (If you don't want to make your flake impure, you can use | 17:51:15 | |
| * Well, I've gotten it to evaluate.
This works for two reasons:
To compile ShellCheck and nix-output-monitor, you must overlay the default GHC builds to replace them with a usable GHC. Note that my (If you don't want to make your flake impure, you can use | 17:52:26 | |
| thank u <3333 | 17:58:22 | |
| ur incredible | 17:58:32 | |
| 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. | 18:06:38 | |
| 31 Mar 2024 | ||
| 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 | |
| i don't think nix build has an option for that | 05:46:16 | |
| i know nix-build does, but i have been able to find a flag for nix build anywhere | 05:46:37 | |
In reply to @hive:the-apothecary.club 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 | |
In reply to @hive:the-apothecary.clubNix 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 | |
| alright, thanks | 06:57:41 | |
| after a 9 hour build, the build for diffutils failed the overflow checks,,, ;-; | 20:37:50 | |
| Download diffutils-log.txt | 20:39:54 | |
| it successfully built so i really have no idea why the checks failed | 20:40:35 | |
| i think i should probably report this bug to nixpkgs | 20:42:00 | |
Check kernel log. | 20:50:16 | |
| would that be journalctl | 20:51:00 | |
If on a systemd distribution (like NixOS) | 20:51:22 | |
| At the very least those logs should tell you exactly which process segfaulted and a bit of information about what exactly it tried to do. | 20:54:10 | |
| i'm not seeing any segfaults in the logs | 20:56:37 | |
| https://github.com/NixOS/nixpkgs/issues/300550 | 20:58:15 | |
| i'll try to get it to crash again and see if i can find it | 20:58:26 | |
| would it show up in dmesg ? | 20:58:37 | |
| On the system that ran the build? There should definitely be something there at the timestamp at which it crashed... | 20:58:46 | |