!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

345 Members
106 Servers

Load older messages


SenderMessageTime
15 Jan 2022
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @zhaofeng:zhaofeng.li
Vanilla Firefox is buildable after a simple patch to authenticator-rs to add RISC-V support. I wasn't able to build node.js natively (stuck on node_mksnapshot) which is used in the build process, so I cheated a little bit by using the X86 version of node.js.
(Actually built through binfmt on x86, since I did the nodejs trick 😛)
18:30:24
@hexa:lossy.networkhexai'd rather have riscv support in common.nix than darwin fwiw 😀18:30:59
@0x4a6f:matrix.org[0x4A6F]About binfmt, how did you set this up for riscv64-linux?18:41:01
@zhaofeng:zhaofeng.liZhaofeng LiJust boot.binfmt.emulatedSystems = [ "riscv64-linux" ]; works fine18:41:33
@0x4a6f:matrix.org[0x4A6F]Doesn't work for one of my system. still investigating. aarch64-linux works though.18:43:07
@zhaofeng:zhaofeng.liZhaofeng LiDo you see the binfmt_misc registrations in /proc/sys/fs/binfmt_misc at all?18:44:13
@0x4a6f:matrix.org[0x4A6F]Just a problem in my deployment..Works now.18:54:30
@sternenseemann:systemli.orgsterni Zhaofeng Li: so a downstream native stdenv? 19:10:00
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @sternenseemann:systemli.org
Zhaofeng Li: so a downstream native stdenv?
Not anymore, since riscv64-linux stdenv got merged in https://github.com/NixOS/nixpkgs/pull/147942
19:12:01
@sternenseemann:systemli.orgsterniuhh missed that nice :)19:44:01
16 Jan 2022
@zhaofeng:zhaofeng.liZhaofeng LiIn case you want to try out Firefox and SuperTuxKart on RISC-V NixOS yourself, there is now a new graphical QEMU image: https://github.com/zhaofengli/nixos-riscv64/releases/tag/202201150004:58:11
@zhaofeng:zhaofeng.liZhaofeng LiWith Virtio-GPU + VirGL (use the included launch.sh), SuperTuxKart is pretty playable with some texture glitches04:59:44
@ius:nltrix.netius Zhaofeng Li: re binfmt builds, have you run into any qemu issues? boehm-gcs testsuite seems to ~reliably cause qemu-user to disintegrate 22:02:31
@ius:nltrix.netius
ERROR:../plugins/core.c:222:qemu_plugin_vcpu_init_hook: assertion failed: (success)
Bail out! ERROR:../plugins/core.c:222:qemu_plugin_vcpu_init_hook: assertion failed: (success)
Child process failed, status= 0x7f00
Test failed
FAIL gctest (exit status: 134)

(on nixos-unstable, riscv64)

22:03:07
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @ius:nltrix.net
ERROR:../plugins/core.c:222:qemu_plugin_vcpu_init_hook: assertion failed: (success)
Bail out! ERROR:../plugins/core.c:222:qemu_plugin_vcpu_init_hook: assertion failed: (success)
Child process failed, status= 0x7f00
Test failed
FAIL gctest (exit status: 134)

(on nixos-unstable, riscv64)

Hmm, binfmt is pretty janky and it could be one of the packages that don't work. Let me try from my end
22:04:15
@ius:nltrix.netiuslooks like some kind of threading issue, and I'm not the first to notice: https://lists.gnu.org/archive/html/qemu-devel/2020-04/msg03004.html22:07:41
@zhaofeng:zhaofeng.liZhaofeng LiHmm, it builds fine for me (qemu 6.1.0): https://gist.github.com/zhaofengli/95eb2948deda98b6d8f2854bdf24c24f22:08:27
@zhaofeng:zhaofeng.liZhaofeng Li(this is under binfmt)22:08:38
@ius:nltrix.netiusSame qemu ver for me, failed 3 times in a row.22:24:11
@ius:nltrix.netiusSometimes on a different test, so I guess there's some bad luck involved ;)22:24:33
@ius:nltrix.netiusWell, patching the assert out works for me 🤷‍♂️22:36:24
18 Jan 2022
@ius:nltrix.netius Zhaofeng Li: I've built some more and see similar wonkyness in aws-common-c and llvm tests - are you running those tests & are they okay for you using binfmt? 19:26:33
@ius:nltrix.netiusI'm confused how all these tests suggest it's extremely broken, yet the toolchain seems fine19:31:33
@ius:nltrix.netius 43% tests passed, 222 tests failed out of 389 19:34:31
@zhaofeng:zhaofeng.liZhaofeng LiFor aws-c-common, see https://github.com/zhaofengli/nixpkgs/commit/4f80543ea818b0e833756619d8484d245ec7477a and https://github.com/awslabs/aws-c-common/pull/87319:36:09
@zhaofeng:zhaofeng.liZhaofeng Li And for LLVM, the tests need to be disabled for the time being. Some of the issues are being tracked upstream. 19:36:58
@ius:nltrix.netiusThanks, again23:39:30
20 Jan 2022
@andi:kack.itandi- left the room.00:09:30
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @ius:nltrix.net
Zhaofeng Li: re binfmt builds, have you run into any qemu issues? boehm-gcs testsuite seems to ~reliably cause qemu-user to disintegrate
Ok, I just rebased my branch against master and can confirm that I see the same thing
02:12:44
@ius:nltrix.netiusLet me know if you figure out why, otherwise I might look at it (maybe in a bit)17:38:34

Show newer messages


Back to Room ListRoom Version: 6