14 Nov 2022 |
pie_ | Ok, so it is util-linux, but I'm pretty sure it's also rebuilding python every time...
error: builder for '/nix/store/4f54gwg5jhknxdpgfcayp4k76nyv3w64-util-linux-static-x86_64-unknown-linux-musl-2.37.4.drv' failed with exit code 2;
last 10 log lines:
> /nix/store/0r52lb67wqwbh6awlagnpbhciaakcqxn-x86_64-unknown-linux-musl-binutils-2.35.2/bin/x86_64-unknown-linux-musl-ld: /nix/store/bxdkvd3djqf9z3wigjcsbx6yshnc9vfn-linux-pam-static-x86_64-unknown-linux-musl-1.5.1/lib/libpam.a(pam_audit.o): in function `_pam_auditlog':
> (.text+0x337): undefined reference to `audit_close'
> /nix/store/0r52lb67wqwbh6awlagnpbhciaakcqxn-x86_64-unknown-linux-musl-binutils-2.35.2/bin/x86_64-unknown-linux-musl-ld: /nix/store/bxdkvd3djqf9z3wigjcsbx6yshnc9vfn-linux-pam-static-x86_64-unknown-linux-musl-1.5.1/lib/libpam.a(pam_audit.o): in function `pam_modutil_audit_write':
> (.text+0x541): undefined reference to `audit_close'
> collect2: error: ld returned 1 exit status
> make[2]: *** [Makefile:7396: chsh] Error 1
> make[2]: Leaving directory '/tmp/nix-build-util-linux-static-x86_64-unknown-linux-musl-2.37.4.drv-0/util-linux-2.37.4'
> make[1]: *** [Makefile:14611: all-recursive] Error 1
> make[1]: Leaving directory '/tmp/nix-build-util-linux-static-x86_64-unknown-linux-musl-2.37.4.drv-0/util-linux-2.37.4'
> make: *** [Makefile:6321: all] Error 2
For full logs, run 'nix log /nix/store/4f54gwg5jhknxdpgfcayp4k76nyv3w64-util-linux-static-x86_64-unknown-linux-musl-2.37.4.drv'.
error: 1 dependencies of derivation '/nix/store/nam1fgzycp7viggn8xphdac43f9ana0j-e2fsprogs-static-x86_64-unknown-linux-musl-1.46.5.drv' failed to build
error: 1 dependencies of derivation '/nix/store/y5f3dr38vmzn3d24ialzrn09w88yrqhj-libarchive-static-x86_64-unknown-linux-musl-3.5.3.drv' failed to build
building '/nix/store/c6xs1gzmnikhnfk9yxviq5gswlg9hh8j-talloc-static-x86_64-unknown-linux-musl-2.3.3.drv'...
error: 1 dependencies of derivation '/nix/store/gzc1xw5h2q5a686wd4jafrpmlk8hs1yl-proot-static-x86_64-unknown-linux-musl-5.2.0.drv' failed to build
| 13:32:40 |
pie_ | Oh hm, proot has an enablePython, and it seems like util-linux isn't even a direct dependency of proot. I'm not sure what's pulling it in. The error above is pam related, and util-linux also has pamSupport. | 13:47:36 |
pie_ | It would be nice if why-depends had a mode that didn't require a successful build... | 13:47:55 |
pie_ | Though I imagine it's probably related to one of these.
these 5 derivations will be built:
/nix/store/2spfjgh2vpn9r6yk4yw082943rci8jjx-zstd-static-x86_64-unknown-linux-musl-1.5.2.drv
/nix/store/4f54gwg5jhknxdpgfcayp4k76nyv3w64-util-linux-static-x86_64-unknown-linux-musl-2.37.4.drv
/nix/store/nam1fgzycp7viggn8xphdac43f9ana0j-e2fsprogs-static-x86_64-unknown-linux-musl-1.46.5.drv
/nix/store/y5f3dr38vmzn3d24ialzrn09w88yrqhj-libarchive-static-x86_64-unknown-linux-musl-3.5.3.drv
/nix/store/32l2s1szabqzgij3g9yx0za2zmlriyna-proot-static-x86_64-unknown-linux-musl-5.2.0.drv
| 13:49:29 |
pie_ | Though those could also just be fails somewhere in the deptree :/ | 13:50:05 |
pie_ | per nix-store -q --tree its proot -> libarchive -> e2fsprogs -> util-linux (I think) | 13:53:53 |
pie_ | but I dont understand why proot is depending on libarchive | 13:54:03 |
pie_ | Its not directly specified in the nix expression afaict. | 13:54:13 |
pie_ | Well, I'm stumped. | 16:06:50 |
pie_ | Ok, this is terrible and I still have no idea why things are the way they are, but earlier today I got this to work: | 22:50:06 |
pie_ | * Ok, this is terrible and I still have no idea why things are the way they are, but earlier today I got this to build: | 22:50:11 |
pie_ | nix-build --option max-jobs 1 --option cores 1 -I nixpkgs=channel:nixos-21.11 -E "with import <nixpkgs> { overlays = [ (self: super: { libarchive = super.libarchive.override (o: { e2fsprogs = super.hello; }); }) ]; }; (pkgsStatic.proot.override (o: { enablePython = false; })).overrideAttrs (o: { preUnpack = ''export PATH=\"\$PATH\":\${pkgsStatic.pkg-config}/bin;\${git}/bin''; })" | 22:50:41 |
pie_ | (literally. It can probably be cleaned up a bit.) | 22:51:01 |
15 Nov 2022 |
pie_ | Ok, the next problem is I cant seem to run anything because the dynamic linker fails
| 02:01:19 |
pie_ | newfstatat(3, "", 0x7fffe4a41460, AT_EMPTY_PATH) = -1 EINVAL (Invalid argument)
Turns out:
AT_EMPTY_PATH (since Linux 2.6.39) I'm on 2.6.32
| 02:02:12 |
pie_ | * Ok, the next problem is I cant seem to run anything because the dynamic linker fails
| 02:02:34 |
pie_ | *
Ok, the next problem is I cant seem to run anything because the dynamic linker fails | 02:02:44 |
pie_ | And I'm not sure what to do here again | 02:03:08 |
pie_ | (besides ask for a kernel upgrade...) | 02:03:22 |
pie_ | I could possibly try building things with an earlier libc I suppose | 02:03:59 |
pie_ | though also thats basically rebuild the world afaik | 02:04:17 |
pie_ | well, modulo some hacks, I think using musl is working | 20:26:15 |