Bug 233073 - sysutils/uefi-edk2-bhyve Fails to build
Summary: sysutils/uefi-edk2-bhyve Fails to build
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Marcelo Araujo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-08 12:53 UTC by Rob Belics
Modified: 2019-08-14 08:59 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (araujo)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Belics 2018-11-08 12:53:42 UTC
11.2-RELEASE-p4

"/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/Build/gcc" -x c -E -P -DVFRCOMPILE --include /usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/Build/BhyveX64/RELEASE_GCC48/X64/IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe/DEBUG/BdsDxeStrDefs.h -I/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/IntelFrameworkModulePkg/Universal/BdsDxe/DeviceMngr -I/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/IntelFrameworkModulePkg/Universal/BdsDxe/BootMngr -I/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint -I/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/IntelFrameworkModulePkg/Universal/BdsDxe -I/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/Build/BhyveX64/RELEASE_GCC48/X64/IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe/DEBUG -I/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/MdePkg -I/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/MdePkg/Include -I/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/MdePkg/Include/X64 -I/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/MdeModulePkg -I/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/MdeModulePkg/Include -I/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/IntelFrameworkPkg -I/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/IntelFrameworkPkg/Include -I/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/IntelFrameworkModulePkg -I/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/IntelFrameworkModulePkg/Include /usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/IntelFrameworkModulePkg/Universal/BdsDxe/DeviceMngr/DeviceManagerVfr.Vfr > /usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/Build/BhyveX64/RELEASE_GCC48/X64/IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe/OUTPUT/DeviceManagerVfr.i
"VfrCompile" -l -n --string-db /usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/Build/BhyveX64/RELEASE_GCC48/X64/IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe/OUTPUT/BdsDxeStrDefs.hpk --output-directory /usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/Build/BhyveX64/RELEASE_GCC48/X64/IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe/DEBUG/DeviceMngr /usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/Build/BhyveX64/RELEASE_GCC48/X64/IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe/OUTPUT/DeviceManagerVfr.i
Cannot open "/usr/local/lib/gcc6/libstdc++.so.6"
make[2]: *** [GNUmakefile:945: /usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/Build/BhyveX64/RELEASE_GCC48/X64/IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe/DEBUG/DeviceMngr/DeviceManagerVfr.c] Error 1
make[2]: Leaving directory '/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/Build/BhyveX64/RELEASE_GCC48/X64/IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe'


build.py...
 : error 7000: Failed to execute command
	/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/Build/make tbuild [/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/Build/BhyveX64/RELEASE_GCC48/X64/IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe]


build.py...
 : error F002: Failed to build module
	/usr/ports/sysutils/uefi-edk2-bhyve/work/uefi-edk2-0.2/IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf [X64, GCC48, RELEASE]

- Failed -
Build end time: 06:45:56, Nov.08 2018
Build total time: 00:00:29

*** Error code 1

Stop.
make[1]: stopped in /usr/ports/sysutils/uefi-edk2-bhyve
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/uefi-edk2-bhyve

===>>> make build failed for sysutils/uefi-edk2-bhyve
===>>> Aborting update
Comment 1 Rob Belics 2018-11-08 12:55:05 UTC
Build also fails for uefi-edk2-bhyve-csm
Comment 2 Rebecca Cran freebsd_committer 2019-03-28 21:15:08 UTC
I've also seen this occur, on a system with multiple gcc versions installed: for some reason the wrong one gets used when building BaseTools, then when those binaries are run they can't find libstdc++ for some reason.

The update to the port that's being worked on at the moment will fix that by statically linking the BaseTools binaries.
Comment 3 Walter Schwarzenfeld freebsd_triage 2019-08-14 08:59:33 UTC
Maintainer feedback, please!