[Bug 292544] Failed to build edk2-bhyve g202508.

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 20 Jan 2026 16:16:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292544

--- Comment #10 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to DYM from comment #9)

portmaster internally also uses "the ports tree and the make command directly"
without any issolated/clean environment for the build. portmaster use and use
like "cd /usr/ports/sysutils/edk2 && make" tend to have the same sort of
problems on this area. If one has a problem finding the right command to
execute, I'd expect the other to as well.

I had intended my wording to cover both of those contexts, even if I was not
clear.

It also turns out that the recent commit removed notation for controlling
which "ar" is found and used (the ar=${AR} notation below was deleted):

 # Heavily dependent on bsd.port.pre.mk definitions for lang/gcc* details:
 BINARY_ALIAS=  make=${GMAKE} \
-               dtc=${LOCALBASE}/bin/dtc \
-               ar=${AR} \
                gcc=${LOCALBASE}/bin/${CC} \
-               gcc-ar=${LOCALBASE}/bin/${CC:S/gcc/&-ar/} \
                g++=${LOCALBASE}/bin/${CXX} \
+               gcc-nm=${LOCALBASE}/bin/${CC:S/gcc/&-nm/} \
+               gcc-ar=${LOCALBASE}/bin/${CC:S/gcc/&-ar/} \
+               gcc-ranlib=${LOCALBASE}/bin/${CC:S/gcc/&-ranlib/} \
                python3=${PYTHON_CMD} python=${PYTHON_CMD}

I do not know why ar=${AR} was removed.

Alexey <9vlc@proton.me> is the author and Robert Clausecker <fuz@FreeBSD.org>
is the committer if you want to ask them.

-- 
You are receiving this mail because:
You are the assignee for the bug.