Created attachment 434458 [details] emerge --info xen-tools Xen-Tools 4.6.1-r1 build fails while building OVMF due to image size exceeding 1 MB limit. Happens with any of gcc 4.8.5, 4.9.4 and 5.3.0. Both hardened and vanilla exhibit it. Caused by attempting to build OVMF in RELEASE mode, which attempts to generate 1 MB image by default. It seems that patched by Gentoo, OVMF does not fit. Related log snippet: Generating FVMAIN_COMPACT FV #######Return Value = 2 GenFv: ERROR 3000: Invalid the required fv image size 0xcc7d0 exceeds the set fv image size 0xcc000 GenFds.py... : error 7000: Failed to generate FV ### ['GenFv', '-a', '/var/tmp/portage/app-emulation/xen-tools-4.6.1-r1/work/xen-4.6.1/tools/firmware/ovmf-dir-remote/Build/OvmfX64/RELEASE_GCC48/FV/Ffs/FVMAIN_COMPACT.inf', '-o', '/var/tmp/portage/app-emulation/xen-tools-4.6.1-r1/work/xen-4.6.1/tools/firmware/ovmf-dir-remote/Build/OvmfX64/RELEASE_GCC48/FV/FVMAIN_COMPACT.Fv', '-i', '/var/tmp/portage/app-emulation/xen-tools-4.6.1-r1/work/xen-4.6.1/tools/firmware/ovmf-dir-remote/Build/OvmfX64/RELEASE_GCC48/FV/FVMAIN_COMPACT.inf']
I don't use xen but use ovmf with qemu with image size 2MB. I think it should not be a problem to increase the image size to 2 MB.
Cannot reproduce with xen 4.10.1, please report back if it's still an issue. We had an ovmf update before, so maybe the size was increased with that sync.