Hi, I was facing the same issue in Ubuntu just recently and found that the upstream fix [1] does address this issue. I wanted to let you know so you can get this fixed as well a bit more easily - because from just knowing the error this is a head-scratcher.
When you have fixed this you most likely will still fail as the current build produces a slightly off-sized efi rom for the build, the attached patch on top of [1] will fix that as well. [2] has an Ubuntu build with it applied which makes it work with gcc-10.2 + glibc 2.32 + binutils 2.35.1 again. [1]: https://github.com/ipxe/ipxe/commit/f982a712979619dbae2c6e0d741757e2ce94be11 [2]: https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/4289/+packages -- Christian Ehrhardt Staff Engineer, Ubuntu Server Canonical Ltd
From cd9c3f19ab148e5fdf39190e99ee79780632fdb6 Mon Sep 17 00:00:00 2001 From: Christian Ehrhardt <christian.ehrha...@canonical.com> Date: Thu, 1 Oct 2020 11:00:20 +0200 Subject: [PATCH] d/util/geniso: fix FTBFS due to rounding issues In some cases there can be rounding issues on the efi content to image size. In those cases the build will fail with the image not being big enough. $ debian/util/geniso src/bin-combined/ipxe.iso src/bin-i386-pcbios/ipxe.lkrn \ src/bin-x86_64-efi/ipxe.efi Disk full Avoid this size-off-by-one by adding 1 block to the requested size. Signed-off-by: Christian Ehrhardt <christian.ehrha...@canonical.com> --- debian/util/geniso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/util/geniso b/debian/util/geniso index 13d9275e0..420533a45 100755 --- a/debian/util/geniso +++ b/debian/util/geniso @@ -32,7 +32,7 @@ cp /usr/lib/ISOLINUX/isolinux.bin ${dir} cp /usr/lib/syslinux/modules/bios/ldlinux.c32 ${dir} # generate EFI boot image -blocks=$((($(stat -c %s "$EFI") / 1024 + 55) / 32 * 32 )) +blocks=$(((($(stat -c %s "$EFI") / 1024 + 55) / 32 * 32 )+1)) mkfs.msdos -C ${dir}/efi.img $blocks >/dev/null mmd -i ${dir}/efi.img ::efi mmd -i ${dir}/efi.img ::efi/boot -- 2.28.0