!UNVBThoJtlIiVwiDjU:nixos.org

Staging

317 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%3Aopen109 Servers

Load older messages


SenderMessageTime
3 Oct 2025
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)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 (any/all)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
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)hey at least thats barely any rebuilds13:31:34
@k900:0upti.meK900I don't think that's right13:32:11
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)wait why are they putting includes in lib and not dev?13:37:14
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)i am confused13:37:19
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)or rather, its looking in lib and it should be looking in dev?13:38:00
@dramforever:matrix.orgdramforever

we pass an absolute CLANG_RESOURCE_DIR on clang >= 21, which broke bootstrap tools because there it's supposed to be relative to bootstrap tools.

untested:

diff --git a/pkgs/stdenv/darwin/test-bootstrap-tools.nix b/pkgs/stdenv/darwin/test-bootstrap-tools.nix
index fc463a1b3e07..259b99d63867 100644
--- a/pkgs/stdenv/darwin/test-bootstrap-tools.nix
+++ b/pkgs/stdenv/darwin/test-bootstrap-tools.nix
@@ -55,7 +55,8 @@ builtins.derivation {
     # The stdenv bootstrap builds the SDK in the bootstrap. Use an existing SDK to test the tools.
     export SDKROOT='${apple-sdk.sdkroot}'
 
-    export flags="-idirafter $SDKROOT/usr/include --sysroot=$SDKROOT -L$SDKROOT/usr/lib -L$tools/lib -DTARGET_OS_IPHONE=0"
+    export resource_dir=("$tools"/lib/clang/*) # Expand wildcard
+    export flags="-idirafter $SDKROOT/usr/include --resource-dir=$resource_dir --sysroot=$SDKROOT -L$SDKROOT/usr/lib -L$tools/lib -DTARGET_OS_IPHONE=0"
 
     export CPP="clang -E $flags"
     export CC="clang $flags"
13:40:25
@dramforever:matrix.orgdramforeveron the other hand13:40:37
@dramforever:matrix.orgdramforever i can't find where i should add this to the actual bootstrap process 13:41:04
@dramforever:matrix.orgdramforeverso even if this fixes something it'll get broken next time we bump the darwin bootstrap tarballs13:41:32
@dramforever:matrix.orgdramforever* so even if this fixes something it'll still break next time we bump the darwin bootstrap tarballs13:41:41
@dramforever:matrix.orgdramforever<- does not use macos13:42:20
@dramforever:matrix.orgdramforever "broken by" in a very broad sense, i guess 13:44:52
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)also shit clang 21 is default now so uh13:45:03
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all)yay mass rebuilds!13:45:09
@dramforever:matrix.orgdramforevernah13:45:22
@dramforever:matrix.orgdramforeverit's fine13:45:23
@dramforever:matrix.orgdramforever just need to pass --resource-dir= during bootstrapping 13:45:35
@dramforever:matrix.orgdramforeveror maybe we already do13:45:52
@dramforever:matrix.orgdramforevernon-bootstrap is not affected13:46:13
@dramforever:matrix.orgdramforeverso do we just take that to push bootstrap tools test through and figure something out later?13:49:30
@vcunat:matrix.orgVladimír ČunátThe test can be even made non-blocking temporarily, e.g. until the next rebuild where we can fix properly. But I think it's good not to let them fail long.13:56:55

Show newer messages


Back to Room ListRoom Version: 6