!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

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

Load older messages


SenderMessageTime
6 Jan 2025
@alex:tunstall.xyzAlex
In reply to @rosscomputerguy:matrix.org
https://github.com/RossComputerGuy/dotfiles/blob/master/flake.nix#L213-L215
Using nix flake metadata, I count 5 versions of Nixpkgs amongst your inputs (2 of which are coincidentally the same).
00:26:37
@rosscomputerguy:matrix.orgTristan Ross Does that matter when you use overlays only and don't use packages or legacyPackages of the inputs? 00:29:27
@alex:tunstall.xyzAlex

I don't think so.

Unfortunately I have no idea how to profile Nix evaluations... I've always been able to just throw more RAM at the problem (since it's only been a problem in VMs for me so far).

00:30:35
@rosscomputerguy:matrix.orgTristan RossYeah, I'm not sure how to profile evals too00:31:06
@rosscomputerguy:matrix.orgTristan RossIt would really help if I knew how to for some of my other projects lol00:31:27
@alex:tunstall.xyzAlex I guess the old binary search trick could work...
Remove half of the code and see how it affects memory usage.
Then focus your search onto the more memory-consuming half and repeat.
00:35:54
@rosscomputerguy:matrix.orgTristan Rosshttps://github.com/RossComputerGuy/dotfiles/runs/35174538512 huh the x86_64-linux cross is able to evail within Garnix's 5GB limit but the full system cannot00:37:51
@rosscomputerguy:matrix.orgTristan Ross * https://github.com/RossComputerGuy/dotfiles/runs/35174538512 huh the x86_64-linux cross is able to eval within Garnix's 5GB limit but the full system cannot 00:37:57
@blitz:chat.x86.lol@blitz:chat.x86.lol
In reply to @alex:tunstall.xyz
I guess the old binary search trick could work...
Remove half of the code and see how it affects memory usage.
Then focus your search onto the more memory-consuming half and repeat.
Memory usage is one of the major pain points of Nix. 😞
01:03:36
@rosscomputerguy:matrix.orgTristan Ross
error:
       … while calling the 'head' builtin
         at /nix/store/i0h8hf708hppbk070zsksgqm2k95rxpr-source/lib/attrsets.nix:1574:11:
         1573|         || pred here (elemAt values 1) (head values) then
         1574|           head values
             |           ^
         1575|         else

       … while evaluating the attribute 'value'
         at /nix/store/i0h8hf708hppbk070zsksgqm2k95rxpr-source/lib/modules.nix:816:9:
          815|     in warnDeprecation opt //
          816|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          817|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `system.build.toplevel':

       … while evaluating definitions from `/nix/store/i0h8hf708hppbk070zsksgqm2k95rxpr-source/nixos/modules/system/activation/top-level.nix':

       … while evaluating the option `system.systemBuilderArgs':

       … while evaluating definitions from `/nix/store/i0h8hf708hppbk070zsksgqm2k95rxpr-source/nixos/modules/system/activation/activatable-system.nix':

       … while evaluating the option `system.activationScripts.etc.text':

       … while evaluating definitions from `/nix/store/i0h8hf708hppbk070zsksgqm2k95rxpr-source/nixos/modules/system/etc/etc-activation.nix':

       … while evaluating definitions from `/nix/store/i0h8hf708hppbk070zsksgqm2k95rxpr-source/nixos/modules/system/etc/etc.nix':

       … while evaluating the option `environment.etc."NetworkManager/VPN/nm-openconnect-service.name".source':

       … while evaluating definitions from `/nix/store/i0h8hf708hppbk070zsksgqm2k95rxpr-source/nixos/modules/services/networking/networkmanager.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: cannot bootstrap GHC on this platform ('riscv64-linux' with libc 'defaultLibc')

I cannot find where this etc file is defined lol

02:02:49
@rosscomputerguy:matrix.orgTristan RossOh, it's inside the derivation02:04:15
@rosscomputerguy:matrix.orgTristan RossWebkit requires GHC somewhere and it throws that error, I know there's a way to get around that but just trying to get the system to build purely02:05:09
@rosscomputerguy:matrix.orgTristan RossOh, shellcheck is required which uses GHC02:08:01
@rosscomputerguy:matrix.orgTristan Ross* Oh, shellcheck is required which uses GHC deep in the chain02:08:13
@rosscomputerguy:matrix.orgTristan Rosshttps://github.com/NixOS/nixpkgs/pull/362868 didn't get into 24.1102:14:24
@rosscomputerguy:matrix.orgTristan RossOh, it doesn't matter that it isn't in 24.11 because that doesn't work.02:22:31
@thefossguy:matrix.orgPratham Patel (you can mention me)The root of the problem is this https://github.com/NixOS/nixpkgs/issues/23153703:28:59
@thefossguy:matrix.orgPratham Patel (you can mention me)You can cross compile ghc for rv64 but cannot bootstrap it natively (yet)03:29:24
@rosscomputerguy:matrix.orgTristan RossYeah, I was looking at the issue03:34:49
@rosscomputerguy:matrix.orgTristan RossThe problem is there's code to disable shellcheck on incompatible problems03:35:04
@rosscomputerguy:matrix.orgTristan RossAnd the problem is that check does not work03:35:12
@rosscomputerguy:matrix.orgTristan Ross nixos-unstable should have it, I pointed the config to that and yet it still errors 03:38:33
@rosscomputerguy:matrix.orgTristan RossOk, master branch works03:46:50
@rosscomputerguy:matrix.orgTristan RossWait, is the nixpkgs issue tracker wrong lol? It says the PR made it through fully03:48:47
@rosscomputerguy:matrix.orgTristan RossYay, we've gotten passed eval. Now time for like 2 weeks of compiling.03:55:44
@spd:robonomics.networkspd joined the room.15:40:46
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

Show newer messages


Back to Room ListRoom Version: 10