Created attachment 223037 [details] compilation of port Compiliation will not recognise a C++ Library
So the thing that ends up causing the build to fail is the following: ld-elf.so.1: /usr/local/lib/compat/libstdc++.so.6: version CXXABI_1.3.8 required by /usr/ports/sysutils/uefi-edk2-bhyve/work/edk2-2e1e8c35f3178df95d79da81ac6deec242da74c2/BaseTools/Source/C/bin/VfrCompile not found From my experience this is normally caused by an unusual toolchain configuration being installed, for example gcc48. From discussions on the mailing list I understand it's not caused by that this time, but it's possible options in /etc/make.conf are causing problems.
In one system there is no /etc/make.conf so defaults.
Looks like the libstbc++.so is the issue. Just a simple rename does the trick
I think I might have found the issue. If you don't mind doing some testing, could you do the following: On the following line (line 83) in sysutils/uefi-edk2-bhyve/Makefile (cd ${WRKDIR} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C edk2-${GH_TAGNAME}/BaseTools -j ${MAKE_JOBS_NUMBER} ${_MAKE_JOBS}) Add the following at the end of the line but before the closing parenthesis: EXTRA_LDFLAGS=-static The line should look like: (cd ${WRKDIR} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C edk2-${GH_TAGNAME}/BaseTools -j ${MAKE_JOBS_NUMBER} ${_MAKE_JOBS} EXTRA_LDFLAGS=-static)