| 25 Apr 2025 |
dramforever | unwrapped clang is (L, L, *) | 05:36:27 |
dramforever | which is why when you cross using llvm you don't rebuild the entire clang | 05:36:41 |
dramforever | but wrapped clang is (L, L, C) because it has the libc and stuff wrapped in it | 05:37:13 |
outfoxxed | ok that makes sense thanks | 05:37:28 |
dramforever | 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 | so 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 wrapper | 05:43:04 |
dramforever | now this is as far as the whole process goes in nixpkgs | 05:43:23 |
outfoxxed | at this point we dont care about B, so just (*, C, C) right | 05:43:40 |
dramforever | everything in nixpkgs has the same b | 05:44:36 |
outfoxxed | ok that also makes sense | 05:45:08 |
outfoxxed | unless you override stdenv it wont go through QEMU or anything | 05:45:24 |
dramforever | 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 | * 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 | ok | 05:47:34 |
dramforever | 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 | alright
thanks for the explanation | 05:50:09 |
dramforever | if you want to learn more there's a bunch more details in https://github.com/NixOS/nixpkgs/blob/master/doc/stdenv/stdenv.chapter.md | 05:50:55 |
| StackDoubleFlow joined the room. | 09:15:05 |
| @stackdoubleflow:matrix.org left the room. | 16:46:35 |
| 26 Apr 2025 |
| spidfightfr joined the room. | 10:56:00 |
spidfightfr | Hello everyone. I hope you're doing well. I'm new here 👋 Nice to meet you. | 10:57:16 |
| 27 Apr 2025 |
spidfightfr | Download 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 | Redacted or Malformed Event | 10:36:23 |
spidfightfr | 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 |
| StackDoubleFlow changed their display name from stack to StackDoubleFlow. | 02:33:33 |
| 1 May 2025 |
| Rosario Pulella changed their display name from Rosario Pulella to Rosuavio. | 20:08:11 |
| oak changed their display name from oak - mikatammi.fi to oak 🫱⭕🫲. | 23:18:17 |
| 3 May 2025 |
| getpsyched joined the room. | 14:04:57 |
getpsyched | Did you end up cross compiling? | 14:21:35 |
getpsyched | 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 |