Mic92 / nixos-aarch64-images

Build NixOS images for various ARM single computer boards
79 stars 20 forks source link

Build fail #20

Open glukki opened 5 months ago

glukki commented 5 months ago

Build fails since the image bump from #16 . I'm currently running the stable channel: nixos https://nixos.org/channels/nixos-23.11

$ nix --version
nix (Nix) 2.18.1

$ nix build --extra-experimental-features 'nix-command flakes' \
  --no-write-lock-file \
  --override-input nixpkgs 'github:nixos/nixpkgs/nixpkgs-unstable' \
  'github:Mic92/nixos-aarch64-images#rockPro64'
warning: not writing modified lock file of flake 'github:Mic92/nixos-aarch64-images':
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/3364b5b117f65fe1ce65a3cdd5612a078a3b31e3' (2023-03-31)
  → 'github:nixos/nixpkgs/4a3fc4cf736b7d2d288d7a8bf775ac8d4c0920b4' (2024-05-28)
[1/0/4 built] building nixos-sd-image-23.11.5541.56528ee42526-aarch64-linux.img.zst: 100 1055M  100 1055M    0     0  12.8M    
nix: src/libstore/store-api.cc:190: nix::StorePath nix::Store::makeFixedOutputPath(std::string_view, const nix::FixedOutputInfo&) const: Assertion `info.references.size() == 0' failed.
Aborted (core dumped)

Yet, the previous commit builds successfully:

$ nix build --extra-experimental-features 'nix-command flakes' \
  --no-write-lock-file \
  --override-input nixpkgs 'github:nixos/nixpkgs/nixpkgs-unstable' \
  'github:Mic92/nixos-aarch64-images/1a38d2e#rockPro64'
warning: not writing modified lock file of flake 'github:Mic92/nixos-aarch64-images/1a38d2e':
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/3364b5b117f65fe1ce65a3cdd5612a078a3b31e3' (2023-03-31)
  → 'github:nixos/nixpkgs/4a3fc4cf736b7d2d288d7a8bf775ac8d4c0920b4' (2024-05-28)

$ ls -lh
total 0
lrwxrwxrwx 1 root root 49 May 30 00:18 result -> /nix/store/pnhbr8f85mhpbc39nlq6bcccgqsm86rb-image

I'm still very new to nixos, flakes, and everything, and don't really understand what gone wrong here 😅

Hasenfresser commented 5 months ago

Hi, my build fails too, but with a different error message:

...
/binman/simple-bin/fit/images/@tee-SEQ/tee-os (tee-os):
   See the documentation for your board. You may need to build Open Portable
   Trusted Execution Environment (OP-TEE) and build with TEE=/path/to/tee.bin

  OFCHK   .config
buildPhase completed in 2 minutes 4 seconds
Running phase: installPhase
Running phase: fixupPhase
shrinking RPATHs of ELF executables and libraries in /nix/store/dicf00apckxs6qdylxi6hxdx3nqa8f8x-uboot-rockpro64-rk3399_defconfig-aarch64-unknown-linux-gnu-2024.04
checking for references to /build/ in /nix/store/dicf00apckxs6qdylxi6hxdx3nqa8f8x-uboot-rockpro64-rk3399_defconfig-aarch64-unknown-linux-gnu-2024.04...
patching script interpreter paths in /nix/store/dicf00apckxs6qdylxi6hxdx3nqa8f8x-uboot-rockpro64-rk3399_defconfig-aarch64-unknown-linux-gnu-2024.04
100 1115M  100 1115M    0     0  5093k      0  0:03:44  0:03:44 --:--:-- 5482k
error: unexpected end-of-file

The only thing I changed is the used image in pkgs/aarch64-image/default.nix to:

url = "https://hydra.nixos.org/build/262010759/download/1/nixos-sd-image-24.05.675.805a384895c6-aarch64-linux.img.zst";
sha256 = "bbe9b608f0b337997d3412d78df1f855403c397501db6662ea5f2cd3b7e9702e";

But even the "original" image results in the same error.

Thanks in advance!

irusensei commented 5 months ago

Same EOF error here. Reverting to commit 1a38d2e7f7a8ff37158e0022a7307c3e95147cbe builds successfully. I'm guessing something on the hydra side.