| 16 Oct 2025 |
matthewcroughan | https://github.com/facebook/pyre2/pull/25 | 17:51:08 |
matthewcroughan | but yes it hasn't been touched in 6 years | 17:51:13 |
matthewcroughan | But it is a dependency of mercurial, which Nixpkgs needs for building Nix tests I guess | 17:52:08 |
matthewcroughan | https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/me/mercurial/package.nix#L9 | 17:52:26 |
matthewcroughan | hmm, but it is optional | 17:52:30 |
matthewcroughan | All that is left then, is to figure out why pkgsMusl.pkgsStatic.musl doesn't build | 17:56:53 |
matthewcroughan | rm -f lib/libc.a
aarch64-unknown-linux-musl-ar rc lib/libc.a obj/src/aio/aio.lo obj/src/aio/aio_suspend.lo obj/src/aio/lio_listio.lo obj/src/complex/__cexp.lo obj/src/complex/__cexpf.lo obj/src/complex/cabs.lo obj/src/complex/cabsf.lo obj/src/complex/cabsl.lo obj/src/complex/cacos.lo obj/src/complex/cacosf.lo obj/src/complex/cacosh.lo obj/src/complex/cacoshf.lo obj/src/complex/cacoshl.lo obj/src/c>
aarch64-unknown-linux-musl-gcc -std=c99 -nostdinc -ffreestanding -fexcess-precision=standard -frounding-math -fno-strict-aliasing -Wa,--noexecstack -D_XOPEN_SOURCE=700 -I./arch/aarch64 -I./arch/generic -Iobj/src/internal -I./src/include -I./src/internal -Iobj/include -I./include -g -O2 -fno-align-jumps -fno-align-functions -fno-align-loops -fno-align-labels -fira-region=one -fira>
-Wl,-e,_dlstart -o lib/libc.so obj/src/aio/aio.lo obj/src/aio/aio_suspend.lo obj/src/aio/lio_listio.lo obj/src/complex/__cexp.lo obj/src/complex/__cexpf.lo obj/src/complex/cabs.lo obj/src/complex/cabsf.lo obj/src/complex/cabsl.lo obj/src/complex/cacos.lo obj/src/complex/cacosf.lo obj/src/complex/cacosh.lo obj/src/complex/cacoshf.lo obj/src/complex/cacoshl.lo obj/src/complex/cacosl>
collect2: fatal error: cannot find 'ld'
compilation terminated.
| 17:57:57 |
Alyssa Ross | chaining like that isn't really expected to work aiui | 17:58:46 |
matthewcroughan | pkgsMusl.pkgsLLVM is perfect | 17:59:03 |
matthewcroughan | maybe static isn't | 17:59:14 |
matthewcroughan | somehow pkgs.nixos {} with the build/hostPlatform set correctly, is invoking the equivalent of pkgsMusl.pkgsStatic.musl | 18:00:22 |
matthewcroughan | This is just a normal native musl system that maybe wants that because of some bug | 18:00:53 |
matthewcroughan | nixosConfigurations.musl = nixosConfigurations.base.extendModules {
modules = [
./musl.nix
{
nixpkgs.buildPlatform = (inputs.nixpkgs.lib.systems.elaborate "aarch64-unknown-linux-musl");
nixpkgs.hostPlatform = inputs.nixpkgs.lib.recursiveUpdate (inputs.nixpkgs.lib.systems.elaborate "aarch64-unknown-linux-musl") {};
}
];
};
| 18:06:48 |
matthewcroughan | * nixosConfigurations.musl = nixosConfigurations.base.extendModules {
modules = [
./musl.nix
{
nixpkgs.buildPlatform = (inputs.nixpkgs.lib.systems.elaborate "aarch64-unknown-linux-musl");
nixpkgs.hostPlatform = inputs.nixpkgs.lib.recursiveUpdate (inputs.nixpkgs.lib.systems.elaborate "aarch64-unknown-linux-musl") {};
}
];
};
| 18:06:49 |
dramforever | i think it's entirely a coincidence that fb-re2 ever worked for python3 | 18:06:53 |
matthewcroughan | Like is there anything wrong with line 5 and 6 three? | 18:06:55 |
matthewcroughan | * Like is there anything wrong with line 5 and 6 there? | 18:06:57 |
matthewcroughan | Because that causes pkgsMusl.pkgsStatic.musl to end up inside of the closure | 18:07:06 |
matthewcroughan | musl.nix is nothing, just this https://github.com/MatthewCroughan/nixos-musl/blob/refactor/musl.nix | 18:08:29 |
dramforever | try nix why-depends? | 18:18:13 |
matthewcroughan | That's visible in the nom graph i | 18:23:12 |
matthewcroughan | * That's visible in the nom graph | 18:23:13 |
matthewcroughan | ┃ ┌─ ⏸ run-nixos-vm
┃ │ ┌─ ⏵ initrd-udev-rules ⏱ 9m54s
┃ │ ├─ ⏵ initrd-units ⏱ 10m41s
┃ │ ┌─ ⏸ initrd-linux-6.17.3
┃ │ ┌─ ⏸ boot.json
┃ │ │ ┌─ ⏸ security-wrapper-passwd-aarch64-unknown-linux-musl waiting for 1 ⏵
┃ │ │ ├─ ⏸ security-wrapper-su-aarch64-unknown-linux-musl waiting for 1 ⏵
┃ │ │ ├─ ⏸ security-wrapper-newuidmap-aarch64-unknown-linux-musl waiting for 1 ⏵
┃ │ │ ├─ ⏸ security-wrapper-mount-aarch64-unknown-linux-musl waiting for 1 ⏵
┃ │ │ ├─ ⏸ security-wrapper-fusermount-aarch64-unknown-linux-musl waiting for 1 ⏵
┃ │ │ ├─ ⏸ security-wrapper-unix_chkpwd-aarch64-unknown-linux-musl waiting for 1 ⏵
┃ │ │ ├─ ⏸ security-wrapper-newgrp-aarch64-unknown-linux-musl waiting for 1 ⏵
┃ │ │ ├─ ⏸ security-wrapper-fusermount3-aarch64-unknown-linux-musl waiting for 1 ⏵
┃ │ │ │ ┌─ ⏸ aarch64-unknown-linux-musl-gcc-14.3.0 waiting for 1 ⏵
┃ │ │ │ ├─ ⏸ aarch64-unknown-linux-musl-binutils-wrapper-2.44 waiting for 1 ⏵
┃ │ │ │ ├─ ⏵ musl-static-aarch64-unknown-linux-musl-1.2.5 (buildPhase) ⏱ 11m4s
┃ │ │ │ ┌─ ⏸ aarch64-unknown-linux-musl-gcc-wrapper-14.3.0
┃ │ │ │ ┌─ ⏸ stdenv-linux
┃ │ │ ├─ ⏸ security-wrapper-umount-aarch64-unknown-linux-musl
┃ │ │ ┌─ ⏸ unit-script-suid-sgid-wrappers-start
┃ │ │ ┌─ ⏸ unit-suid-sgid-wrappers.service
┃ │ │ ┌─ ⏸ system-units
┃ │ │ ┌─ ⏸ etc-json
┃ │ │ ┌─ ⏸ etc-dump
┃ │ ├─ ⏸ etc-metadata.erofs
┃ │ ┌─ ⏸ nixos-system-nixos-25.11.20251016.6bec4e9
┃ │ ┌─ ⏸ closure-info
┃ │ ├─ ⏵ linux-6.17.3 (buildPhase) ⏱ 5m44s
┃ ├─ ⏸ nixos-system-nixos-25.11.20251016.6bec4e9
┃ ⏸ nixos-vm
┣━━━ Builds
┗━ ∑ ⏵ 4 │ ✔ 36 │ ⏸ 34 │ ⏱ 11m17s
| 18:23:38 |
matthewcroughan | musl-static-aarch64-unknown-linux-musl-1.2.5 there on line 16 | 18:24:13 |
matthewcroughan | security-wrapper-umount-aarch64-unknown-linux-musl wants it | 18:24:23 |
matthewcroughan | because the stdenv wants it | 18:24:32 |
dramforever | ah, that makes sense, the wrappers are pkgsStaic | 18:30:06 |
dramforever | * ah, that makes sense, the wrappers are pkgsStatic | 18:30:10 |
matthewcroughan | Oh, is there a reason they have to be pkgsStatic? | 18:30:22 |
matthewcroughan | I didn't expect that | 18:30:26 |