NixOS RISC-V | 238 Members | |
| NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux | 72 Servers |
| Sender | Message | Time |
|---|---|---|
| 30 Mar 2024 | ||
| if cross compilation is supported, why do i keep getting this error ? it's really frustrating | 00:56:48 | |
| ok even after i've built ghc locally | 02:01:47 | |
| and i've set the nixpkgs to alexandretunstall/nixpkgs/ghc-cross-usable | 02:01:54 | |
| it still saying cannot bootstrap ghc on this platform | 02:02:08 | |
| i do not understand what is going on | 02:02:13 | |
| It looks like you're missing the overlay that replaces the Nixpkgs GHCs with those based off of the cross-compiled GHC. Do you have a link to a reproducer I can look at? | 07:46:13 | |
| 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 | |