!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

206 Members
NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux https://github.com/orgs/NixOS/teams/risc-v62 Servers

Load older messages


SenderMessageTime
25 Apr 2025
@dramforever:matrix.orgdramforeverunwrapped clang is (L, L, *)05:36:27
@dramforever:matrix.orgdramforeverwhich is why when you cross using llvm you don't rebuild the entire clang05:36:41
@dramforever:matrix.orgdramforeverbut wrapped clang is (L, L, C) because it has the libc and stuff wrapped in it05:37:13
@outfoxxed:outfoxxed.meoutfoxxedok that makes sense thanks05:37:28
@dramforever:matrix.orgdramforever if we're actually trying to get pkgs.gcc, then we need to keep going because we want to have a gcc that runs on C 05:42:40
@dramforever:matrix.orgdramforeverso using that (L, L, C) gcc we build a (L, C, C) gcc, and wrap that with the (L, C, *) glibc to create a (L, C, C) gcc wrapper05:43:04
@dramforever:matrix.orgdramforever now this is as far as the whole process goes in nixpkgs 05:43:23
@outfoxxed:outfoxxed.meoutfoxxedat this point we dont care about B, so just (*, C, C) right05:43:40
@dramforever:matrix.orgdramforevereverything in nixpkgs has the same b05:44:36
@outfoxxed:outfoxxed.meoutfoxxedok that also makes sense05:45:08
@outfoxxed:outfoxxed.meoutfoxxedunless you override stdenv it wont go through QEMU or anything05:45:24
@dramforever:matrix.orgdramforever

so the way this works is

^ going up, buildPackages

    l l l
      l l c
        l c c   <- pkgs

v going down, targetPackages
05:46:56
@dramforever:matrix.orgdramforever *

so the way buildPackages and targetPackages works is

^ going up, buildPackages

    l l l
      l l c
        l c c   <- pkgs

v going down, targetPackages
05:47:10
@outfoxxed:outfoxxed.meoutfoxxedok05:47:34
@dramforever:matrix.orgdramforever

so when you select packages from these,

    l l l       <- pkgs.buildPackages.buildPackages = pkgs.pkgsBuildBuild
      l l c     <- pkgs.buildPackages = pkgs.pkgsBuildHost
        l c c   <- pkgs = pkgs.pkgsHostTarget
05:49:23
@outfoxxed:outfoxxed.meoutfoxxedalright thanks for the explanation05:50:09
@dramforever:matrix.orgdramforeverif you want to learn more there's a bunch more details in https://github.com/NixOS/nixpkgs/blob/master/doc/stdenv/stdenv.chapter.md05:50:55
@stack:stackdoubleflow.netStackDoubleFlow joined the room.09:15:05
@stackdoubleflow:matrix.org@stackdoubleflow:matrix.org left the room.16:46:35
26 Apr 2025
@spidfightfr:matrix.orgspidfightfr joined the room.10:56:00
@spidfightfr:matrix.orgspidfightfr

Hello everyone. I hope you're doing well.

I'm new here 👋
Nice to meet you.

10:57:16
27 Apr 2025
@spidfightfr:matrix.orgspidfightfrDownload Hello everyone, i'm working again on my riscv64 SBC, Pine64's Star64. But i got a few issues with uboot in unstable... May someone help with with this one please ? 🙏10:33:39
@spidfightfr:matrix.orgspidfightfrRedacted or Malformed Event10:36:23
@spidfightfr:matrix.orgspidfightfr I think something edits the uboot config for the Star64 specifically yet it introduces errors ? I'm not sure, the error is a bit cryptic... 10:37:31
28 Apr 2025
@stack:stackdoubleflow.netStackDoubleFlow changed their display name from stack to StackDoubleFlow.02:33:33
1 May 2025
@rosariopulella:matrix.orgRosario Pulella changed their display name from Rosario Pulella to Rosuavio.20:08:11
@oak:universumi.fioak changed their display name from oak - mikatammi.fi to oak 🫱⭕🫲.23:18:17
3 May 2025
@getpsyched:matrix.orggetpsyched joined the room.14:04:57
@getpsyched:matrix.orggetpsychedDid you end up cross compiling?14:21:35
@getpsyched:matrix.orggetpsyched I'm also running into this. I'm trying to install nixos on my new SSD mounted onto the thing but keep getting the GHC error. I thought it was related to this https://github.com/NixOS/nixpkgs/issues/231537#issuecomment-2745384196, but even building against nixpkgs nixos-24.11 gives me the same error. 14:23:10

Show newer messages


Back to Room ListRoom Version: 10