!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

236 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-v71 Servers

Load older messages


SenderMessageTime
7 Jan 2025
@xin:xiny.lixin joined the room.07:42:18
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) joined the room.11:41:55
@alex:tunstall.xyzAlex
In reply to @rosscomputerguy:matrix.org
And the problem is that check does not work

I "broke" the check when I added support for cross-compiling GHC.

All you need to do is override the default GHC to disable building it for the RISC-V platform such that the check functions as originally intended.

22:22:06
@rosscomputerguy:matrix.orgTristan Ross
In reply to @alex:tunstall.xyz

I "broke" the check when I added support for cross-compiling GHC.

All you need to do is override the default GHC to disable building it for the RISC-V platform such that the check functions as originally intended.

Oh... fun
22:25:02
@rosscomputerguy:matrix.orgTristan Ross Well it's been building for 50 hours at this point so it's doing fine 22:25:23
@rosscomputerguy:matrix.orgTristan RossI estimate another 40 hours to go22:26:55
9 Jan 2025
@rosscomputerguy:matrix.orgTristan Ross
error: builder for '/nix/store/ra18qbxfgr6a2ydln4ja4i56qqql9jai-bpftools-6.12.drv' failed with exit code 1;
       last 25 log lines:
       > Auto-detecting system features:
       > ...                                  libbfd: [ on  ]
       >
       >   DESCEND bpftool
       >
       > Auto-detecting system features:
       > ...                         clang-bpf-co-re: [ OFF ]
       > ...                                    llvm: [ OFF ]
       > ...                                  libcap: [ OFF ]
       > ...                                  libbfd: [ on  ]切断 | ttyUSB0                                                                                                           >
       >   MKDIR   /build/linux-6.12/tools/bpf/bpftool/libbpf/
       >   GEN     /build/linux-6.12/tools/bpf/bpftool/libbpf/bpf_helper_defs.h
       >   CC      /build/linux-6.12/tools/bpf/bpftool/libbpf/staticobjs/libbpf.o
       > In file included from /build/linux-6.12/tools/include/asm/barrier.h:12,
       >                  from /build/linux-6.12/tools/include/linux/ring_buffer.h:4,
       >                  from libbpf.c:37:
       > /build/linux-6.12/tools/include/asm/../../arch/riscv/include/asm/barrier.h:13:10: fatal error: asm/fence.h: No such file or directory
       >    13 | #include <asm/fence.h>
       >       |          ^~~~~~~~~~~~~
       > compilation terminated.
       > make[3]: *** [/build/linux-6.12/tools/build/Makefile.build:106: /build/linux-6.12/tools/bpf/bpftool/libbpf/staticobjs/libbpf.o] Error 1
       > make[2]: *** [Makefile:164: /build/linux-6.12/tools/bpf/bpftool/libbpf/staticobjs/libbpf-in.o] Error 2
       > make[1]: *** [Makefile:46: /build/linux-6.12/tools/bpf/bpftool/libbpf/libbpf.a] Error 2
       > make: *** [Makefile:113: bpftool] Error 2
       For full logs, run 'nix log /nix/store/ra18qbxfgr6a2ydln4ja4i56qqql9jai-bpftools-6.12.drv'.

Fun

17:57:13
@rosscomputerguy:matrix.orgTristan Rosshttps://github.com/NixOS/nixpkgs/pull/371240 oh17:57:47
@alex:tunstall.xyzAlex

切断 | ttyUSB0

This isn't actually in the build logs, is it? ("Disconnected" in ja_JP locale?)

18:02:23
@rosscomputerguy:matrix.orgTristan RossThat's Chinese18:05:36
@rosscomputerguy:matrix.orgTristan RossAnd this is over serial so I think there's some clobbering of data18:05:46
@rosscomputerguy:matrix.orgTristan RossIdk how Chinese text got in aside from some earlier logs from lua-language-server failing to build and it prints its unit tests in Chinese18:06:59
@rosscomputerguy:matrix.orgTristan RossI pulled in that bpftools fix into my Flake and looks like it's working? I'm not sure until I have significant progress in this rerun of the builds.18:08:13
@rosscomputerguy:matrix.orgTristan Ross592 builds to go18:08:20
@alex:tunstall.xyzAlex
In reply to @rosscomputerguy:matrix.org
That's Chinese
Impossible to tell them apart because of the way Unicode was designed.
19:04:42
@rosscomputerguy:matrix.orgTristan RossRip, openexr failed tests due to 1 test timing out19:45:13
@alex:tunstall.xyzAlex
In reply to @rosscomputerguy:matrix.org
Rip, openexr failed tests due to 1 test timing out

This unfortunately happens for some packages. Commonly available RISC-V cores can be far slower than the heavily optimised and mature x86 platforms that often set the timings.

You could report the issue upstream, but for now disabling checks is an easy solution. It could even save hours of building if you do it pervasively.

21:20:48
@rosscomputerguy:matrix.orgTristan Ross
In reply to @alex:tunstall.xyz

This unfortunately happens for some packages. Commonly available RISC-V cores can be far slower than the heavily optimised and mature x86 platforms that often set the timings.

You could report the issue upstream, but for now disabling checks is an easy solution. It could even save hours of building if you do it pervasively.

Yeah... I'm kinda aware of that. Hopefully someday we get more performant systems.
21:22:08
@alex:tunstall.xyzAlex

Emulated builds (e.g. via binfmt) also struggle with the problem.

Access to clocks and timings interferes with reproducibility, but they are very difficult system calls to take away.

21:24:54
@rosscomputerguy:matrix.orgTristan RossUnfortunately, I cannot do emulated builds because those don't work with a page size larger than 4k.23:13:05
@rosscomputerguy:matrix.orgTristan RossI've gotten things like bus errors with just running ls23:13:20
10 Jan 2025
@lab.8916100448256:matrix.org12b joined the room.16:23:35
@fgaz:matrix.orgfgaz
In reply to @rosscomputerguy:matrix.org
Rip, openexr failed tests due to 1 test timing out
I think I increased the timeout of that package already
22:38:49
@fgaz:matrix.orgfgazlike months ago22:38:52
@fgaz:matrix.orgfgaz try building with --max-jobs 1 --cores 1 22:39:10
@rosscomputerguy:matrix.orgTristan RossYeah lol, it's timing out by like half a second22:39:32
@rosscomputerguy:matrix.orgTristan RossBut I'm past that now22:39:46
@rosscomputerguy:matrix.orgTristan RossPython stuff is building22:39:55
@rosscomputerguy:matrix.orgTristan Ross459 derivations left22:40:11
@fgaz:matrix.orgfgaz https://github.com/NixOS/nixpkgs/blob/61b77b92ab78c6c4eed66823ef619a1cbe0337c4/pkgs/development/libraries/openexr/default.nix#L54-L55 22:40:13

Show newer messages


Back to Room ListRoom Version: 10