nix-community / nixos-generators

Collection of image builders [maintainer=@Lassulus]
MIT License
1.88k stars 146 forks source link

Error: bad value ('armv8-a') for '-march=' switch #96

Closed bobbbay closed 3 years ago

bobbbay commented 3 years ago

Hey y'all! I'm running Flakes on NixOS WSL, and want to compile to my RPi 4 (sd-aarch64). Regrettable, after running nixos-generate -f sd-aarch64, I get the following error:

error: bad value ('armv8-a') for '-march=' switch
I've attached the full output for more details.
``` these derivations will be built: /nix/store/1d0894dgwbfdwss6ss4sgknfivf8xjrr-nixos-help.drv /nix/store/hvznlp1b652rxdqdc7w4nkpxhjakqsaz-nixos-container.drv /nix/store/mgfhy3da62r6clh2lw4r0p5vy6kvzprz-nixos-install.drv /nix/store/sj4ngb0j4m06q0wv6j8dyb297w1ljm6i-nixos-rebuild.drv /nix/store/vj89x5hhysf7kcqgj9dik228rqz13nck-nixos-version.drv /nix/store/dvzw86ysf66734qykchsnqrpm85h2l1x-system-path.drv /nix/store/066n5z2s93n2prp755n4gy6dzvfm20lx-dbus-1.drv /nix/store/1if6l2ppdi94ax0bsivdz84lxkikj6cj-set-environment.drv /nix/store/0w1k07b3s6vb7xhkm0b0zv9lvzb6wf3q-etc-profile.drv /nix/store/1660wdk9vhnxbvx4cfxkkz23l23rh4n1-extra-udev-rules.drv /nix/store/6ryfm94dvccg4hk58zah6vmbsyb8m2c0-ipv6-privacy-extensions.rules.drv /nix/store/bb5p4s9lax7hsfkdl08xfjcgxzm2qhvy-ipv6-privacy-extensions.rules.drv /nix/store/gxkxr1crwhks5mg773pa17x4ksgw6dy4-extra-hwdb-file.drv /nix/store/i8h6mh4srw18jb6hqj5y15x1zlhblv8v-udev-path.drv /nix/store/10j36pjfm57nw0jjra9d74022cxanrw4-udev-rules.drv /nix/store/1chw1acxbdw727xc3qvafhvw08b3qv5k-unit-systemd-user-sessions.service.drv /nix/store/1ill2sq5r1562kfjaisyq5innhplvz25-unit-systemd-udevd.service.drv /nix/store/1snpbr1xlxnq9izc81llzl39p73ca25q-users-groups.json.drv /nix/store/2gs1z60xl23d8z0hfnskhxd0mz6kazfr-dhcpcd.conf.drv /nix/store/2qdzxvpqqk7pc87a5cgh3f5hdjmy6p17-nixos.conf.drv /nix/store/2waqwva6lmki5yssbb8ri8jzhjbbajvc-unit-script-container_-post-start.drv /nix/store/4k2zbr4qbq9r8q0kbddisp3qwmj3dd80-unit-user-.service.drv /nix/store/hx961hh2al6nra3xssk7y9cx3mj0hww6-dhcpcd.exit-hook.drv /nix/store/4mgn92g06pkjmia1mnk1054rnz9ff5l3-unit-dhcpcd.service.drv /nix/store/mwwvpmmjs3kgr3y3s67lk4y6cf1mvy4m-nginx.conf.drv /nix/store/q44pch31n4gic714b887h1h4vvd5bfa8-unit-script-nginx-pre-start.drv /nix/store/4yc7h9d10d2cxzia86rsp3xh2jmjsk8j-unit-nginx.service.drv /nix/store/j6dp2h983z3dzhl05nbkwz498ml5fqww-etc-resolvconf.conf.drv /nix/store/53hw98q2j0ffqfdv3rg4qqkbxv172khb-unit-resolvconf.service.drv /nix/store/59lq19ssqydymz0izfjivc8lv3iqw7j3-unit-serial-getty-.service.drv /nix/store/5r7iih8mjjjpkiz8gzkq2whcrfv2yyvi-systemd-user.pam.drv /nix/store/5xq2g932b99jslhl7zi43j8569hzj61c-nixos-tmpfiles.d.drv /nix/store/649y0c7f97cbg3skkm7q46h5hqhf84yh-mdadm.conf.drv /nix/store/6fxbl0pkdm1naka3nrvfs2mx6l1rvn7n-unit-systemd-fsck-.service.drv /nix/store/6ywy7516arl0sz64yp1i5aacarg4xfh2-unit-systemd-remount-fs.service.drv /nix/store/72yak3mvvcs66c6j68s6jfmlax35kf5y-unit-systemd-modules-load.service.drv /nix/store/7529cgr9cgk4xwsyxnsrn1ki945bai96-config.txt.drv /nix/store/76jqh4csw7i23qg2scbqgmyg3c4n93sm-unit-systemd-random-seed.service.drv /nix/store/80ysjqj958wwnkn5dpz8q7f5qdrc1vh8-login.pam.drv /nix/store/81s1yh5misj65f0h44xav1clg2iqxq5m-unit-multi-user.target.drv /nix/store/89hlvyrkpcn9yvs8ri28a32bfknrj9pz-unit-script-sshd-pre-start.drv /nix/store/8hvmqsqka7vrvihkbhnaadc93mmj54vv-unit-nscd.service.drv /nix/store/xg81prmpqqf3xfc1cp6hl2iays7yf0y8-unit-script-pre-sleep-start.drv /nix/store/8mdkm7k4wxznmrx9z35lb38f72rv2nkr-unit-pre-sleep.service.drv /nix/store/8sviipyr6617dx3cggskcqxq56b610p2-unit-container-getty-.service.drv /nix/store/9bss23cprgq6bnyx8gz2fimm8najs258-tmpfiles.d.drv /nix/store/a1vqzibscy5knvvw3virk7qil4kv60wr-issue.drv /nix/store/aad91sgf1kb1jkfb6sgy6b3v8mxh9r3b-unit-systemd-update-utmp.service.drv /nix/store/p9fhrw2a5vsxmwj96k759jil5msiv4ga-firewall-start.drv /nix/store/xa34fj4ldr4jw1ddw032mdg15ixhy2bz-firewall-stop.drv /nix/store/abfw3jgcvni0irjxmlsigzq801lid32i-firewall-reload.drv /nix/store/anblwl5r4m1rdaqdqjij5y7nhd5k9zr1-raspberrypi-firmware-1.20200601.drv /nix/store/c0z06gn4l29wrv53kff9ixz49xrg820z-mounts.sh.drv /nix/store/c6vb5ryzbq26i70r7yfybv4a4blfbal5-kernel-modules.drv /nix/store/c99hxhxz71c69hpyy84fqrz1gbv3dk0r-append-initrd-secrets.drv /nix/store/h758dcx20a8gqx5wi916ayj10hsr2wzr-initrd-fsinfo.drv /nix/store/ynkmakf403165ixxyw47hfqd2fzwyf0x-stage-1-init.sh.drv /nix/store/h2ir69zd3y3zkgn8qhkjdrcgcfixlds6-initrd-linux-5.4.111.drv /nix/store/k90jc9bpbiq1xd703qilif0dicf2j5gh-firmware.drv /nix/store/ayf6dsqd40dgjy0bzllfssmx1l2fhc95-hwdb.bin.drv /nix/store/gnbfgb5zv660lm5wdi2ac11cx6bm9il9-etc-timesyncd.conf.drv /nix/store/ib8cqgvp3k67zip6g15a1isa5j71jdma-console-env.drv /nix/store/lz36lyp0n2kr9igbndghdxcd4cpb202y-etc-60-nixos.conf.drv /nix/store/i29c1gzb81fdh57vdhy0mk5117hqj7v4-unit-nixos-activation.service.drv /nix/store/psx48fs7pa2yb6jk2zi2hzaqwqkc50jf-unit-dbus.service.drv /nix/store/mldmvm6xz2y07i7hg07mgrni2a7c0pp7-user-units.drv /nix/store/pij51b78ibx3py1rccn3xzh37yigqg7a-etc-fstab.drv /nix/store/q9irgqwji5171183qskl1klkb48y7iya-etc-nixos.conf.drv /nix/store/qw8xa1207wkix5gkhyy5qak8vhmmlagd-vconsole.conf.drv /nix/store/rwacz3lfyzgz4mxs7cznk9pfxm4mr88a-etc-hostname.drv /nix/store/sc9xy2l7ri44m64r61a5gvh6blhh7506-sshd.pam.drv /nix/store/brd6955d93l98ykvdkfq9mpimj10j8n1-unit-script-nix-gc-start.drv /nix/store/b2jdyyh68iqm00n26j6y5mwxk16fikzd-unit-nix-gc.service.drv /nix/store/br48y84lardic9sw7qmq4znycbrqbl89-unit-prepare-kexec.service.drv /nix/store/cnmmffyspawvrfkgxiqijib35g7zi54g-unit-systemd-nspawn-.service.drv /nix/store/cwk25y1hyq5c68ivv7fxknvc67724iwj-unit-systemd-timesyncd.service.drv /nix/store/dd7rbhv20fmqn2n630qvkccamx3fvkw8-unit-network-local-commands.service.drv /nix/store/dn4ycryl80jdb1ccrn0jwjjy8b2zh9r2-unit-sshd.service.drv /nix/store/dnnfn8z1h7v56gl9rmgz4p6733jy7fq3-unit-console-getty.service-disabled.drv /nix/store/fisffm0y6nkbi2sbq3css4gv1r1xdnwg-unit-nix-optimise.service.drv /nix/store/gr0qyq4jg2d1jsamv3bfnilh52r2q2zy-unit-systemd-vconsole-setup.service.drv /nix/store/hgavrlr25cjlk5gg7chqmqy78lvjz7f6-unit-systemd-timedated.service.drv /nix/store/icqj9vj40k81a315sbrp2dab60ys3z88-unit-firewall.service.drv /nix/store/ilf7dyyrgw22c10b46nakz7wfg83gq21-unit-save-hwclock.service.drv /nix/store/ilwra3wjfb1mmsv9rzw6riyjk98ziraz-unit-dbus.service.drv /nix/store/jb3hh5vx8fpcw8nfndfm1svnb8ps6ibw-unit-post-resume.target.drv /nix/store/lf2vd72m82ip3vpxjvrzmpylwi9gvldm-unit-systemd-journal-flush.service.drv /nix/store/lfpfwamnnfqcw19v1p2mx6lcifkfqkk5-unit-audit.service.drv /nix/store/lv2gwwlngi4fms6k6wcybjpaxf7c7kaa-unit-systemd-journald.service.drv /nix/store/mlzyx4agikwi1srzbzxaf6h5iwgyp1z3-unit-systemd-importd.service.drv /nix/store/mwq53af0vw9ag25qqnkhsmjs2b8z1fbq-unit-systemd-backlight-.service.drv /nix/store/n5zficavy6828rkqfx8n77xdffszx98b-unit-polkit.service.drv /nix/store/q7annbhfwxkdz5ag6xxk0pqwcz9ixz42-unit-script-post-resume-start.drv /nix/store/nqafg4iafpgx5si2m7w02n1yf8sbv98v-unit-post-resume.service.drv /nix/store/ppl56hd046akg5klbqpb0xngvmhkvqf0-unit-systemd-udev-settle.service.drv /nix/store/zzj7gzgrszgladcdjw4ymk4n4mzgfs9z-unit-script-network-setup-start.drv /nix/store/sbc7h1rdx8aqqpm8a3vybid86j30bzkg-unit-network-setup.service.drv /nix/store/szx11w1fzg87v4vvni3w3g1ilmhv206q-unit-getty-.service.drv /nix/store/whlaqgc68fwrw2968hn1bb42i2q0xbyg-unit-systemd-sysctl.service.drv /nix/store/xgmjjvgq60hqcy9ri8z8fj1vglc96i18-unit-systemd-logind.service.drv /nix/store/yn8ynv9pcr4fap03c53qr2ki8lh4s6s7-unit-nix-daemon.service.drv /nix/store/bmiy3rdhg38m2c09xajpyvwph6d2avgv-unit-script-container_-pre-stop.drv /nix/store/if9sb7wb6ic44ffx4zhpwqb7raql454v-container-init.drv /nix/store/jmc2whcp9b66910bl9kpafc775shzps6-unit-script-container_-start.drv /nix/store/kw7lq0pa6cmy1gvqsypvqpc49zcqppc8-unit-script-container_-pre-start.drv /nix/store/ldaadnhf90l6apgwg3g1lsr22i3vfcrx-reload-container.drv /nix/store/yxirmpa579azr934vf46i7gqcm7c37d1-unit-container-.service.drv /nix/store/zfhwhknn01jdld3qv056kahxcjjxgmpq-unit-user-runtime-dir-.service.drv /nix/store/v2890jqhwz5rzxl744iwnpp9vn2n0cjs-system-units.drv /nix/store/x1kdx69wv7b0cwlygsa5svqayddg95l8-etc-os-release.drv /nix/store/z52qd8w3cp07b2vvs8mrhmq9kg6k0w73-etc-man_db.conf.drv /nix/store/q41y32i5qd0xl9ckg2rzdjlnfk0z1d86-etc.drv /nix/store/gx256x5a2ngvmg3h2a06cbpvhclg8k4a-local-cmds.drv /nix/store/ync83ramq96lmqmq4y7lkix95l57hsyf-stage-2-init.sh.drv /nix/store/yw7zlxmq4kwpblhwn91q5hzrsjli091s-extlinux-conf-builder.sh.drv /nix/store/asfh4cg6klzkbqnn3fdl1781qa1gpqry-nixos-system-nixos-20.09pre-git.drv /nix/store/d7ckjpk2givzyjkvrmpm2cxacl2655xl-closure-info.drv /nix/store/k03fgifqba60ldj1qq7dlh5fxjz7wsh6-python3-3.8.8-env.drv /nix/store/iw1c1aghi434vzv4dpmnh5af8gvg9ilg-uboot-rpi_3_defconfig-2020.07.drv /nix/store/w3iqd756fm8ffpmi6cakdjy94g18zk7j-ext4-fs.img.zst.drv /nix/store/hsyxyvz0i2rnm8y5svnma4ydqnl5hrbb-nixos-sd-image-20.09pre-git-x86_64-linux.img.drv these paths will be fetched (253.71 MiB download, 802.04 MiB unpacked): /nix/store/0cajz1k5pnahghx2a3qc78kndfgb51ha-link-units /nix/store/0dg1riwcgj7g4ia5zwha8iivpikvb265-libatasmart-0.19 /nix/store/0k3cmy452h16yj5rab6bal2dhb9jhnhr-lvm2with-dmeventd-2.03.10 /nix/store/1ca364nan8wqg3gpahr6r3ndhdvksxy5-bc-1.07.1 /nix/store/1dwdn663pg5gfyqpvfgk4zbc0c6invnv-python2.7-MarkupSafe-1.1.1 /nix/store/1fqjk4dhhxlw0b05jakhpx1qvapkhnh5-python2.7-ConfigArgParse-1.2.3 /nix/store/1lia0g5z10yjq0665wfmmkdmcly91202-dmraid-1.0.0.rc16 /nix/store/1m82vjiypjs298b78si71k1rw5l0qm4d-mtools-4.0.24 /nix/store/1q1y8cvfzbbj5wybbfn1smlsy4kjf69x-extra-utils /nix/store/1smrvkia30q1yl5d0sj15vdaknykrw93-flex-2.6.4 /nix/store/20dyxqvd9rnwzdnpdzb8vnv8w3vwa8wx-glibc-locales-2.31-74 /nix/store/24c6v330nnpnp5rkw3bjcbj49raxcxxs-systemd-default-tmpfiles /nix/store/27mfgnbp1imgp90w3gjrdbhrj4249v6p-kmod-blacklist-22-1.1ubuntu1 /nix/store/2iybkdv2ryh3cq5r1k71n82kgnlgj79l-dhcpcd-8.1.4 /nix/store/2krd2izvibsbwzy85jk8idb9jl1pv2fb-ntfs3g-2017.3.23 /nix/store/32q7hi8xnqr124178d9yq2ybllm1xysv-w3m-0.5.3+git20190105 /nix/store/3h025w2k8lmvqf6cx2i93si50rrw6b18-btrfs-progs-5.7 /nix/store/420nw2mc3r54s5f0jshnvvk66p2c9cp0-diffutils-3.7-info /nix/store/4d1yxj47aq1m4ig3d7kvb716xsirq3nn-acl-2.2.53-doc /nix/store/4qx0hbq1qbskni8pja1ni8c3kwl0xkvd-lvm2-2.03.10 /nix/store/5ggn32qlj6vnlz6zkapyfa2csx48wlk7-sshd.conf-validated /nix/store/5z9k2i824pxnl0yj9wp6j6mm4z3wmfkh-bison-3.7.1 /nix/store/62csr0wcs8g622bgw8gxhfh8r8bbd2fz-dbus-1.12.20-doc /nix/store/68wn6zh8xf9zd1vm5b4msf7fsrw0lwla-linux-5.4.111 /nix/store/6ffm9wfc2c65c81wpj7pdx2mr49kkf6n-util-linux-2.36-dev /nix/store/6kdkdaapp67bjihki0l9kil04sjjv1k2-coreutils-8.31-info /nix/store/6npyjsh4068csys62nq2mcz6kpah2fij-xfsprogs-4.19.0 /nix/store/6pb7j6kymf3y4xs5blp3g8mwin2j22kk-dav /nix/store/7xd2qgsnh1ld407jnrnl9wqzxy66wbmw-python2.7-nose-1.3.7 /nix/store/81jygdkabm88p0fzsyjjqcnl8wly2g34-nixos-manual-html /nix/store/83gz0ghq9j1i040p66sfd6vflpmrbxym-libndctl-69-lib /nix/store/8diyxs2yq2hpplifg9j4wm8zhdqzk1cl-man-db-2.9.3-doc /nix/store/8k29z83c4xjvwxjn593jhsbfjq4zchcw-dtc-1.6.0 /nix/store/96dzhz8vz31bcsx2krzvkkky3rksqw3y-system-shutdown /nix/store/a17919jnyi2dv5h91npplm0y3mzyf7br-nix-bash-completions-0.6.8 /nix/store/a17hrznd123w756waf06574kps2d5yjq-gawk-5.1.0-info /nix/store/ad6cmfgmgprkshrh4adqncnv2mq6szd7-hosts /nix/store/b19l4yssh8d445xvajljpxxhs50jajbd-gnum4-1.4.18 /nix/store/bzx4yl5rakq5ydbm1wpsn0z0p8j8wdvf-python2.7-setuptools-44.0.0 /nix/store/c0z6x6npsbcij20y76n8b6pizi54sm8p-nilfs-utils-2.2.7 /nix/store/cbpzjbhihrrlxwr81k433zmfv6clzqy6-dvp-1.2.1 /nix/store/cgvsmcmbxv1aszhhzy8b86gmas58bvbr-busybox-1.31.1 /nix/store/d87f4w0c4135kjym0f7wpxjy87qqxwjj-libbytesize-2.4 /nix/store/dcmy4ccbc9pvpg7nnnnzknrg30wrk51y-geoip-1.6.12 /nix/store/dg0xl05slhm0yzf3wkvxkcjw6pb0i9zz-nixos-manpages /nix/store/dr6n543igdhj589qirfh36m5a5fcg47d-rtmp /nix/store/drq2ar7m984b1dhjcd66lcq2lvaacnrx-volume_key-0.3.11 /nix/store/f1czxqsb9frsjs8biqabxrr61pdnmrjw-nix.conf /nix/store/fm9h357xv2wpzbqj9h5mfw8376jyaz0f-nginx-1.18.0 /nix/store/g1gbgmcm63dz475ql4i58dbav966f3i3-fakeroot-1.23 /nix/store/gginxzqf3g4byd6hb3n2cyx5vs4y1z53-thin-provisioning-tools-0.9.0 /nix/store/gqixyzkqqf3r96rhxg08sm12zm643qn1-nix-2.3.10-doc /nix/store/h6gpqc2y1n532fns49bivrqhxb623qk1-python2.7-cached-property-1.5.1 /nix/store/hy5h74c5z65238jkybmd4b51qh69mwci-xfsprogs-4.19.0-bin /nix/store/hyk3dqjq0a6clzkdfwy6nn277k8xsq52-lvm2-2.03.10-bin /nix/store/i2x6m66mwa8ljbiaim90szw36ng30chg-zstd-1.4.5-dev /nix/store/idhjdak8n56dw69a930qgmr4dpx4drb1-gnutar-1.32-info /nix/store/iwqj95y5n3icbar4bdxi3lkw1lkm77ds-bind-9.14.12-man /nix/store/j084fwpcwkw3wqcpyihw70pbfc9fwx6z-exfat-1.3.0 /nix/store/jkr0vzj41ncykbp07vxzcpiyxxz4c4zy-libcap-2.27-doc /nix/store/jl2ffrf2dhlghn7bhwncihba80ycz4i7-parted-3.3 /nix/store/jqxg9zl9g0lpmcbl5m7vqv6n3nahc815-gixy-0.1.20 /nix/store/k05yabxk0jkl6gpszm73mb8xn4n2hk0p-hook /nix/store/k7q4yqj395p44bvq5kvfhzgw5jjccvwl-python2.7-coverage-5.2.1 /nix/store/kk0zngmaf8h0355xd2yl5ykyzvr71igr-sudoers /nix/store/klzakywx98cic6wg675lcfrky6xksffc-lzo-2.10 /nix/store/kxzxzq5rgmr4289jfvzql5gzj2ml1czb-texinfo-6.7 /nix/store/kzpz6bnvlplrffaribdgl8dr3xwa5147-udisks-2.8.4-man /nix/store/l1dhzwvdaki4f06zz09kjmq6awrr5x8z-texinfo-interactive-6.7 /nix/store/l262yyqp7j0ynf5kiawvz3cwd6g8n7if-linux-5.4.111-modules-shrunk /nix/store/lcb83hgak1frn9j8j6rdpi3543f8qjp1-kmod-debian-aliases-22-1.1.conf /nix/store/lsgdsdr3py39i5cwwcgz4c4msmkla70w-nano-5.2-info /nix/store/lzyi6p5bj98bbq61g4215aij4icj6dmi-libfaketime-0.9.8 /nix/store/ms6354yca7fa8gbxfjv7hwpq33q2q71m-bash-interactive-4.4-p23-doc /nix/store/myzqxfhqm8qnlv47ina44x96zy4nlcir-system-generators /nix/store/mzj8z91v40n27c3jbxbj1ha768k3cm35-gzip-1.10-info /nix/store/n4qdapw3d06ivzqpf6l1qf8qsylrp98x-gnugrep-3.4-info /nix/store/nivislbvpbg6pfjmy1frbysz0b9c4w7y-python2.7-pyparsing-2.4.6 /nix/store/npkls90k60w8zhy9c05cs80z19fpgx3n-bash-interactive-4.4-p23-info /nix/store/pdscpgb01nbs5l98ccjx25wwxipg5m7h-gpgme-1.14.0 /nix/store/pkm72brzyvlqd5i77l1qql5m62kyqpm6-f2fs-tools-1.14.0 /nix/store/ppqkdn1nx4g7xsvz020ly8i05rx4hmsl-e2fsprogs-1.45.5-info /nix/store/px7r9kk27gilz5ns92jwr1am016p6dgx-hook /nix/store/q1kga8kg0lmin8i249709xjwz9km7b3w-libressl-3.1.3-man /nix/store/qjfzh8gas6bwdfl7cdjs4j662ak8s8xp-xz-5.2.5-doc /nix/store/qwbyvdnj3jw567b50pbrxbx14wb1v554-keymap /nix/store/r1rmxf4hcmja43kb9f15dz6dmfifr0m6-gptfdisk-1.0.5 /nix/store/r2wvgnr54vmwnjvzyqdixv8xbn362jgh-mailcap-2.1.48 /nix/store/r3jabvwb5pfyy932izrc8yqw52by42w2-findutils-4.7.0-info /nix/store/r4jhql8mchhk7iw164xd93q9cm6b52vl-neo-2476 /nix/store/ri0i41435grh93zyk0x19acvfw1asb89-udisks-2.8.4 /nix/store/rq7668jl38lxjm2ylcvqpa0fmjqf11q5-lvm2-2.03.10-man /nix/store/rzph684935ll7p5cc5xw72lybr2vypx7-e2fsprogs-1.45.5-dev /nix/store/s08k3b2p366xq2na9z85y4rm1jg8z4z6-boehm-gc-8.0.4 /nix/store/s0jr5lqprw5rw0zm32zbk1hmwgfr2vfh-gnused-4.8-info /nix/store/smja6xx80rma1cb1xpw8bl8dijlm2mg4-swig-3.0.12 /nix/store/v1pmi2g7cvpjlzidv5rxmlpicvzgcz23-python2.7-Jinja2-2.11.2 /nix/store/vs3084jrx114ivzy222bzrhqbmwz4sn1-getopt-1.1.6 /nix/store/vv47hc0yaz7fdjy6r3nzr2hjjfp6pbym-gpm-1.20.7 /nix/store/w1m3pf2n6kzqkc7bglj501ak63r1mkjv-libaio-0.3.111 /nix/store/w3h7yla389xrhhs77ps7brm3cazh7zky-gd-2.3.0 /nix/store/w400879zqhz08bbh28m60ymm9mpm3jm2-source /nix/store/y2r8pbda46scd3bzmzswlbfwyrw29dqb-udev-rules /nix/store/y39g23fn8ikzcd1iy3b1bclqwjk2qmxd-moreheaders /nix/store/yp2fsq0kpa3ipniywizjbmw0zzlqw6ya-dtc-1.6.0 /nix/store/yp8s1lpzw2gg6y1pjp35lk07fx9001yw-initrd-kmod-blacklist-ubuntu /nix/store/zlcp0p7zpwphmmm69ybq9cg9wdx9zhd4-u-boot-2020.07.tar.bz2 /nix/store/znk9r866h54ay15k7vc705gsvij47d5k-libblockdev-2.24 /nix/store/zqyk6mafdqf7ghn4w2zhqbhlj8pij4pf-linux-pam-1.3.1-doc /nix/store/zw5ghrac4avh62xrc3nf7998va16a0qi-attr-2.4.48-doc error: builder for '/nix/store/iw1c1aghi434vzv4dpmnh5af8gvg9ilg-uboot-rpi_3_defconfig-2020.07.drv' failed with exit code 2; last 10 log lines: > UPD include/config/uboot.release > UPD include/generated/version_autogenerated.h > UPD include/generated/timestamp_autogenerated.h > UPD include/generated/dt.h > CC lib/asm-offsets.s > cc1: warning: unknown register name: x18 > cc1: error: bad value ('armv8-a') for '-march=' switch > cc1: note: valid arguments to '-march=' switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 native > make[1]: *** [scripts/Makefile.build:155: lib/asm-offsets.s] Error 1 > make: *** [Makefile:1839: prepare0] Error 2 For full logs, run 'nix log /nix/store/iw1c1aghi434vzv4dpmnh5af8gvg9ilg-uboot-rpi_3_defconfig-2020.07.drv'. error: error: 1 dependencies of derivation '/nix/store/hsyxyvz0i2rnm8y5svnma4ydqnl5hrbb-nixos-sd-image-20.09pre-git-x86_64-linux.img.drv' failed to build ```
And here's the results from nix log :)
``` @nix { "action": "setPhase", "phase": "unpackPhase" } unpacking sources unpacking source archive /nix/store/zlcp0p7zpwphmmm69ybq9cg9wdx9zhd4-u-boot-2020.07.tar.bz2 source root is u-boot-2020.07 setting SOURCE_DATE_EPOCH to timestamp 1594063373 of file u-boot-2020.07/tools/zynqmpimage.h @nix { "action": "setPhase", "phase": "patchPhase" } patching sources patching script interpreter paths in tools tools/imx8m_image.sh: interpreter directive changed from "/bin/sh" to "/nix/store/9ywr69qi622lrmx5nn88gk8jpmihy0dz-bash-4.4-p23/bin/sh" tools/microcode-tool.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/p9hw3g46j9ms4x1nvkq9pv3x4iydx7la-python3-3.8.8-env/bin/python3" tools/jtagconsole: interpreter directive changed from "/bin/sh" to "/nix/store/9ywr69qi622lrmx5nn88gk8jpmihy0dz-bash-4.4-p23/bin/sh" tools/zynqmp_psu_init_minimize.sh: interpreter directive changed from "/bin/bash" to "/nix/store/9ywr69qi622lrmx5nn88gk8jpmihy0dz-bash-4.4-p23/bin/bash" tools/dtoc/main.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/p9hw3g46j9ms4x1nvkq9pv3x4iydx7la-python3-3.8.8-env/bin/python3" tools/dtoc/test_fdt.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/p9hw3g46j9ms4x1nvkq9pv3x4iydx7la-python3-3.8.8-env/bin/python3" tools/dtoc/test_dtoc.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/p9hw3g46j9ms4x1nvkq9pv3x4iydx7la-python3-3.8.8-env/bin/python3" tools/mrvl_uart.sh: interpreter directive changed from "/bin/bash" to "/nix/store/9ywr69qi622lrmx5nn88gk8jpmihy0dz-bash-4.4-p23/bin/bash" tools/binman/main.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/p9hw3g46j9ms4x1nvkq9pv3x4iydx7la-python3-3.8.8-env/bin/python3" tools/binman/cbfs_util_test.py: interpreter directive changed from "/usr/bin/env python" to "/nix/store/p9hw3g46j9ms4x1nvkq9pv3x4iydx7la-python3-3.8.8-env/bin/python" tools/zynqmp_pm_cfg_obj_convert.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/p9hw3g46j9ms4x1nvkq9pv3x4iydx7la-python3-3.8.8-env/bin/python3" tools/rmboard.py: interpreter directive changed from " /usr/bin/python3" to "/nix/store/p9hw3g46j9ms4x1nvkq9pv3x4iydx7la-python3-3.8.8-env/bin/python3" tools/moveconfig.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/p9hw3g46j9ms4x1nvkq9pv3x4iydx7la-python3-3.8.8-env/bin/python3" tools/patman/main.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/p9hw3g46j9ms4x1nvkq9pv3x4iydx7la-python3-3.8.8-env/bin/python3" tools/netconsole: interpreter directive changed from "/bin/sh" to "/nix/store/9ywr69qi622lrmx5nn88gk8jpmihy0dz-bash-4.4-p23/bin/sh" tools/genboardscfg.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/p9hw3g46j9ms4x1nvkq9pv3x4iydx7la-python3-3.8.8-env/bin/python3" tools/rkmux.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/p9hw3g46j9ms4x1nvkq9pv3x4iydx7la-python3-3.8.8-env/bin/python3" tools/buildman/main.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/p9hw3g46j9ms4x1nvkq9pv3x4iydx7la-python3-3.8.8-env/bin/python3" tools/imx_cntr_image.sh: interpreter directive changed from "/bin/sh" to "/nix/store/9ywr69qi622lrmx5nn88gk8jpmihy0dz-bash-4.4-p23/bin/sh" tools/k3_gen_x509_cert.sh: interpreter directive changed from "/bin/bash" to "/nix/store/9ywr69qi622lrmx5nn88gk8jpmihy0dz-bash-4.4-p23/bin/bash" tools/k3_fit_atf.sh: interpreter directive changed from "/bin/sh" to "/nix/store/9ywr69qi622lrmx5nn88gk8jpmihy0dz-bash-4.4-p23/bin/sh" patching script interpreter paths in arch/arm/mach-rockchip arch/arm/mach-rockchip/fit_spl_optee.sh: interpreter directive changed from "/bin/sh" to "/nix/store/9ywr69qi622lrmx5nn88gk8jpmihy0dz-bash-4.4-p23/bin/sh" arch/arm/mach-rockchip/make_fit_atf.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/p9hw3g46j9ms4x1nvkq9pv3x4iydx7la-python3-3.8.8-env/bin/python3" @nix { "action": "setPhase", "phase": "configurePhase" } configuring HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o YACC scripts/kconfig/zconf.tab.c LEX scripts/kconfig/zconf.lex.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf # # configuration written to .config # @nix { "action": "setPhase", "phase": "buildPhase" } building build flags: SHELL=/nix/store/9ywr69qi622lrmx5nn88gk8jpmihy0dz-bash-4.4-p23/bin/bash DTC=dtc CROSS_COMPILE= scripts/kconfig/conf --syncconfig Kconfig UPD include/config.h CFG u-boot.cfg cc1: warning: unknown register name: x18 GEN include/autoconf.mk GEN include/autoconf.mk.dep cc1: warning: unknown register name: x18 UPD include/config/uboot.release UPD include/generated/version_autogenerated.h UPD include/generated/timestamp_autogenerated.h UPD include/generated/dt.h CC lib/asm-offsets.s cc1: warning: unknown register name: x18 cc1: error: bad value ('armv8-a') for '-march=' switch cc1: note: valid arguments to '-march=' switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 native make[1]: *** [scripts/Makefile.build:155: lib/asm-offsets.s] Error 1 make: *** [Makefile:1839: prepare0] Error 2 ```

What am I doing wrong?

Thank you in advance!

bobbbay commented 3 years ago

Coolly enough, the regular -f iso builds, which makes sense since this error specifically mentions armv8-a.

Lassulus commented 3 years ago

I'm no expert on cross compiling, but it seems your gcc (or whatever compiler that is) does not support compiling for arm on your platform. Hopefully someone upstream (like on https://github.com/nixos/nixpkgs) can help you more.

bobbbay commented 3 years ago

Hey Lassulus,

Thank you! Funnily enough, I don't really have a compiler available in my shell... gcc, clang just aren't enabled (I'm sure they're on my system somewhere, though). Honestly, I expected nixos-generator to "just take care of it", including but not limited to pulling in a compiler. Am I getting this wrong, is that not how it works?

Funnily enough, now that I think of it, I noticed the cross-compiling header in the README but never added binfmt to my configs. But, after taking a look at the given example, I can't seem to understand how to configure these lines. I assume I won't use QEMU for cross-compiling? 🤪

Some guidance on this would be appreciated!

Lassulus commented 3 years ago

actually it uses QEMU for "cross-compiling" but that does not seem to be the issue here. Maybe try copying these binftm files and it could work then? nixos-generators is in itself just a small frontend around nixpkgs. Thats the place where most of the magic happens. we just pack some of its functionality inside a nice CLI. afair the binfmt stuff is now also in upstream nixos, i have it just configured via:

boot.binfmt.emulatedSystems = [
  "aarch64-linux"
];
bobbbay commented 3 years ago

Okay awesome, thank you very much.

Rebuilt system and proceeded to rebuild the image. Same error.

In this case, if you're certain this is an upstream error, please give me the +1 and I'll open an issue in nixpkgs.

Cheers!

Lassulus commented 3 years ago

uhm, maybe it works with 21.05 now? can you recheck? otherwise I guess an upstream issue could be more helpful to you :D