!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

201 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-v59 Servers

Load older messages


SenderMessageTime
20 Nov 2025
@user12592851:matrix.orgJohn joined the room.06:25:18
23 Nov 2025
@kwinz:matrix.orgkwinz joined the room.09:32:15
@kwinz:matrix.orgkwinzI am having trouble nixos-rebuild switching to a minimal configuration on the visionfive 2, with nixos unstable because it tried to build GO and fails09:33:27
@kwinz:matrix.orgkwinz
default PIE binary requires external (cgo) linking, but cgo is not enabled go tool dist: FAILED: /build/go/pkg/tool/linux_riscv64/go_bootstrap install -pgo=off cmd/asm cmd/cgo cmd/compile cmd/link cmd/preprofile: exit status 1 error: builder for '/nix/store/sq3k3fm38lcikh10418m2vspr4iqs3wv-go-1.24.10.drv' failed with exit code 2 error: 1 dependencies of derivation '/nix/store/623nsp9xpgrzp9d5rx79dvr437jyhxwq-libcap-2.76.drv' failed to build error: 1 dependencies of derivation '/nix/store/gwkgb1s92mcmaf8vknjjc45rs6flbdap-systemd-minimal-libs-258.1.drv' failed to build error: 1 dependencies of derivation '/nix/store/66b4d7pwiwq10igd6x2p9yicvvifws53-util-linux-2.41.2.drv' failed to build error: 1 dependencies of derivation '/nix/store/yxna0a4ala8sjzc9a12drcbipxaawscc-nix-functional-tests-2.31.2.drv' failed to build error: 1 dependencies of derivation '/nix/store/kzswcyjmbcmdwlg3g083kkrfzjzzys2q-nix-2.31.2.drv' failed to build error: 1 dependencies of derivation '/nix/store/xy200574psldq0rh0yqs47nypqnjf0kp-nixos-rebuild-ng-25.11.drv' failed to build
09:34:23
@kwinz:matrix.orgkwinz* I am having trouble nixos-rebuild switching to a minimal configuration on the visionfive 2, with nixos unstable because it tries to build GO and fails09:35:28
@dramforever:matrix.orgdramforeverit will be fixed when this lands https://github.com/NixOS/nixpkgs/pull/45886710:05:26
@rosscomputerguy:matrix.orgTristan Ross
In reply to @kwinz:matrix.org
I am having trouble nixos-rebuild switching to a minimal configuration on the visionfive 2, with nixos unstable because it tried to build GO and fails
Yeah been running into the same problem
17:12:27
@rosscomputerguy:matrix.orgTristan Ross
In reply to @dramforever:matrix.org
it will be fixed when this lands https://github.com/NixOS/nixpkgs/pull/458867
Oh that's good
17:12:32
@rosscomputerguy:matrix.orgTristan RossWait, is this a part of the problem where PIE just doesn't work on RISC-V because the flag isn't set?17:16:46
@rosscomputerguy:matrix.orgTristan Ross* Wait, is this a part of the problem where PIE just doesn't work on RISC-V because the flag isn't set in the ELF executable?17:17:06
@dramforever:matrix.orgdramforever
In reply to @rosscomputerguy:matrix.org
Wait, is this a part of the problem where PIE just doesn't work on RISC-V because the flag isn't set in the ELF executable?
"what flag"
18:51:09
@dramforever:matrix.orgdramforever okay at one point static pie didn't work on riscv*-linux but that should be fixed now. i think 18:51:32
@rosscomputerguy:matrix.orgTristan Ross
In reply to @dramforever:matrix.org
"what flag"
I think it's DF_1_PIE
18:56:22
@rosscomputerguy:matrix.orgTristan Ross
In reply to @dramforever:matrix.org
okay at one point static pie didn't work on riscv*-linux but that should be fixed now. i think
When was it fixed?
18:56:40
@rosscomputerguy:matrix.orgTristan Ross Because I did run into the problem like 2 weeks ago 18:56:57
@dramforever:matrix.orgdramforeveroh hmm interesting20:22:10
@dramforever:matrix.orgdramforeveri didn't think it mattered?20:22:26
@dramforever:matrix.orgdramforeverdo you mean a go program?20:22:38
@rosscomputerguy:matrix.orgTristan RossGCC & patchelf in the bootstrap-tools20:25:30
@rosscomputerguy:matrix.orgTristan RossBut the go error is preventing me from building for the system lol20:25:49
@dramforever:matrix.orgdramforeverwasn't that a non-pie problem?20:26:38
@rosscomputerguy:matrix.orgTristan RossGCC has a PIE address but the flag in the ELF header isn't set20:26:58
@rosscomputerguy:matrix.orgTristan Ross So vm.mmap_min_addr is higher than the PHDR address 20:27:09
@rosscomputerguy:matrix.orgTristan RossWhich causes the kernel to fail the mmap of the PHDR20:27:21
@rosscomputerguy:matrix.orgTristan RossPatchelf was fixed at some point and that one fixes itself after updating the bootstrap-tools but GCC is still broken20:28:06
@dramforever:matrix.orgdramforeverno no no a normal PIE would start at address 020:29:05
@dramforever:matrix.orgdramforeverthat one has file type ET_EXEC20:29:16
@dramforever:matrix.orgdramforeverpies have ET_DYN but also DF_1_PIE20:29:34
@rosscomputerguy:matrix.orgTristan Ross The PHDR starts at 0xf000 but the vm.mmap_min_addr is 65535 20:29:38
@dramforever:matrix.orgdramforeverwhy do you think it's a pie20:29:58

Show newer messages


Back to Room ListRoom Version: 10