NixOS RISC-V | 237 Members | |
| NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux | 70 Servers |
| Sender | Message | Time |
|---|---|---|
| 3 Apr 2024 | ||
| Thanks Alex for that writeup and your work on cross bootstraping GHC. ❤️ | 16:17:31 | |
In reply to @0x4a6f:matrix.orgPain. I was going to copy it over to the wiki anyway. I guess I might touch it up a bit to make it more flake-friendly. | 16:43:31 | |
In reply to @0x4a6f:matrix.orgI still need to figure out what's causing the registerised segfaults, so it's not done yet. | 16:44:39 | |
| The rustc build is segfaulting on native builds too 🙃 Seems to be https://github.com/rust-lang/rust/issues/117022 Now beginning to wonder if all the GHC segfaults aren't also kernel-related... | 18:02:35 | |
I'm glad I've never GCed on this system, because I might need to run an older kernel to upgrade the kernel... | 19:50:19 | |
| https://github.com/NixOS/nixpkgs/issues/301340 | 20:01:35 | |
| do you think all of the segfault errors on my builds are related to this kernel as well ? | 20:02:02 | |
In reply to @hive:the-apothecary.clubI doubt it, because QEMU uses the host system's kernel. | 20:02:25 | |
| ah ok | 20:02:35 | |
| I guess you could try using a different version if you're on 6.5 though? It just might work. I don't really understand the root cause of my segfaults well enough to say. | 20:03:23 | |
| i'm on 6.8 | 20:03:44 | |
| 4 Apr 2024 | ||
| 09:22:20 | ||
| anyway, debian is building on hifive unmatched 😄 | 09:23:54 | |
| my employer seems to host a bunch of these 👀 | 09:24:45 | |
| hexa: as far as I know our main limitation is rack space (ping Mic92). the upcoming milk-v oasis seems like a more efficient use of that space | 09:31:27 | |
| huh? rack space where? | 09:31:43 | |
| TUM? | 09:32:01 | |
In reply to @fgaz:matrix.org The third RISC-V SoM from Sipeed is gonna have the same SG2380 SoC that the Oasis will too. Not sure on the max memory that they will ship. So for CPU-bound compiles, this SoM should be better if $ and space are an issue. https://twitter.com/sipeedio/status/1774644666375524659 | 09:34:19 | |
In reply to @hexa:lossy.networkIn the nix community rack. Last time we discussed this I think that was the candidate for hosting a builder. I don't know more than that | 09:35:32 | |
| And the pioneer is a no go ? | 09:36:50 | |
In reply to @julienmalka:matrix.orgYes. | 09:37:02 | |
| All machines with the C910 core are only good for test builds and cannot be "trusted" (not in context of a backdoor but it is not compliant to the spec). | 09:38:00 | |
| The "v2" of C920 is supposed to be more compliant with the spec but no one has had hands-on with it yet. | 09:38:48 | |
| 10:05:05 | ||
| Hi there. I heard about the attempts to bootstrap the GHC on NixOS RISC-V. I guess you tried the LLVM backend? Sorry if thats a bit naive, I guess there is a very good reason, why this wouldnt work. The Github ticket around this issue also mentions, that this is possible. Is the backend not capable to compile itself? | 10:31:29 | |
| * Hi there. I heard about the attempts to bootstrap the GHC on NixOS RISC-V. I guess you tried the LLVM backend? Sorry if thats a bit naive, I guess there is a very good reason, why this wouldnt work. The Github ticket around this issue also mentions, that this is possible. Is the LLVM backend not capable to compile GHC? | 10:32:42 | |
| I do see the GraalVM also as a potential tool to bootstrap Haskell on RISC-V, although I havent tried that yet. They provide both JIT and compiled (they call it native image) methods to run on RISC-V, and Haskell supposedly runs on it with the Sulong implementation. Just wanted to drop it, in case someone didnt knew about that yet (sorry if obviously not helpful, as said.) | 10:37:16 | |
| You can always build GHC with an unregisterised backend (via C), and use that to bootstrap. But that is painfully slow. There is no NCG backend and not runtime linker yet, but that's in progress. The LLVM backend "works" as of 9.6 (or 9.4 with newer llvm like in debian). | 10:39:52 | |
| 11:21:01 | ||
In reply to @skeuchel:matrix.org In my testing using an unregisterised boot GHC, it usually takes around 20 hours to natively build GHC on the JH7110 SoC. Longer if other builds are running in parallel (I've had one GHC build take ~35 hours). I can't comment on how much faster registerised via LLVM is because my registerised builds keep segfaulting... | 12:19:51 | |