!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

224 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-v65 Servers

Load older messages


SenderMessageTime
18 Mar 2026
@alex:tunstall.xyzAlexDo you have a reproducer that only requires the Nix CLI?01:59:33
@colemickens:matrix.orgcolemickensI've just replaced my flake.{nix,lock}. Going to send it through the expensinve fat github runners to confirm output first, then I gist the flake.{nix,lock}02:08:46
@colemickens:matrix.orgcolemickensokay, it reprod: https://gist.github.com/colemickens/78af9a28c01b888726322ca6628b27f502:12:22
@alex:tunstall.xyzAlex Oh sorry, I thought you were talking about an error during eval not during realisation.
Yes, I can definitely reproduce it now.
02:24:15
@alex:tunstall.xyzAlex I've asked about it in #haskell:nixos.org.
I will see if I can fix it or at least track down the cause.
02:29:37
@jammie:matrix.orgJamieMageeI bumped into another issue while building OpenSSL https://github.com/NixOS/nixpkgs/pull/50106116:07:37
@dramforever:matrix.orgdramforeverwhat platform is this? are you building on qemu-user?16:32:17
@jammie:matrix.orgJamieMageeYes, it's on QEMU16:32:44
@dramforever:matrix.orgdramforeverthe binfmt thing, right?16:36:27
@dramforever:matrix.orgdramforeveri don't think i can in good conscience accept this. so many packages fail tests in qemu-user that we'll keep adding these, until the real riscv machine gets good then these would be obsolete16:40:52
@dramforever:matrix.orgdramforever * 16:41:04
@dramforever:matrix.orgdramforever as an example, a good while back even coreutils fails tests under qemu-user 16:41:20
@dramforever:matrix.orgdramforevera while back i wrote a hydra hack to schedule builds based on derivation meta16:43:15
@dramforever:matrix.orgdramforeverit still needs some weird extra hacks on top but it avoids changing hash16:43:32
@dramforever:matrix.orgdramforeverhttps://github.com/dramforever/hydra/tree/description-feature-hack16:44:16
@dramforever:matrix.orgdramforeverthis plus marking them in meta plus adding them into actual hydra jobs lets you schedule these failing derivations into a full system emulation or real riscv64 machine16:45:27
@dramforever:matrix.orgdramforeverit "worked", but nobody got around to actually marking stuff...16:45:48
@qyliss:fairydust.spaceAlyssa Rossglobally disable checking if using binfmt imo 😈️16:49:41
@dramforever:matrix.orgdramforever i need to get nix --binfmt-misc pr'd into nix some time... 16:50:49
@dramforever:matrix.orgdramforeverif you haven't seen, https://github.com/dramforever/nix/pull/2516:51:16
@dramforever:matrix.orgdramforever 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
@dramforever:matrix.orgdramforever * 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
@jammie:matrix.orgJamieMageeYeah, qemu-user17:39:14
19 Mar 2026
@jammie:matrix.orgJamieMageeI 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
@alex:tunstall.xyzAlexFrankly, I'm surprised that QEMU continues to get RISC-V emulation subtly wrong.06:13:22
@alex:tunstall.xyzAlexOr is the issue unrelated to QEMU in that some things behave weirdly when userspace and kernelspace are on different architectures?06:15:15
@qyliss:fairydust.spaceAlyssa Rossoften qemu-user just doesn't implement certain stuff — remember it's not just emulating the architecture; it has to emulate the whole Linux API06:23:38
@dramforever:matrix.orgdramforever-ENOSYS is one of the least subtle wrongs qemu-user commits12:39:17
@dramforever:matrix.orgdramforeverbut yes usually you can expect user emulation to have a crap ton more problems than system emulation12:40:03
@colemickens:matrix.orgcolemickensIs there a branch y'all follow or maintain? Or just ride nixos-unstable and cross your fingers? :)19:17:42

Show newer messages


Back to Room ListRoom Version: 10