Mic92 / nixos-aarch64-images

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

nix-build fails on x86 #10

Closed unclechu closed 1 year ago

unclechu commented 2 years ago
$ NIXPKGS_ALLOW_UNFREE=1 nix-build -A rockPro64
these 8 derivations will be built:
  /nix/store/ci5qhiags508k8apa28m548pib8qwh7y-nixos-sd-image-21.05.1817.2262d7863a6-aarch64-linux.img.zst.drv
  /nix/store/1nq744kpbvvfzm18xhnw811z81883m8c-aarch64-image.drv
  /nix/store/df2rznqps79m05j2cmz94rkhlwdddcss-builder.pl.drv
  /nix/store/qbylpaczaw7s061cwabghzbf2y3lak9w-python3-3.9.13-env.drv
  /nix/store/rapp056mlr0f4yg1y6s5vw4ai05ncx82-arm-trusted-firmware-rk3399-2.6.drv
  /nix/store/qk2zp3sf1gh2pznanfri1zwqx8z3pdnn-uboot-rockpro64-rk3399_defconfig-2022.01.drv
  /nix/store/a102myad05rq4vgk2xqwljqhc1vsqi6c-manifest.json.drv
  /nix/store/9dnyspx897b4x0q658v4489bhqkck60j-image.drv
these 30 paths will be fetched (361.38 MiB download, 1924.01 MiB unpacked):
  /nix/store/14lmcwiz2rv5hr44jfq5bs6x4nw4fp4w-libmicrohttpd-0.9.71
  /nix/store/18z078c0krjqmysw51qvngsg3qlqamqs-curl-7.83.1-bin
  /nix/store/1xviy5z49w471fmpczybq6fir2qywj1a-openssl-1.1.1p-dev
  /nix/store/1ydn3d104r037i03zsqalw3cnbdkh9fm-arm-none-eabi-binutils-wrapper-2.38
  /nix/store/2mq6p02k6z9qxgcgd25ffc8xf4lynkwl-arm-none-eabi-binutils-wrapper-2.38
  /nix/store/4wf9pmzhdf7bxp8hi171ngq8gdxa473g-systemd-250.4
  /nix/store/4zzx0h0hgvkjydmrbrcizymavfmqm1ga-libssh2-1.10.0-dev
  /nix/store/50wvfgilcchdh0lxvzc1i3cyfr8bs2bq-libfido2-1.10.0
  /nix/store/5cdp8a08rgc8224b7qm7mxbnv70xqplp-kmod-29
  /nix/store/6dm0r7f9jj6w969z29q2x2vn285n2zhp-arm-none-eabi-stage-final-gcc-debug-wrapper-10.3.0
  /nix/store/7a26vka0m4zpgj8g2lqbc1d0s8jqbbys-curl-7.83.1-dev
  /nix/store/8ca09hgdzpsmyc3hy4vsd8pxd5n2qvd8-systemd-minimal-250.4
  /nix/store/9xf6ll3dh0mw7al275zgj58azj91sw80-util-linux-2.37.4-dev
  /nix/store/9xhz3magaasrmkacgnzxrsd793ldq3q4-util-linux-minimal-2.37.4-bin
  /nix/store/afdz61g7p0xzb3lw37fya34zfphv4kvz-util-linux-2.37.4-bin
  /nix/store/g5w0f86kn00c1bs3bdl164wl79kwk5gs-arm-none-eabi-stage-static-gcc-debug-10.3.0
  /nix/store/gyms29zi8mizr5p97qxqxjzhl2fp7966-curl-7.83.1
  /nix/store/ifvw6dk54a7w2ykvsjlqnibkxhc4by6h-cryptsetup-2.4.3
  /nix/store/islfyjdc8plr8lgh1sgb6n3b1x29wa35-openssl-1.1.1p-bin
  /nix/store/mlmqvil54imm9yvidn896qngnnmrxfs6-lvm2-2.03.15-lib
  /nix/store/mm1lcmi3y122q4sg67j8mk4aap3hpgdg-zstd-1.5.2-dev
  /nix/store/mnfjpv2czjgxl4hg02acnc2glb97y05x-kbd-2.4.0
  /nix/store/n61wsjp667gbjhysif9axf0niq7rw049-libssh2-1.10.0
  /nix/store/p51a2kakh98c4627ybg5vdfncqcgqlyr-curl-7.83.1
  /nix/store/r4d821ksi73zn46sqgjwzsldayiwqvsp-zstd-1.5.2-bin
  /nix/store/s0fvh72lgcfaynh8694kbmd4z88sw1qg-tpm2-tss-3.2.0
  /nix/store/sxfg52p137h9ggjqb2hzy1lrjinanfaf-kmod-29-lib
  /nix/store/vb2phhi4m30rh77s1p8lnzgyi7ndy54a-arm-none-eabi-stage-final-gcc-debug-10.3.0
  /nix/store/x2514v51jc922lr15hf6f97dhwwi6zpj-elfutils-0.187
  /nix/store/y5vs1g85m7hbslsmhdrgmx9mhzxcv37h-newlib-arm-none-eabi-4.1.0
copying path '/nix/store/p51a2kakh98c4627ybg5vdfncqcgqlyr-curl-7.83.1' from 'https://cache.nixos.org'...
copying path '/nix/store/x2514v51jc922lr15hf6f97dhwwi6zpj-elfutils-0.187' from 'https://cache.nixos.org'...
copying path '/nix/store/5cdp8a08rgc8224b7qm7mxbnv70xqplp-kmod-29' from 'https://cache.nixos.org'...
copying path '/nix/store/sxfg52p137h9ggjqb2hzy1lrjinanfaf-kmod-29-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/14lmcwiz2rv5hr44jfq5bs6x4nw4fp4w-libmicrohttpd-0.9.71' from 'https://cache.nixos.org'...
copying path '/nix/store/9xhz3magaasrmkacgnzxrsd793ldq3q4-util-linux-minimal-2.37.4-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/r4d821ksi73zn46sqgjwzsldayiwqvsp-zstd-1.5.2-bin' from 'https://cache.nixos.org'...
error: a 'aarch64-linux' with features {} is required to build '/nix/store/df2rznqps79m05j2cmz94rkhlwdddcss-builder.pl.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}

The description says:

It re-uses pre-build NixOS installation images, so it can be also built on non aarch64 architectures.

Am I missing something?

Mic92 commented 2 years ago

I don't know why it tries to download builder.pl instead of downloading it from the binary cache. All the other derivations seem to be substituted.

sawshep commented 2 years ago

I'm having this issue as well.

jneem commented 2 years ago

Could it be because ubootRockPro64 is failing to build in hydra?