| 10 Jul 2025 |
dramforever | @rosscomputerguy:matrix.org: random sigbus on 7700x is a known thing, there should be a firmware update that fixes it | 00:15:31 |
dramforever | maybe eio is the same thing | 00:15:45 |
Tristan Ross | Oh | 00:16:57 |
dramforever | also, ask and you shall receive, updates on the sg2044 https://www.reddit.com/r/RISCV/comments/1lvm7j7/sophgo_technology_newsletter_20250709/ | 02:15:10 |
dramforever | PLEASE do not make this a scuffed chip again | 02:15:27 |
dramforever | knocking on wood so much | 02:15:36 |
| Sol Astrius Phœnix joined the room. | 14:38:26 |
| 11 Jul 2025 |
| elitewhale75 joined the room. | 17:39:18 |
| elitewhale75 changed their display name from Vignesh Guruswami to elitewhale75. | 17:39:45 |
| elitewhale75 set a profile picture. | 17:39:55 |
| 15 Jul 2025 |
| 0xcafca joined the room. | 23:06:57 |
| 16 Jul 2025 |
| no-mood joined the room. | 09:22:12 |
no-mood | Hi all, is there any chance that the RISC-V toolchain will be packaged for Nix?
https://github.com/NixOS/nixpkgs/issues/376165 | 10:53:36 |
Alex | In reply to @no-mood:matrix.org Hi all, is there any chance that the RISC-V toolchain will be packaged for Nix? https://github.com/NixOS/nixpkgs/issues/376165 What for? | 10:58:19 |
no-mood | In reply to @alex:tunstall.xyz What for? I'm working on a LKM on (simulated) risc-v, and without the toolchain I'm kind of stuck.
I've tried to do it manully without success (first step of https://gem5.googlesource.com/public/gem5-resources/+/HEAD/src/riscv-fs/README.md) | 11:00:19 |
no-mood | Now I'm working on a debian container (where the first step is not needed since it is packaged there) but I'm having some problems getting the compile_commands.json to work | 11:01:29 |
Alex | In reply to @no-mood:matrix.org I'm working on a LKM on (simulated) risc-v, and without the toolchain I'm kind of stuck.
I've tried to do it manully without success (first step of https://gem5.googlesource.com/public/gem5-resources/+/HEAD/src/riscv-fs/README.md) Have you tried using GCC or clang? They support cross-compiling for freestanding environments too. | 11:02:07 |
no-mood | In reply to @alex:tunstall.xyz Have you tried using GCC or clang? They support cross-compiling for freestanding environments too. I've just read that debian ships with gcc-14-riscv64-linux-gnu, but I can't find the package for nix (?) | 11:04:49 |
Alex | In reply to @no-mood:matrix.org I've just read that debian ships with gcc-14-riscv64-linux-gnu, but I can't find the package for nix (?) pkgsCross can do pretty much anything imaginable, as long as it builds (most do). | 11:05:40 |
Alex | There is for example pkgsCross.riscv64.stdenv, which IIRC provides everything you need for C and assembly. | 11:06:54 |
no-mood | Oh good! Any flake you recommend? | 11:07:34 |
Alex | In reply to @no-mood:matrix.org Oh good! Any flake you recommend? For?
The above is in nixpkgs. | 11:07:55 |
no-mood | Sorry, this is my first time cross-compiling in NixOS :)
I'm missing how to use it | 11:14:08 |
Alex | In reply to @no-mood:matrix.org Sorry, this is my first time cross-compiling in NixOS :) I'm missing how to use it I can't go into much detail right now, but there is a NixOS wiki page that does.
You could also try checking the Nixpkgs manual. It should have a section about cross. | 11:16:23 |
no-mood | Okay I'll check it, thank you! | 11:20:43 |
dramforever | get the pkgsCross.riscv64.stdenv.cc package | 12:01:11 |
dramforever | riscv64-unknown-linux-gnu-gcc will be right there | 12:01:21 |
dramforever | the newlib one is in pkgsCross.riscv64-embedded.stdenv.cc | 12:01:34 |
| @winston:milli.ng left the room. | 13:37:05 |
| 17 Jul 2025 |
no-mood | In reply to @dramforever:matrix.org get the pkgsCross.riscv64.stdenv.cc package This is what I needed. I'm still confused as to why it doesn't show up in the Nix package search, given that it's a package | 10:49:03 |