Open charlie-collard opened 7 months ago
I ran a bisect on the nixos-23.11 branch and it identified this commit as causing the failure.
ncdu is broken on unstable for aarch64-darwin as well.
@bspammer Hmm, that seems to be a red herring. Indeed, the build of the commit before that on hydra worked, but I can't reproduce it:
$ git checkout ac60eaff15a3a96bbec69d4316ab538f8f00d235
$ nix run .#ncdu -- --version
ncdu 2.3
$ nix build --rebuild .#ncdu
error: builder for '/nix/store/kvvdj4x6z1fcq3npnky1qx9q1v17l5cg-ncdu-2.3.drv' failed with exit code 1;
last 10 log lines:
> unpacking source archive /nix/store/s7smxibjail9wlambl6ylbi0ifvrpi2h-ncdu-2.3.tar.gz
> source root is ncdu-2.3
> setting SOURCE_DATE_EPOCH to timestamp 1691157970 of file ncdu-2.3/ncdu.1
> Running phase: patchPhase
> Running phase: updateAutotoolsGnuConfigScriptsPhase
> Running phase: configurePhase
> no configure script, doing nothing
> Running phase: buildPhase
> zig build flags: -Dcpu=baseline -Doptimize=ReleaseSafe -Dpie=true
> error: unable to create compilation: DarwinSdkNotFound
For full logs, run 'nix log /nix/store/kvvdj4x6z1fcq3npnky1qx9q1v17l5cg-ncdu-2.3.drv'.
Interestingly, the same is true for zig itself:
$ nix build --rebuild .#zig
error: builder for '/nix/store/9437b781qs7zr12sqf9pwismjlksm5bw-zig-0.11.0.drv' failed with exit code 2;
last 10 log lines:
> static inline bool zig_subo_u64(uint64_t *res, uint64_t lhs, uint64_t rhs, uint8_t bits) {
> ^
> 44 warnings generated.
> [ 94%] Linking CXX executable zig2
> [ 94%] Built target zig2
> [100%] Building stage3
> error: unable to create compilation: DarwinSdkNotFound
> make[2]: *** [CMakeFiles/stage3.dir/build.make:73: stage3/bin/zig] Error 1
> make[1]: *** [CMakeFiles/Makefile2:196: CMakeFiles/stage3.dir/all] Error 2
> make: *** [Makefile:136: all] Error 2
For full logs, run 'nix log /nix/store/9437b781qs7zr12sqf9pwismjlksm5bw-zig-0.11.0.drv'.
So this might be caused by https://github.com/NixOS/nixpkgs/issues/299091
Steps To Reproduce
Steps to reproduce the behavior:
nix build 'github:NixOS/nixpkgs/526d051b128b82ae045a70e5ff1adf8e6dafa560#ncdu'
This commit is the latest on the
nixos-23.11
release branch at time of writingBuild log
Additional context
There is another issue open here: https://github.com/NixOS/nixpkgs/issues/287861, but the error is different and they were using
x86_64-darwin
so I figured it was better to open another issue.The build seems to be fixed on the unstable branch so I think something needs to be backported to the release branch:
nix build 'github:NixOS/nixpkgs/526d051b128b82ae045a70e5ff1adf8e6dafa560#ncdu'
Notify maintainers
Metadata
Add a :+1: reaction to issues you find important.