!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

222 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-v64 Servers

Load older messages


SenderMessageTime
28 Mar 2026
@colemickens:matrix.orgcolemickensI'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
@alex:tunstall.xyzAlexThat 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
@dramforever:matrix.orgdramforeverth1520 should be fine03:41:26
@faukah:faukah.comfaukah left the room.18:11:58
@colemickens:matrix.orgcolemickensI 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
@alex:tunstall.xyzAlex

I've been stuck for a few days on a problem with linking clangd-fuzzer getting OoM killed right at the end of buildPhase 18 hours into the clang build. Even -j1 isn't enough.
I tried useMoldLinker, but that's broken right now (due to something not putting NIX_CFLAGS_LINK under env?).
Then I tried updating the system again, but now useMoldLinker causes eval to overflow the stack.

Has anyone found a reasonable solution to building clang (LLVM 20 and 21) without needing ludicrous amounts of memory?
If push comes to shove I could perhaps suffer a larger swap file...

18:51:51
@alex:tunstall.xyzAlex

For reference:

[nixos@nixos:~/system]$ free -h
               total        used        free      shared  buff/cache   available
Mem:           7.7Gi       6.0Gi       105Mi          0B       1.6Gi       1.5Gi
Swap:           15Gi       152Mi        15Gi

(There is high memory usage right now because it's in the middle of retrying clang.)

18:53:30
30 Mar 2026
@jammie:matrix.orgJamieMageeI found an issue with nixpkgs configuration of gdb, which doesn't match upstream configuration. Specifically, gdb doesn't support in-process agent on risc-v: https://github.com/NixOS/nixpkgs/pull/50487203:41:58
@misuzu:matrix.orgmisuzuTry --cores 107:14:37
@alex:tunstall.xyzAlex

I had a build almost ending already, and this is what the RSS looked like just within 10s of the OoM kill:

436704 bin/c-index-test
4203668 bin/clang-tidy
2798596 bin/clangd-fuzzer

So yeah I think --cores 1 is worth a try, though it'll probably take over 2 days to build a single clang version (and I need 2). 🫠

10:16:04
@alex:tunstall.xyzAlexI have figured out a way to get LLVM linked with mold to evaluate (I think?) so I think I'll try that first.10:17:01

There are no newer messages yet.


Back to Room ListRoom Version: 10