!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

347 Members
109 Servers

Load older messages


SenderMessageTime
7 Jun 2023
@alex:tunstall.xyzAlex
In reply to @fgaz:matrix.org
Nix got a lot harder to compile than last time I tried. Lots of new dependencies with strict version requirements

I don't know if you're still struggling with it, but I've had great success cross-compiling the binary tarball for 2.16.1 on x86_64, copy it to the host, then extract and run as usual. It's been easier than trying to debug confusing autoreconf errors or figure out what Debian packages provide the needed libraries. (Though for some reason the nix commands only work for me when executed as root.)

You'll need to add riscv64 to the cross-compilation targets in the flake.nix for Nix (the package manager), then build hydraJobs.binaryTarballCross.x86_64-linux.riscv64-linux. Depending on your OS (my SBC is currently on Debian Sid), you may also need to add sandbox = false and/or filter-syscalls = false to /etc/nix/nix.conf.

10:42:24
@fgaz:matrix.orgfgaz In the end I managed to compile it (thanks Alyssa Ross for the hint about busybox btw) 10:44:51
@fgaz:matrix.orgfgazMy current blocker is [this](https://github.com/NixOS/nixpkgs/pull/236420) (llvm 15 won't build on riscv)10:48:26
@fgaz:matrix.orgfgaz
In reply to @raitobezarius:matrix.org
No but it'd be nice to organize ourselves to build it :-)
Maybe Domen can help, like with nix-community
10:52:09
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @fgaz:matrix.org
My current blocker is this (llvm 15 won't build on riscv)
Hmm, at least building natively worked fine last I tried
19:16:42
@zhaofeng:zhaofeng.liZhaofeng Li(it's been a while since I touched RISC-V stuff)19:17:01
@fgaz:matrix.orgfgaz
In reply to @zhaofeng:zhaofeng.li
Hmm, at least building natively worked fine last I tried
I was getting some missing register symbols or something
19:18:07
@raitobezarius:matrix.orgraitobezarius
In reply to @fgaz:matrix.org
Maybe Domen can help, like with nix-community
I mean, we can definitely use cachix as a storage layer
20:34:23
@raitobezarius:matrix.orgraitobezarius
In reply to @fgaz:matrix.org
Maybe Domen can help, like with nix-community
* I mean, we can definitely use cachix as a storage layer + distribution layer
20:34:26
@raitobezarius:matrix.orgraitobezariusBut we need a Hydra instance and remote builders "we trust"20:34:38
@fgaz:matrix.orgfgazUntil we have that we can just coordinate through a nixpkgs branch and push whatever we have. I bet that alone would save a lot of build time20:49:49
@genericnerdyusername:matrix.orgGenericNerdyUsername
In reply to @fgaz:matrix.org
My current blocker is [this](https://github.com/NixOS/nixpkgs/pull/236420) (llvm 15 won't build on riscv)
do you need rust if you build without docs?
23:16:55
8 Jun 2023
@alex:tunstall.xyzAlex
In reply to @genericnerdyusername:matrix.org
do you need rust if you build without docs?
According to a quick why-depends on an x86_64 Nix, no.
01:50:25
@alex:tunstall.xyzAlex
In reply to @genericnerdyusername:matrix.org
do you need rust if you build without docs?
I added an overlay to disable building Nix's documentation and now I don't have to build LLVM and rustc, so the answer is definitely no. Thanks for the tip.
01:57:38
@fgaz:matrix.orgfgaz
In reply to @genericnerdyusername:matrix.org
do you need rust if you build without docs?
I built without docs for bootstrap, but now I want a full build if possibke
04:51:33
@fgaz:matrix.orgfgazAlso having rust is nice04:51:51
@misuzu:matrix.orgmisuzu
In reply to @zhaofeng:zhaofeng.li
Hmm, at least building natively worked fine last I tried
It is, except for gnu-efi
08:42:57
@misuzu:matrix.orgmisuzuI've a native binary cache for https://github.com/NixOS/nixpkgs/commit/f91ee3065de91a3531329a674a45ddcb3467a65008:44:15
10 Jun 2023
@skyrgobbler:matrix.orgskyrgobbler joined the room.17:08:44
13 Jun 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.org joined the room.04:53:46
@federicodschonborn:matrix.org@federicodschonborn:matrix.org changed their profile picture.20:55:36
14 Jun 2023
@raphi:tapesoftware.netraphi changed their display name from raphi (element unread channel fix when) to raphi.07:03:16
@j4:matrix.orgj4m3s joined the room.12:17:46
15 Jun 2023
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ& trying to get my visionfive 2 (rev 1.3b) to netboot and it seems to lose connectivity as soon as it mounts an nfs partition with a configuration based on misuzu’s, can someone see if there’s something obviously wrong in my config? 18:07:21
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&

how do you boot nixos from an nfs export? Relevant config: https://git.chir.rs/darkkirb/nixos-config/src/commit/0c3abc30d0dff4ff3df0f34c22194ca190dc7d39/config/vf2.nix#L135-L147 https://git.chir.rs/darkkirb/nixos-config/src/commit/0c3abc30d0dff4ff3df0f34c22194ca190dc7d39/config/vf2.nix#L118-L120

The error i’m encountering is this:

mounting 192.168.2.1:/export/vf2 on /...
mount: mounting 192.168.2.1:/export/vf2 on /mnt-root failed: Invalid argument

the same mount options do work after boot, and the boot seems to just hang at the point

18:07:36
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&yeah, udhcp has acquired an ip address18:07:42
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&server output: https://thermalpaste.technogothic.net/p/lBoLIA.txt18:07:51
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&
Gstarting device mapper and LVM...
mounting 192.168.2.1:/export/vf2 on /...
mount: mounting 192.168.2.1:/export/vf2 on /mnt-root failed: Invalid argument
[   38.487202] starfive-dwmac 16030000.ethernet end0: Link is Down
18:07:55
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ&

a few minutes later it says

[  218.085919] nfs: server 192.168.2.1 not responding, still trying
[  279.525845] nfs: server 192.168.2.1 not responding, timed out
18:08:00
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ& (originally asked it in #nix:nixos.org 18:08:16

Show newer messages


Back to Room ListRoom Version: 6