Re: -current build.sh install-image failure
> > > /home/sysbuild/amd64/tools/bin/nbgpt work.img biosboot -i 2 > > > -c > > > /home/sysbuild/amd64/obj/home/sysbuild/src/distrib/amd64/installimage/work/usr/mdec/gptmbr.bin > > > nbgpt: work.img: No secondary GPT header; run recover > > > *** Failed target: NetBSD-9.99.82-amd64-install.img > > > *** Failed command: /home/sysbuild/amd64/tools/bin/nbgpt work.img > > > biosboot -i 2 -c > > > /home/sysbuild/amd64/obj/home/sysbuild/src/distrib/amd64/installimage/work/usr/mdec/gptmbr.bin > > > *** Error code 1 > > > Stop. > > > nbmake[4]: stopped in /home/sysbuild/src/distrib/amd64/installimage > > > . > > > > This is due to a stale installation file. There is ongoing discussion > > of this problem for PR 56132. Please look there! As a work-around, > > > > rm -rf /build/netbsd-local/obj/amd64/distrib/amd64/installimage/ > > Thanks, removing the directory let me complete the build. My usual > first reaction to a build failure is to 'make cleandir' in the source > directories and remove the old obj directory completely; in most cases > if there were a real problem it has already been addressed by NetBSD > developers and the build is OK; in this case I had removed all the > obj, tools and destdir directories just three days ago and didn't > expect an early fallout... The main problem is that iso_image, live_image, and install_image targets of build.sh (and src/Makefile) hide detailed directory structures for building images, so currently there is no way to "clean objects only in image dirs". A possible way is to add explicit targets like iso_image_clean, live_image_clean, and install_image_clean etc. in all Makefiles under src/distrib? Anyway, we have workarounds but still need review by Makefile gurus: https://mail-index.netbsd.org/netbsd-bugs/2021/04/29/msg071345.html https://mail-index.netbsd.org/netbsd-bugs/2021/05/01/msg071360.html --- Izumi Tsutsui
Re: -current build.sh install-image failure
On Thu, 29 Apr 2021 at 22:20, Paul Goyette wrote: > > On Thu, 29 Apr 2021, Chavdar Ivanov wrote: > > > ... > > Populating `work.efi' > > Image `work.efi' complete > > cat work.mbr.truncated work.efi imgroot.fs work.gpt > work.img > > /home/sysbuild/amd64/tools/bin/nbgpt work.img biosboot -i 2 > > -c > > /home/sysbuild/amd64/obj/home/sysbuild/src/distrib/amd64/installimage/work/usr/mdec/gptmbr.bin > > nbgpt: work.img: No secondary GPT header; run recover > > *** Failed target: NetBSD-9.99.82-amd64-install.img > > *** Failed command: /home/sysbuild/amd64/tools/bin/nbgpt work.img > > biosboot -i 2 -c > > /home/sysbuild/amd64/obj/home/sysbuild/src/distrib/amd64/installimage/work/usr/mdec/gptmbr.bin > > *** Error code 1 > > Stop. > > nbmake[4]: stopped in /home/sysbuild/src/distrib/amd64/installimage > > . > > This is due to a stale installation file. There is ongoing discussion > of this problem for PR 56132. Please look there! As a work-around, > > rm -rf /build/netbsd-local/obj/amd64/distrib/amd64/installimage/ Thanks, removing the directory let me complete the build. My usual first reaction to a build failure is to 'make cleandir' in the source directories and remove the old obj directory completely; in most cases if there were a real problem it has already been addressed by NetBSD developers and the build is OK; in this case I had removed all the obj, tools and destdir directories just three days ago and didn't expect an early fallout... > > > > ++--+---+ > | Paul Goyette | PGP Key fingerprint: | E-mail addresses: | > | (Retired) | FA29 0E3B 35AF E8AE 6651 | p...@whooppee.com | > | Software Developer | 0786 F758 55DE 53BA 7731 | pgoye...@netbsd.org | > ++--+---+ Chavdar --
Re: -current build.sh install-image failure
On Thu, 29 Apr 2021, Chavdar Ivanov wrote: ... Populating `work.efi' Image `work.efi' complete cat work.mbr.truncated work.efi imgroot.fs work.gpt > work.img /home/sysbuild/amd64/tools/bin/nbgpt work.img biosboot -i 2 -c /home/sysbuild/amd64/obj/home/sysbuild/src/distrib/amd64/installimage/work/usr/mdec/gptmbr.bin nbgpt: work.img: No secondary GPT header; run recover *** Failed target: NetBSD-9.99.82-amd64-install.img *** Failed command: /home/sysbuild/amd64/tools/bin/nbgpt work.img biosboot -i 2 -c /home/sysbuild/amd64/obj/home/sysbuild/src/distrib/amd64/installimage/work/usr/mdec/gptmbr.bin *** Error code 1 Stop. nbmake[4]: stopped in /home/sysbuild/src/distrib/amd64/installimage . This is due to a stale installation file. There is ongoing discussion of this problem for PR 56132. Please look there! As a work-around, rm -rf /build/netbsd-local/obj/amd64/distrib/amd64/installimage/ ++--+---+ | Paul Goyette | PGP Key fingerprint: | E-mail addresses: | | (Retired) | FA29 0E3B 35AF E8AE 6651 | p...@whooppee.com | | Software Developer | 0786 F758 55DE 53BA 7731 | pgoye...@netbsd.org | ++--+---+
-current build.sh install-image failure
Hi, I see some failure reports at the moment; today my build stopped at install-image ( live-image was successful; as iso-image runs after install-image, it didn't take place). The excerpt of the log follows: . Preparing spec files for makefs... rm -f work.spec cat work/etc/mtree/* | /home/sysbuild/amd64/tools/bin/nbsed -e 's/ size=[0-9]*//' > work.spec /bin/sh work/dev/MAKEDEV -s all ipty | /home/sysbuild/amd64/tools/bin/nbsed -e '/^\. type=dir/d' -e 's,^\.,./dev,' >> work.spec cat /home/sysbuild/src/distrib/common/bootimage/spec.in >> work.spec echo "./boot type=file uname=root gname=wheel mode=0444" >> work.spec cat /home/sysbuild/src/distrib/amd64/installimage/spec.inst >> work.spec Creating rootfs... chmod +r work/var/spool/ftp/hidden /home/sysbuild/amd64/tools/bin/nbmakefs -M 1646264320 -m 1646264320 -B 1234 -F work.spec -N work/etc -o bsize=16384,fsize=2048,density=8192 work.rootfs work Calculated size of `work.rootfs': 1646264320 bytes, 10543 inodes Extent size set to 16384 work.rootfs: 1570.0MB (3215360 sectors) block size 16384, fragment size 2048 using 9 cylinder groups of 183.86MB, 11767 blks, 23552 inodes. super-block backups (for fsck -b #) at: 32, 376576, 753120, 1129664, 1506208, 1882752, 2259296, 2635840, 3012384, Populating `work.rootfs' Image `work.rootfs' complete /home/sysbuild/amd64/tools/bin/nbinstallboot -v -m amd64 work.rootfs work/usr/mdec/bootxx_ffsv1 File system: work.rootfs Primary bootstrap: work/usr/mdec/bootxx_ffsv1 Ignoring PBR with invalid magic in sector 0 of `work.rootfs' Boot options:timeout 5, flags 0, speed 9600, ioaddr 0, console pc done. mv work.rootfs imgroot.fs create EFI system partition... /home/sysbuild/amd64/tools/bin/x86_64--netbsd-install -c -m 0644 work/usr/mdec/bootx64.efi work.efidir/EFI/boot/`basename work/usr/mdec/bootx64.efi` /home/sysbuild/amd64/tools/bin/x86_64--netbsd-install -c -m 0644 work/usr/mdec/bootia32.efi work.efidir/EFI/boot/`basename work/usr/mdec/bootia32.efi` rm -f work.efi /home/sysbuild/amd64/tools/bin/nbmakefs -M 128m -m 128m -B 1234 -t msdos -o F=32,c=1 work.efi work.efidir Creating `work.efi' work.efi: 258078 sectors in 258078 FAT32 clusters (512 bytes/cluster) MBR type: 11 bps=512 spc=1 res=32 nft=2 mid=0xf0 spt=63 hds=255 hid=0 bsec=262144 bspf=2017 rdcl=2 infs=1 bkbs=2 Populating `work.efi' Image `work.efi' complete cat work.mbr.truncated work.efi imgroot.fs work.gpt > work.img /home/sysbuild/amd64/tools/bin/nbgpt work.img biosboot -i 2 -c /home/sysbuild/amd64/obj/home/sysbuild/src/distrib/amd64/installimage/work/usr/mdec/gptmbr.bin nbgpt: work.img: No secondary GPT header; run recover *** Failed target: NetBSD-9.99.82-amd64-install.img *** Failed command: /home/sysbuild/amd64/tools/bin/nbgpt work.img biosboot -i 2 -c /home/sysbuild/amd64/obj/home/sysbuild/src/distrib/amd64/installimage/work/usr/mdec/gptmbr.bin *** Error code 1 Stop. nbmake[4]: stopped in /home/sysbuild/src/distrib/amd64/installimage . Chavdar --