NixOS RISC-V | 233 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 |
|---|---|---|
| 18 Mar 2026 | ||
| it "worked", but nobody got around to actually marking stuff... | 16:45:48 | |
| globally disable checking if using binfmt imo 😈️ | 16:49:41 | |
i need to get nix --binfmt-misc pr'd into nix some time... | 16:50:49 | |
| if you haven't seen, https://github.com/dramforever/nix/pull/25 | 16:51:16 | |
| it's just a little bit too hacky, and the rabbit hole got so deep i sent a patch to linux man-pagea | 16:51:55 | |
| * it's just a little bit too hacky, and the rabbit hole got so deep i sent a patch to linux man-pages | 16:52:02 | |
| Yeah, qemu-user | 17:39:14 | |
| 19 Mar 2026 | ||
| I appreciate you taking the time to look into it with me. I've closed out my PR and I'll workaround it locally with an overlay. | 05:20:07 | |
| Frankly, I'm surprised that QEMU continues to get RISC-V emulation subtly wrong. | 06:13:22 | |
| Or is the issue unrelated to QEMU in that some things behave weirdly when userspace and kernelspace are on different architectures? | 06:15:15 | |
| often qemu-user just doesn't implement certain stuff — remember it's not just emulating the architecture; it has to emulate the whole Linux API | 06:23:38 | |
| -ENOSYS is one of the least subtle wrongs qemu-user commits | 12:39:17 | |
| but yes usually you can expect user emulation to have a crap ton more problems than system emulation | 12:40:03 | |
| Is there a branch y'all follow or maintain? Or just ride nixos-unstable and cross your fingers? :) | 19:17:42 | |
| Generally two options:
| 19:22:52 | |
In reply to @alex:tunstall.xyzWell, nix is one for example https://github.com/NixOS/nix/issues/15153 | 20:16:49 | |
| Yes, I ran into that issue myself a few weeks ago while doing binfmt emulation of aarch64. | 20:18:01 | |
| I guess it should be pretty easy to fix by just calling uname and using the appropriate arch for setting up seccomp? | 20:23:35 | |
| colemickens good news:
I'm still double checking that the cross-compiler works, but I expect to PR the fix to Nixpkgs soon enough. | 21:35:58 | |
| This alone is not enough to cross-compile | 21:43:39 | |
| colemickens https://github.com/NixOS/nixpkgs/pull/501439 | 22:00:19 | |
| 20 Mar 2026 | ||
| 09:01:21 | ||
| 24 Mar 2026 | ||
| 04:05:49 | ||
| 28 Mar 2026 | ||
| I'm sort of a riscv noob, especially with regards to the ... revisions? Is TH1520 too old to use to build in nixpkgs? | 22:54:04 | |
| 29 Mar 2026 | ||
| That seems to be RV64GC (with an old(?) version of RVV?) so unless you're deliberately targeting a higher profile like RVA23, it should be OK. | 01:58:44 | |
| th1520 should be fine | 03:41:26 | |
| 18:11:58 | ||
| I have no idea what I was doing last night. I rebooted my builders and went back to a newer nixos-unstable and now thing seem to be building mostly fine. Really bizarre, but I was up late, maybe I was more tired than I thought. | 18:44:16 | |
| I've been stuck for a few days on a problem with linking Has anyone found a reasonable solution to building | 18:51:51 | |
| For reference:
(There is high memory usage right now because it's in the middle of retrying | 18:53:30 | |