Bug 263546

Summary: sysutils/uefi-edk2-qemu: Build fails with GCC 11 (both flavors)
Product: Ports & Packages Reporter: Lorenzo Salvadore <salvadore>
Component: Individual Port(s)Assignee: Rebecca Cran <bcran>
Status: Closed FIXED    
Severity: Affects Some People CC: bcran, gerald, salvadore
Priority: --- Flags: bugzilla: maintainer-feedback? (bcran)
Version: Latest   
Hardware: Any   
OS: Any   
URL: http://package22.nyi.freebsd.org/data/130amd64-default-foo/2022-05-26_19h07m28s/logs/uefi-edk2-qemu-x86_64-g20191122.log
Bug Depends on:    
Bug Blocks: 258378    
Attachments:
Description Flags
uefi-edk2-qemu - require gcc10 salvadore: maintainer-approval? (bcran)

Description Lorenzo Salvadore freebsd_committer freebsd_triage 2022-04-24 22:49:00 UTC
Updating GCC_DEFAULT from GCC 10 to GCC 11 is blocked by the fact that building this port with GCC 11 fails. Please see the logs at the following urls:

http://package18.nyi.freebsd.org/data/122amd64-default-foo/2021-09-18_18h41m21s/logs/errors/uefi-edk2-qemu-i386-g20191122.log
http://package18.nyi.freebsd.org/data/122amd64-default-foo/2021-09-18_18h41m21s/logs/errors/uefi-edk2-qemu-x86_64-g20191122.log

Also, it should be checked if USE_GCC is still needed and that the default clang compiler can't be used instead.
Comment 1 Rebecca Cran freebsd_committer freebsd_triage 2022-04-25 01:32:44 UTC
I'll submit the review to update the port later today.
Comment 2 Rebecca Cran freebsd_committer freebsd_triage 2022-04-27 15:21:52 UTC
I've submitted https://reviews.freebsd.org/D35053
Comment 3 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-05-31 10:02:10 UTC
A new exp-run has been done and the port is still reported to be broken, both on amd64 and i386.

Here are the new logs:
http://package22.nyi.freebsd.org/data/130amd64-default-foo/2022-05-26_19h07m28s/logs/uefi-edk2-qemu-x86_64-g20191122.log
http://package22.nyi.freebsd.org/data/130amd64-default-foo/2022-05-26_19h07m28s/logs/uefi-edk2-qemu-i386-g20191122.log

In case fixing is complicate, please consider adding USE_GCC=10 to the port.
Comment 4 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-06-06 22:36:31 UTC
Created attachment 234508 [details]
uefi-edk2-qemu - require gcc10

I propose a patch to require GCC 10. Please approve the patch at least as a temporary fix so that the GCC default version update can go forward.
Comment 5 Rebecca Cran freebsd_committer freebsd_triage 2022-06-06 23:24:02 UTC
I'm about to commit https://reviews.freebsd.org/D35408 as the fix.
Comment 6 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-06-06 23:28:13 UTC
(In reply to Rebecca Cran from comment #5)

Great, thank you very much.
Comment 7 Rebecca Cran freebsd_committer freebsd_triage 2022-06-06 23:39:16 UTC
Sorry for the extreme slowness of this fix. I've just committed the deletion of sysutils/uefi-edk2-qemu and the addition of sysutils/edk2@qemu_x64 and sysutils/edk2@qemu_i386 .
Comment 8 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-06-07 00:34:13 UTC
(In reply to Rebecca Cran from comment #7)

Thanks, and don't worry for the slowness: those ports are complex and your hard work is much appreciated.

Link to the commit:
https://cgit.freebsd.org/ports/commit/?id=177204e3190b7e608f39df4160217aad578ab7ef