| 3 Oct 2025 |
K900 | I think everyone who can really look at those is too busy trying to put out the fire | 09:47:47 |
K900 | I know at least me and @emilazy:matrix.org are | 09:47:57 |
Vladimír Čunát | Sure, I know. Just trying, maybe someone else than typical contributors will appear 🤷 | 09:49:58 |
Grimmauld (any/all) | wait how are things broken on x86_64-darwin but not aarch64-darwin? | 09:50:25 |
Vladimír Čunát | * Sure, I know. I'm just trying, maybe someone else than typical contributors will appear 🤷 | 09:50:21 |
Grimmauld (any/all) | how do you even build bootstrap tools? stdenv.bootstrapTools builds fine, but that is probably the wrong attr | 09:55:51 |
Alyssa Ross | From release.nix I I think | 10:01:50 |
Grimmauld (any/all) | Ah nix-build pkgs/top-level/release.nix --attr stdenvBootstrapTools.x86_64-unknown-linux-gnu seems to do things | 10:03:59 |
Grimmauld (any/all) | no guarantees, but i might learn something, so i'll give it a casual poke | 10:04:19 |
Alyssa Ross | Must be bisectable at least | 10:05:11 |
Alyssa Ross | I just haven't had the time | 10:05:18 |
Grimmauld (any/all) | i can do the bisect | 10:08:13 |
Grimmauld (any/all) | that at least isn't hard | 10:08:24 |
Grimmauld (any/all) | just takes a while because waiting for gcc compiles | 10:08:49 |
Grimmauld (any/all) | so uh, i just got a gcc build fail on the way to bootstrap tools... | 10:27:26 |
Grimmauld (any/all) | > /nix/store/mr6bjhlhd966kl6f2wmggsan6mbs5bcj-bootstrap-stage3-stdenv-linux/setup: line 1801: pop_var_context: head of shell_variables not a function context
> /nix/store/mr6bjhlhd966kl6f2wmggsan6mbs5bcj-bootstrap-stage3-stdenv-linux/setup: line 1: pop_var_context: head of shell_variables not a function context
whatever this is
| 10:28:05 |
K900 | That's a stupid stdenv bug, the real error should be above that | 10:30:09 |
Grimmauld (any/all) | There is also /nix/store/mr6bjhlhd966kl6f2wmggsan6mbs5bcj-bootstrap-stage3-stdenv-linux/setup: line 297: /nix/store/7xs7kwm3010k16fmgfpypwiy0wxx03fn-binutils-patchelfed-ld-wrapper-2.44/nix-support/libc-ldflags-before: No such file or directory which might be concerning | 10:31:58 |
Grimmauld (any/all) | but i accidentially killed the log, oops. Gemme 5min to upload it to termbin again | 10:32:28 |
Vladimír Čunát | I saw a similar case. And the relevant part seems to be ld complaining about libiberty. | 10:35:21 |
Grimmauld (any/all) | ye | 10:38:53 |
Grimmauld (any/all) | libiberty.a, did we kill the static build? | 10:39:14 |
Grimmauld (any/all) | hmm, no, that bootstrap stage builds libiberty itself instead of pulling the dedicated package | 10:43:03 |
Vladimír Čunát | 🤷 let's wait which commit the blame falls on. Hopefully it will help. | 10:44:06 |
Vladimír Čunát | So this one?
411faf46e2c8 gcc: build with --enable-default-pie configure option (#439314)
| 11:22:38 |
Vladimír Čunát | Reconfirmed breaking nix build -f pkgs/top-level/release.nix stdenvBootstrapTools.x86_64-unknown-linux-gnu.test on this commit and OK on its first parent (the staging branch lineage). | 11:33:49 |
Grimmauld (any/all) | uh oh | 11:38:32 |
Grimmauld (any/all) | that is a fat mass-rebuild, so how will we fix it? | 11:39:09 |
Grimmauld (any/all) | diff --git a/pkgs/stdenv/linux/make-bootstrap-tools.nix b/pkgs/stdenv/linux/make-bootstrap-tools.nix
index 6a1507df734d..c4b204e35837 100644
--- a/pkgs/stdenv/linux/make-bootstrap-tools.nix
+++ b/pkgs/stdenv/linux/make-bootstrap-tools.nix
@@ -50,6 +50,7 @@ rec {
bootGCC = pkgs.gcc.cc.override {
enableLTO = false;
isl = null;
+ enableDefaultPie = false;
};
bootBinutils = pkgs.binutils.bintools.override {
Trying the naive thing rn
| 11:46:11 |
Grimmauld (any/all) | if this works, then we are done | 11:46:27 |