[Bug 263543] sysutils/edk2: Fails to build with GCC > 11 (all flavors)

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 12 Sep 2022 10:54:36 UTC

--- Comment #19 from Lorenzo Salvadore <salvadore@freebsd.org> ---
(In reply to Mark Millard from comment #18)

Thanks Mark.

Unfortunately, I could not test the patch on aarch64 too, however it seems to
me that the problem you are referencing is not related to the last commit as

- you already referenced it in comment #2 (it is the same, am I wrong?) and it
is maybe also the same that Emmanuel has referenced in comment #15;

- the same error seems to have already been reported by pkg-fallout at
https://lists.freebsd.org/archives/freebsd-uboot/2022-September/000273.html ,
which is before last commit.

So I think that as far as the last commit is involved, things are still fine.
If they are not, we can always revert the commit and put USE_GCC=11 so that
this port does not block the GCC_DEFAULT upgrade.

If I understood correctly comment #2, adding EXTRA_LDFLAGS+=
-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT} fixes the issue. May I encourage
you to open a new bug report and submit a patch with your fix?

You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.