!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

241 Members
NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux 74 Servers

Load older messages


SenderMessageTime
24 Jun 2024
@joerg:thalheim.ioMic92nix-community.cachix.org will than also cache some core-components for cross compiling NixOS from x86 to riscv64.13:29:20
@thefossguy:matrix.orgPratham Patel (you can mention me)*we've come13:29:20
@0x4a6f:matrix.org[0x4A6F]Currently not near my devices. But it is build and I will check soonish.14:04:18
@hive:the-apothecary.clubtauphi changed their profile picture.23:17:28
25 Jun 2024
@rosscomputerguy:matrix.orgTristan Ross
In reply to @joerg:thalheim.io
nix-community.cachix.org will than also cache some core-components for cross compiling NixOS from x86 to riscv64.
What about cross compiling from aarch64 to riscv64?
04:20:53
@cnx:loang.netcnxwhy x86 and aarch64 when amd64 chips with good single thread perf are much more common?09:34:12
@alex:tunstall.xyzAlex
In reply to @cnx:loang.net
why x86 and aarch64 when amd64 chips with good single thread perf are much more common?
I'm pretty sure amd64 is what Mic was referring to when they said "x86".
10:48:28
@alex:tunstall.xyzAlexIt's quite a common way of referring to the whole family of x86_64 ISAs.10:49:39
@thefossguy:matrix.orgPratham Patel (you can mention me)
In reply to @joerg:thalheim.io
We are just one pull request away from having our first image for nixos-anywhere: https://github.com/NixOS/nixpkgs/pull/321991
just tried building an iso from an x86 machine and was reminded of https://github.com/NixOS/nixpkgs/issues/231537
13:19:29
@thefossguy:matrix.orgPratham Patel (you can mention me)any idea on the blockers on this? maybe I could help?13:19:44
@thefossguy:matrix.orgPratham Patel (you can mention me)on rev: 4c547b66635455ad061d4beecaf1805810dc042813:20:24
@joerg:thalheim.ioMic92 Pratham Patel (you can mention me): do you have any VM or hardware that has a kernel with kexec enabled? 13:20:29
@thefossguy:matrix.orgPratham Patel (you can mention me)I'm on an x86 machine, the VF2 is "away" for the time being13:20:58
@joerg:thalheim.ioMic92We don't build isos in this pull request yet.13:21:02
@joerg:thalheim.ioMic92
In reply to @thefossguy:matrix.org
I'm on an x86 machine, the VF2 is "away" for the time being
Ok. I have x86. I can potentially spin up some scaleway riscv64 machine.
13:21:39
@thefossguy:matrix.orgPratham Patel (you can mention me)I realize that. What I'm asking is if you had a list of blockers for bootstrapping riscv64 GHC on x8613:21:40
@joerg:thalheim.ioMic92Not sure when I get to it.13:21:43
@alex:tunstall.xyzAlexIf you're not building any Haskell packages on purpose, you should try disabling ShellCheck (by default, it is used to check all shell scripts).13:21:46
@joerg:thalheim.ioMic92
In reply to @thefossguy:matrix.org
I realize that. What I'm asking is if you had a list of blockers for bootstrapping riscv64 GHC on x86
Ah. There it's basically ghc not publishing bootstrap binaries afaik.
13:22:10
@joerg:thalheim.ioMic92Yes. Disabling shellcheck is the way to go.13:22:31
@alex:tunstall.xyzAlex
In reply to @thefossguy:matrix.org
I realize that. What I'm asking is if you had a list of blockers for bootstrapping riscv64 GHC on x86
Nixpkgs generally relies on upstream bindists, but there are a few (as-of-yet unmerged?) PRs to also make it possible to bootstrap via cross.
13:22:33
@joerg:thalheim.ioMic92Can we not also upload our own cross-compiled ghc binary tarball?13:23:19
@joerg:thalheim.ioMic92to tarballs.nixos.org?13:23:24
@thefossguy:matrix.orgPratham Patel (you can mention me)I'm not sure. Only now starting to understand Nix after being 1+ years in the Nix ecosystem lol13:23:57
@thefossguy:matrix.orgPratham Patel (you can mention me)Okay, my custom minimal ISO started building :)13:24:25
@alex:tunstall.xyzAlex
In reply to @joerg:thalheim.io
Can we not also upload our own cross-compiled ghc binary tarball?

That is definitely worth discussing with the Nixpkgs maintainers, but it'd be easier once the changes that enable cross-compilation of GHC are merged.

The PRs that enable it also add x86_64 -> riscv64 cross-compilation to Hydra to catch regressions.

13:24:49
@alex:tunstall.xyzAlexSo once the changes are merged, the Hydra build could be downloaded and packaged into a tarball to bootstrap native builds (or, more likely, used to package a complete native build).13:26:05
@joerg:thalheim.ioMic92Also sounds good to me.13:26:24
@alex:tunstall.xyzAlex

The newest PR for this is: https://github.com/NixOS/nixpkgs/pull/305392

(It works already, but I think sterni might want to make a few changes before it is merged?)

13:27:50
@axiomss:matrix.orgaxiomss joined the room.21:57:12

Show newer messages


Back to Room ListRoom Version: 10