| 3 Oct 2023 |
| temp4096 left the room. | 09:49:28 |
| Alex S joined the room. | 15:46:55 |
| pbsds changed their profile picture. | 21:05:01 |
| 4 Oct 2023 |
| pbsds changed their profile picture. | 22:20:48 |
| 5 Oct 2023 |
| Shane on Conduit.rs โก๏ธ left the room. | 13:03:13 |
| h7x4 joined the room. | 15:46:21 |
| 6 Oct 2023 |
| Alex S changed their display name from Alex S to ultra (NixOS integrated with PackageKit wen). | 16:30:04 |
| 8 Oct 2023 |
| oak joined the room. | 16:49:50 |
| 10 Oct 2023 |
| sylvance_theone joined the room. | 06:02:39 |
| 12 Oct 2023 |
| erremilia set a profile picture. | 00:13:18 |
| erremilia removed their profile picture. | 00:14:48 |
| snowone joined the room. | 10:10:34 |
| 13 Oct 2023 |
| josw joined the room. | 08:00:15 |
| 15 Oct 2023 |
| Pratham Patel (you can mention me) changed their display name from Pratham Patel to Pratham Patel (you can mention me). | 07:24:13 |
| 18 Oct 2023 |
| Alex S changed their display name from ultra (NixOS integrated with PackageKit wen) to Alex S. | 10:00:54 |
| 21 Oct 2023 |
fgaz | https://community.milkv.io/t/introducing-the-milk-v-oasis-with-sg2380-a-revolutionary-risc-v-desktop-experience/780
H extension => NixOS tests! | 07:37:19 |
Pratham Patel (you can mention me) | I only see a 100 INR (~1.20 USD) price, obviously because it is a pre-order coupon code. But I don't wanna commit unless I know the final price. Anybody know this? | 07:58:44 |
Pratham Patel (you can mention me) | Ah nevermind, the price is 120 USD. | 08:12:14 |
| 22 Oct 2023 |
fgaz | If anyone has the time, llvm 17 is missing libatomic https://github.com/NixOS/nixpkgs/pull/258614#issuecomment-1773235978 | 09:43:01 |
twz123 | > to avoid bootstrapping
Does anybody have a RISC-V binary cache somewhere? I'm not even able to get cachix compiled. AFAICT GHC can't be bootstrapped on riscv64 and cross compiling doesn't work either (due to Template Haskell stuff not being able to be cross compiled). Only idea that I have currently is to copy the store paths over to other machines on which cachix is available. | 15:28:19 |
Alex | In reply to @twz123:matrix.org > to avoid bootstrapping
Does anybody have a RISC-V binary cache somewhere? I'm not even able to get cachix compiled. AFAICT GHC can't be bootstrapped on riscv64 and cross compiling doesn't work either (due to Template Haskell stuff not being able to be cross compiled). Only idea that I have currently is to copy the store paths over to other machines on which cachix is available. GHC can be bootstrapped, but it's not yet in Nixpkgs haskell-updates.
https://github.com/NixOS/nixpkgs/pull/243619
(Note that there is also an unrelated bug with cross-compiling {cc,binutils}-wrapper that you'll want to fix before building. See first comment.)
As for existing binary caches, there are a few, e.g. https://github.com/misuzu/nixos-vf2/blob/master/flake.nix#L3
Even then, I doubt you'll find much beyond the absolutely necessary tools in these caches. | 15:32:45 |
Alex | Be warned that TH is completely broken on RISC-V in general because GHC has to be built unregistered (see https://gitlab.haskell.org/ghc/ghc/-/issues/23957), and Nixpkgs doesn't have anything in place to make TH work in cross/unregisterised scenarios.
Most Haskell packages can still be built by disabling test suites (when they depend on TH) and overriding Cabal files (when the package uses a multithreaded-only RTS flag). | 15:35:53 |
Alex | * Be warned that TH is completely broken on RISC-V in general because GHC has to be built unregisterised (see https://gitlab.haskell.org/ghc/ghc/-/issues/23957), and Nixpkgs doesn't have anything in place to make TH work in cross/unregisterised scenarios.
Most Haskell packages can still be built by disabling test suites (when they depend on TH) and overriding Cabal files (when the package uses a multithreaded-only RTS flag). | 15:36:05 |
twz123 | In reply to @alex:tunstall.xyz
GHC can be bootstrapped, but it's not yet in Nixpkgs haskell-updates.
https://github.com/NixOS/nixpkgs/pull/243619
(Note that there is also an unrelated bug with cross-compiling {cc,binutils}-wrapper that you'll want to fix before building. See first comment.)
As for existing binary caches, there are a few, e.g. https://github.com/misuzu/nixos-vf2/blob/master/flake.nix#L3
Even then, I doubt you'll find much beyond the absolutely necessary tools in these caches. Thanks. You mean that when trying out the aforementioned PR, I might be able to get GHC compiled? Will try that out. I don't have any idea about Haskell whatsoever, so I'd probably not be able to override anything in the Cabal files. (I can override stuff with doCheck=false though and see if that gets me anywhere ๐). I'll check out cache.ztier.in. It'd already help if only stdenv would be in there. Bootstrapping gcc is no fun ๐ตโ๐ซ. Do you know who maintains that cache? | 15:49:37 |
Alex | In reply to @twz123:matrix.org Thanks. You mean that when trying out the aforementioned PR, I might be able to get GHC compiled? Will try that out. I don't have any idea about Haskell whatsoever, so I'd probably not be able to override anything in the Cabal files. (I can override stuff with doCheck=false though and see if that gets me anywhere ๐). I'll check out cache.ztier.in. It'd already help if only stdenv would be in there. Bootstrapping gcc is no fun ๐ตโ๐ซ. Do you know who maintains that cache? You can get GHC compiled with that. There is some useful information in the PR about how to do it, but the idea is cross-compile from another architecture, copy to RISC-V machine, and use it to compile natively.
Unless you have a very unusually powerful RISC-V system, expect the native build to take over 20 hours (you may be able to make it faster by changing the GHC build flavour). At the moment, it doesn't give much advantage over the cross build, so you could just use that instead.
For overriding Haskell packages, there are some very useful functions in haskell.lib.
For dropping RTS flags, you can use those functions to remove any --with-rtsopts if you get any "unsupported RTS flag" issues (note that some programs might behave strangely with single-threaded RTS).
I'd be very surprised if the binary cache didn't have stdenv when using the same version of Nixpkgs.
I don't know who maintains it, but I'm guessing that whoever added it to the file is responsible (see git blame).
I don't know | 15:59:09 |
Alex | * You can get GHC compiled with that. There is some useful information in the PR about how to do it, but the idea is cross-compile from another architecture, copy to RISC-V machine, and use it to compile natively.
Unless you have a very unusually powerful RISC-V system, expect the native build of GHC to take over 20 hours (you may be able to make it faster by changing the GHC build flavour). At the moment, it doesn't give much advantage over the cross build, so you could just use that instead.
For overriding Haskell packages, there are some very useful functions in haskell.lib.
For dropping RTS flags, you can use those functions to remove any --with-rtsopts if you get any "unsupported RTS flag" issues (note that some programs might behave strangely with single-threaded RTS).
I'd be very surprised if the binary cache didn't have stdenv when using the same version of Nixpkgs.
I don't know who maintains it, but I'm guessing that whoever added it to the file is responsible (see git blame).
I don't know | 15:59:31 |
Alex | * You can get GHC compiled with that. There is some useful information in the PR about how to do it, but the idea is cross-compile from another architecture, copy to RISC-V machine, and use it to compile natively.
Unless you have a very unusually powerful RISC-V system, expect the native build of GHC to take over 20 hours (you may be able to make it faster by changing the GHC build flavour). At the moment, it doesn't give much advantage over the cross build, so you could just use that instead.
For overriding Haskell packages, there are some very useful functions in haskell.lib.
For dropping RTS flags, you can use those functions to remove any --with-rtsopts if you get any "unsupported RTS flag" issues (note that some programs might behave strangely with single-threaded RTS).
I'd be very surprised if the binary cache didn't have stdenv when using the same version of Nixpkgs.
I don't know who maintains it, but I'm guessing that whoever added it to the file is responsible (see git blame). | 16:00:13 |
fgaz | In reply to @twz123:matrix.org
to avoid bootstrapping
Does anybody have a RISC-V binary cache somewhere? I'm not even able to get cachix compiled. AFAICT GHC can't be bootstrapped on riscv64 and cross compiling doesn't work either (due to Template Haskell stuff not being able to be cross compiled). Only idea that I have currently is to copy the store paths over to other machines on which cachix is available. I include a bunch of packages, including all stdenv stages, in my star64 images https://sr.ht/~fgaz/nixos-star64 | 16:32:22 |
| 23 Oct 2023 |
| SomeoneSerge (migrating synapse) changed their display name from Someone (UTC+3) to SomeoneSerge (UTC+1). | 09:07:34 |
| 25 Oct 2023 |
| Federico Damiรกn Schonborn changed their profile picture. | 00:12:28 |