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)
How do I make this as solved?
I'll add the static flag and close this ticket.
Still not compiling for some reason
Now I get te__((ms_abi))" -maccumulate-outgoing-args -mno-red-zone -Wno-address -mcmodel=small -fpie -fno-asynchronous-unwind-tables -Wno-address -flto -DUSING_LTO -Os -mno-mmx -mno-sse -D DISABLE_NEW_DEPRECATED_INTERFACES -D ENABLE_MD5_DEPRECATED_INTERFACES -c -o /usr/ports/sysutils/uefi-edk2-bhyve/work/Build/BhyveX64/DEBUG_GCC5/X64/MdePkg/Library/BasePeCoffLib/BasePeCoffLib/OUTPUT/./PeCoffLoaderEx.obj -I/usr/ports/sysutils/uefi-edk2-bhyve/work/edk2-edk2-stable202102/MdePkg/Library/BasePeCoffLib -I/usr/ports/sysutils/uefi-edk2-bhyve/work/Build/BhyveX64/DEBUG_GCC5/X64/MdePkg/Library/BasePeCoffLib/BasePeCoffLib/DEBUG -I/usr/ports/sysutils/uefi-edk2-bhyve/work/edk2-edk2-stable202102/MdePkg -I/usr/ports/sysutils/uefi-edk2-bhyve/work/edk2-edk2-stable202102/MdePkg/Include -I/usr/ports/sysutils/uefi-edk2-bhyve/work/edk2-edk2-stable202102/MdePkg/Test/UnitTest/Include -I/usr/ports/sysutils/uefi-edk2-bhyve/work/edk2-edk2-stable202102/MdePkg/Include/X64 /usr/ports/sysutils/uefi-edk2-bhyve/work/edk2-edk2-stable202102/MdePkg/Library/BasePeCoffLib/PeCoffLoaderEx.c rm -f /usr/ports/sysutils/uefi-edk2-bhyve/work/Build/BhyveX64/DEBUG_GCC5/X64/MdePkg/Library/BasePeCoffLib/BasePeCoffLib/OUTPUT/BasePeCoffLib.lib "gcc-ar" cr /usr/ports/sysutils/uefi-edk2-bhyve/work/Build/BhyveX64/DEBUG_GCC5/X64/MdePkg/Library/BasePeCoffLib/BasePeCoffLib/OUTPUT/BasePeCoffLib.lib @/usr/ports/sysutils/uefi-edk2-bhyve/work/Build/BhyveX64/DEBUG_GCC5/X64/MdePkg/Library/BasePeCoffLib/BasePeCoffLib/OUTPUT/object_files.lst ar: unrecognized option `--plugin' usage: ar -d [-Tjsvz] archive file ... ar -m [-Tjsvz] archive file ... ar -m [-Tabijsvz] position archive file ... ar -p [-Tv] archive [file ...] ar -q [-TcDjsUvz] archive file ... ar -r [-TcDjsUuvz] archive file ... ar -r [-TabcDijsUuvz] position archive file ... ar -s [-jz] archive ar -t [-Tv] archive [file ...] ar -x [-CTouv] archive [file ...] ar -V make[2]: *** [GNUmakefile:311: /usr/ports/sysutils/uefi-edk2-bhyve/work/Build/BhyveX64/DEBUG_GCC5/X64/MdePkg/Library/BasePeCoffLib/BasePeCoffLib/OUTPUT/BasePeCoffLib.lib] Error 64 make[2]: Leaving directory '/usr/ports/sysutils/uefi-edk2-bhyve/work/Build/BhyveX64/DEBUG_GCC5/X64/MdePkg/Library/BasePeCoffLib/BasePeCoffLib' build.py... : error 7000: Failed to execute command make tbuild [/usr/ports/sysutils/uefi-edk2-bhyve/work/Build/BhyveX64/DEBUG_GCC5/X64/MdePkg/Library/BasePeCoffLib/BasePeCoffLib] build.py... : error 7000: Failed to execute command make tbuild [/usr/ports/sysutils/uefi-edk2-bhyve/work/Build/BhyveX64/DEBUG_GCC5/X64/MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib] build.py... : error F002: Failed to build module /usr/ports/sysutils/uefi-edk2-bhyve/work/edk2-edk2-stable202102/MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf [X64, GCC5, DEBUG]
(In reply to Rebecca Cran from comment #4) Adding the "EXTRA_LDFLAGS=-static" option fixes the "CXXABI_1.3.8" problem for me. I don't see the second problem reported in comment 8. Building ports from ports r2022Q1 on 13.1-BETA2.
Happens to me right now. I'm on STABLE-13, and gcc48 is picked up by sysutils/uefi-edk2-bhyve-csm. I'm using portmaster, so all packages required are installed globally. I think about moving to dsynth but not ready for that yet. Ans yes, STATIC doesn't help all.
Where is it?
The sysutils/uefi-edk2-bhyve port was deleted and the sysutils/edk2 port was updated with a new bhyve FLAVOR.
The port was deleted and functionality is now provided by edk2@bhyve (i.e. a new bhyve FLAVOR of sysutils/edk2).
Why not to add this change to UPDATING? I can't compile it even with bhyve FLAVOR of sysutils/edk2, getting syntax errors.
An entry was added to MOVED noting the change. What errors are you getting, and how are you building it? If you could provide the command and output here I can hopefully help.
Re-open to provide help with compilation.
(In reply to Rebecca Cran from comment #15) # FLAVOR=bhyve make <...skipped...> "gcc" -MMD -MF /usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdeModulePkg/Library/UefiHiiLib/UefiHiiLib/OUTPUT/HiiLib.obj.deps -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -fno-common -ffunction-sections -fdata-sections -DSTRING_ARRAY_NAME=UefiHiiLibStrings -m64 -fno-stack-protector "-DEFIAPI=__attribute__((ms_abi))" -maccumulate-outgoing-args -mno-red-zone -Wno-address -mcmodel=small -fpie -fno-asynchronous-unwind-tables -Wno-address -flto -DUSING_LTO -Os -Wno-unused-but-set-variable -Wno-unused-const-variable -DMDEPKG_NDEBUG -mno-mmx -mno-sse -D DISABLE_NEW_DEPRECATED_INTERFACES -D ENABLE_MD5_DEPRECATED_INTERFACES -c -o /usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdeModulePkg/Library/UefiHiiLib/UefiHiiLib/OUTPUT/./HiiLib.obj -I/usr/ports/sysutils/edk2/work-bhyve/edk2-edk2-stable202202/MdeModulePkg/Library/UefiHiiLib -I/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdeModulePkg/Library/UefiHiiLib/UefiHiiLib/DEBUG -I/usr/ports/sysutils/edk2/work-bhyve/edk2-edk2-stable202202/MdePkg -I/usr/ports/sysutils/edk2/work-bhyve/edk2-edk2-stable202202/MdePkg/Include -I/usr/ports/sysutils/edk2/work-bhyve/edk2-edk2-stable202202/MdePkg/Test/UnitTest/Include -I/usr/ports/sysutils/edk2/work-bhyve/edk2-edk2-stable202202/MdePkg/Include/X64 -I/usr/ports/sysutils/edk2/work-bhyve/edk2-edk2-stable202202/MdeModulePkg -I/usr/ports/sysutils/edk2/work-bhyve/edk2-edk2-stable202202/MdeModulePkg/Include -I/usr/ports/sysutils/edk2/work-bhyve/edk2-edk2-stable202202/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/include /usr/ports/sysutils/edk2/work-bhyve/edk2-edk2-stable202202/MdeModulePkg/Library/UefiHiiLib/HiiLib.c rm -f /usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint/OUTPUT/UefiDriverEntryPoint.lib "gcc-ar" cr /usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint/OUTPUT/UefiDriverEntryPoint.lib @/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint/OUTPUT/object_files.lst rm -f /usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdePkg/Library/UefiUsbLib/UefiUsbLib/OUTPUT/UefiUsbLib.lib "gcc-ar" cr /usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdePkg/Library/UefiUsbLib/UefiUsbLib/OUTPUT/UefiUsbLib.lib @/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdePkg/Library/UefiUsbLib/UefiUsbLib/OUTPUT/object_files.lst ar: unrecognized option `--plugin' usage: ar -d [-Tjsvz] archive file ... ar -m [-Tjsvz] archive file ... ar -m [-Tabijsvz] position archive file ... ar -p [-Tv] archive [file ...] ar -q [-TcDjsUvz] archive file ... ar -r [-TcDjsUuvz] archive file ... ar -r [-TabcDijsUuvz] position archive file ... ar -s [-jz] archive ar -t [-Tv] archive [file ...] ar -x [-CTouv] archive [file ...] ar -V make[1]: *** [GNUmakefile:297: /usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdePkg/Library/UefiUsbLib/UefiUsbLib/OUTPUT/UefiUsbLib.lib] Error 1 make[1]: Leaving directory '/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdePkg/Library/UefiUsbLib/UefiUsbLib' build.py... : error 7000: Failed to execute command make tbuild [/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdePkg/Library/UefiUsbLib/UefiUsbLib] build.py... : error 7000: Failed to execute command make tbuild [/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint] build.py... : error 7000: Failed to execute command make tbuild [/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib] build.py... : error 7000: Failed to execute command make tbuild [/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdeModulePkg/Library/UefiHiiLib/UefiHiiLib] build.py... : error 7000: Failed to execute command make tbuild [/usr/ports/sysutils/edk2/work-bhyve/Build/BhyveX64/RELEASE_GCC5/X64/MdePkg/Library/UefiLib/UefiLib] build.py... : error F002: Failed to build module /usr/ports/sysutils/edk2/work-bhyve/edk2-edk2-stable202202/MdePkg/Library/UefiUsbLib/UefiUsbLib.inf [X64, GCC5, RELEASE] - Failed - Build end time: 22:48:33, Jun.12 2022 Build total time: 00:00:51 *** Error code 1 Stop. make: stopped in /usr/ports/sysutils/edk2
Sorry for the delay in working on this again. Are you still having a problem compiling the port?