!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

198 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-v58 Servers

Load older messages


SenderMessageTime
9 Nov 2025
@mrargoz:matrix.org@mrargoz:matrix.org left the room.17:56:41
@rosscomputerguy:matrix.orgTristan RossI have a system with an ESWIN EIC770X CPU in it. Tried building hello and got an error about bootstrap-tools segfaulting. Seems like patchelf and all of the bootstrap tools don't want to execute.21:59:48
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)What kernel is that running? Cross-compiled NixOS or vendor's system? Maybe some kernel-headers nonsense22:15:25
@rosscomputerguy:matrix.orgTristan Ross6.6.92-eic7x-2025.0722:19:49
@rosscomputerguy:matrix.orgTristan Rosshttps://github.com/DC-DeepComputing/DC-linux/22:20:00
@rosscomputerguy:matrix.orgTristan RossIt's running Ubuntu right now22:20:05
@rosscomputerguy:matrix.orgTristan RossI'm not doing cross, I'm doing native22:24:16
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Where is it segfaulting? somewhere in musl?22:24:23
@rosscomputerguy:matrix.orgTristan RossI can't get a backtrace22:24:33
@rosscomputerguy:matrix.orgTristan Ross If I execute the ld-linux shared library, it does print. But grep, awk, and patchelf can't be executed. 22:25:11
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)So static executables built with nixpkgs musl are borked with that kernel?22:26:11
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)As in they don't even make their way to main?22:26:21
@rosscomputerguy:matrix.orgTristan RossYes22:26:41
@rosscomputerguy:matrix.orgTristan Ross Even if I do start in GDB, I get a segfault on calling gcc 22:26:59
@rosscomputerguy:matrix.orgTristan Rossnproc works22:28:10
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Then maybe put a breakpoint on the elf entrypoint and step instruction-by-instruction?22:28:31
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)I don't know if that will work even22:28:46
@rosscomputerguy:matrix.orgTristan RossEven if I set a breakpoint on _start, it still says segfault22:29:47
@rosscomputerguy:matrix.orgTristan RossIf I do strace on awk, I get EPERM on execve22:30:51
@rosscomputerguy:matrix.orgTristan Rossawk has 777 so it should be executable22:32:14
@rosscomputerguy:matrix.orgTristan RossAppArmor is enabled22:32:57
@rosscomputerguy:matrix.orgTristan RossIt still segfaulted22:40:48
@rosscomputerguy:matrix.orgTristan RossSame EPERM with AppArmor off22:41:15
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)bootstrap tarball looks very weird to me22:41:41
@rosscomputerguy:matrix.orgTristan RossHmm, so it's a bootstrap tarball problem that probably should be fixed?22:42:19
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Yeah no idea. Do they happen to have a somewhat representative qemu-system setup to debug this without hardware?22:53:10
@rosscomputerguy:matrix.orgTristan RossI don't have a VM set up22:56:50
10 Nov 2025
@alex:tunstall.xyzAlex
In reply to @rosscomputerguy:matrix.org
I have a system with an ESWIN EIC770X CPU in it. Tried building hello and got an error about bootstrap-tools segfaulting. Seems like patchelf and all of the bootstrap tools don't want to execute.
I haven't seen it mentioned yet so worth a try: have you looked at the kernel log for hints?
16:39:34
@rosscomputerguy:matrix.orgTristan Ross
In reply to @alex:tunstall.xyz
I haven't seen it mentioned yet so worth a try: have you looked at the kernel log for hints?
I looked and the only thing I saw was EDID logging
16:45:43
@rosscomputerguy:matrix.orgTristan Ross
 LD vmlinux
 BTFIDS vmlinux
FAILED elf_update(WRITE): no error
make[2]: *** [../scripts/Makefile.vmlinux:37: vmlinux] Error 255
make[2]: *** Deleting file 'vmlinux'
make[1]: *** [/build/source/Makefile:1165: vmlinux] Error 2
make: *** [../Makefile:234: __sub-make] Error 2

Wtf is this error? I'm trying to build the kernel for this system.

21:45:42

Show newer messages


Back to Room ListRoom Version: 10