Open Tristano8 opened 6 months ago
This also affects nix-build
.
$ nix-build -A systemd --builders 'ssh://utm.local aarch64-linux' --system 'aarch64-linux'
error: builder for '/nix/store/n2qn0hq1mdyyfplphymv9l7kq9x2pd25-builder.pl.drv' failed with exit code 126;
last 1 log lines:
> /nix/store/1fzg4cl3k2n9yq80vg6y1vcmvx3qm682-bash-5.2p26/bin/bash: /nix/store/1fzg4cl3k2n9yq80vg6y1vcmvx3qm682-bash-5.2p26/bin/bash: cannot execute binary file
For full logs, run 'nix log /nix/store/n2qn0hq1mdyyfplphymv9l7kq9x2pd25-builder.pl.drv'.
error: 1 dependencies of derivation '/nix/store/1h92zc3pa1v566r2s0za9dfbq9krgwra-python3-3.11.9-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/i01isqxbhsr286da2k6f48bd6i1xssg0-python3-3.11.9-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vnlxxv5fh2hc78hl0whvr25ay5pwwwdd-systemd-255.6.drv' failed to build
arian@Arians-MacBook-Pro nixpkgs % cat /nix/store/n2qn0hq1mdyyfplphymv9l7kq9x2pd25-builder.pl.drv
doesn't work
whilst
nix-build -A systemd --builders 'ssh://utm.local aarch64-linux' --system 'aarch64-linux' --max-jobs 0
does
Describe the bug
nix build
doesn't use a remote builder, even when passed explicitly via--builder
, unless explicitly telling it to ignore local builds. It seems like the nix scheduler thinks that it can build anx86_64-linux
derivation locally, then at build time discovers that it cannot actually do thatSteps To Reproduce
/etc/nix/nix.conf
forx86_64-linux
eg:
nix build -Lv --rebuild nixpkgs#legacyPackages.x86_64-linux.hello
--max-jobs 0
Expected behavior
The result from step 6 should occur without passing
--max-jobs
nix-env --version
output nix-env (Nix) 2.18.1Additional context
This occurs on multiple silicon machines (M1 and M3) and across multiple nix versions (2.21.1 and 2.18.1 at least).
Full error logs:
error-log.txt
My
nix show-config
: