!UNVBThoJtlIiVwiDjU:nixos.org

Staging

349 Members
Staging merges | Find currently open staging-next PRs: https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+sort%3Aupdated-desc+head%3Astaging-next+head%3Astaging-next-21.05+is%3Aopen114 Servers

Load older messages


SenderMessageTime
3 Oct 2025
@dramforever:matrix.orgdramforeveryeah we can do that next cycle12:28:27
@grimmauld:grapevine.grimmauld.deGrimmauld (migrated to @grimmauld:m.grimmauld.de) or you suggesting an overrideAttrs { patches = ....; } ? 12:28:29
@dramforever:matrix.orgdramforeverwell it's less of a suggestion of action, and more of a "good" news: we (nixpkgs) didn't do something wrong12:29:45
@dramforever:matrix.orgdramforever so just to confirm, we don't actually use stdenvBootstrapTools, right 12:31:29
@dramforever:matrix.orgdramforeveroh, already mentioned12:31:53
@grimmauld:grapevine.grimmauld.deGrimmauld (migrated to @grimmauld:m.grimmauld.de)

just checking to be sure:

diff --git a/pkgs/stdenv/linux/make-bootstrap-tools.nix b/pkgs/stdenv/linux/make-bootstrap-tools.nix
index 6a1507df734d..9cb28012d849 100644
--- a/pkgs/stdenv/linux/make-bootstrap-tools.nix
+++ b/pkgs/stdenv/linux/make-bootstrap-tools.nix
@@ -47,10 +47,17 @@ rec {
     '';
   };
 
-  bootGCC = pkgs.gcc.cc.override {
+  bootGCC = (pkgs.gcc.cc.override {
     enableLTO = false;
     isl = null;
-  };
+  }).overrideAttrs (old: {
+    patches = old.patches or [] ++ [
+      (pkgs.fetchpatch {
+        url = "https://github.com/gcc-mirror/gcc/commit/3f1f99ef82a65d66e3aaa429bf4fb746b93da0db.patch";
+        hash = "sha256-wKVuwrW22gSN1woYFYxsyVk49oYmbogIN6FWbU8cVds=";
+      })
+    ];
+  });
 
   bootBinutils = pkgs.binutils.bintools.override {
     withAllTargets = false;

12:36:24
@grimmauld:grapevine.grimmauld.deGrimmauld (migrated to @grimmauld:m.grimmauld.de)might be the better fix, but at the very least it'll confirm whether it is indeed fixed by that commit12:37:12
@dramforever:matrix.orgdramforeveri don't think it's necessarily worthwhile to make this "good"12:38:35
@dramforever:matrix.orgdramforever i confirmed this fixes stdenvBootstrapTools.aarch64-unknown-linux-gnu 12:45:55
@grimmauld:grapevine.grimmauld.deGrimmauld (migrated to @grimmauld:m.grimmauld.de)thats good, my x86_64 build is almost done12:46:18
@grimmauld:grapevine.grimmauld.deGrimmauld (migrated to @grimmauld:m.grimmauld.de)if that works too, i'll do that patch instead and push it to my PR12:47:00
@grimmauld:grapevine.grimmauld.deGrimmauld (migrated to @grimmauld:m.grimmauld.de)(and put you co-author, you did the digging upstream)12:47:17
@grimmauld:grapevine.grimmauld.deGrimmauld (migrated to @grimmauld:m.grimmauld.de)okay, works on x86 too12:50:58
@dramforever:matrix.orgdramforever meanwhile is the darwin thing because we configure llvm as aarch64-apple-darwin 12:53:46
@dramforever:matrix.orgdramforever

and the python script is not happy with us calling it aarch64

        assert "arm64" in config.host_triple or "x86_64" in config.host_triple
12:54:33
@grimmauld:grapevine.grimmauld.deGrimmauld (migrated to @grimmauld:m.grimmauld.de)but isn't x86_64-darwin broken too?12:57:44
@dramforever:matrix.orgdramforeverthat's a different failure12:58:21
@dramforever:matrix.orgdramforeverbuild works fine, test fails12:58:28
@grimmauld:grapevine.grimmauld.deGrimmauld (migrated to @grimmauld:m.grimmauld.de)SOO MANY FAILS12:58:30
@dramforever:matrix.orgdramforever so the x86_64-darwin thing, we had ...-bootstrap-tools/lib/clang/19/include when it works 13:05:25
@dramforever:matrix.orgdramforeverand now it's gone13:05:29
@grimmauld:grapevine.grimmauld.deGrimmauld (migrated to @grimmauld:m.grimmauld.de)HUH13:05:40
@dramforever:matrix.orgdramforever
ignoring nonexistent directory "/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-clang-21.1.1-lib/lib/clang/21/include"
13:05:44
@dramforever:matrix.orgdramforeveroops13:05:49
@grimmauld:grapevine.grimmauld.deGrimmauld (migrated to @grimmauld:m.grimmauld.de)thats worrying13:05:57
@dramforever:matrix.orgdramforeverwait nevermind13:05:57
@dramforever:matrix.orgdramforeverthat's good right13:06:01
@dramforever:matrix.orgdramforeveroh, not good13:06:36
@dramforever:matrix.orgdramforeverthe resource-dir is wrong13:06:40
@dramforever:matrix.orgdramforeverresource-dir for clang-21 in bootstrap tools is broken by https://github.com/NixOS/nixpkgs/pull/42038213:30:43

Show newer messages


Back to Room ListRoom Version: 6