Bug 211074 - sysutils/uefi-edk2-bhyve: support building with gcc5 or later
Summary: sysutils/uefi-edk2-bhyve: support building with gcc5 or later
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Fabian Freyer
URL:
Keywords: feature, needs-qa, patch
Depends on:
Blocks:
 
Reported: 2016-07-13 08:51 UTC by Jan Beich
Modified: 2018-12-24 07:13 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (fabian.freyer)
koobs: merge-quarterly?


Attachments
v1 (1.84 KB, patch)
2016-07-13 08:51 UTC, Jan Beich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer 2016-07-13 08:51:31 UTC
Created attachment 172457 [details]
v1

Respect GCC version preference in make.conf e.g., DEFAULT_VERSIONS=gcc=5 . I've only checked poudriere build with the following configuratins.

- 10.3R amd64, gcc48, uefi-edk2-bhyve + uefi-edk2-bhyve-csm: OK
- 10.3R amd64, gcc5, uefi-edk2-bhyve + uefi-edk2-bhyve-csm: OK
Comment 1 Fabian Freyer 2016-07-14 13:05:32 UTC
related to bug #211079, USE_GCC adds a RUN_DEPEND
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2016-07-14 13:41:50 UTC
Reporter is committer, assign accordingly
Comment 3 Jan Beich freebsd_committer 2016-09-18 21:43:01 UTC
Resign - still no approval. Not sure why the patch here is blocked by bug 211079 but Clang remains out of scope i.e., after -Werror stuff it fails as

  $ BaseTools/Source/C/bin/GenFw -o Build/BhyveX64/RELEASE_GCC48/X64/BhyvePkg/BhyveAcpiTables/BhyveAcpiTables/OUTPUT/./Facp.acpi -c Build/BhyveX64/RELEASE_GCC48/X64/BhyvePkg/BhyveAcpiTables/BhyveAcpiTables/OUTPUT/./Facp.dll
  GenFw: ERROR 3000: Invalid
    Build/BhyveX64/RELEASE_GCC48/X64/BhyvePkg/BhyveAcpiTables/BhyveAcpiTables/OUTPUT/./Facp.dll unsupported ELF EM_X86_64 relocation 0x18.
  GenFw: ERROR 3000: Invalid
    Build/BhyveX64/RELEASE_GCC48/X64/BhyvePkg/BhyveAcpiTables/BhyveAcpiTables/OUTPUT/./Facp.dll unsupported ELF EM_X86_64 relocation 0x18.
Comment 4 Walter Schwarzenfeld freebsd_triage 2018-01-17 07:24:44 UTC
Is this still relevant?
Comment 5 Alan Somers freebsd_committer 2018-02-08 15:49:08 UTC
It's more relevant than ever, now that gcc48 is deprecated.
Comment 6 Alan Somers freebsd_committer 2018-02-08 15:51:34 UTC
It looks like upstream has fixed at least some of the problems with Clang.

https://github.com/tianocore/edk2/commit/d3bb711834acd3eda35a07d0be7911bc3dbb9e6f
Comment 7 Rebecca Cran freebsd_committer 2018-12-24 07:11:06 UTC
The "ERROR 3000" message is due to the build trying to use the system ld linker.
Installing binutils from ports and setting up symlinks such that /usr/local/bin/ld is used lets the build complete.
Comment 8 Rebecca Cran freebsd_committer 2018-12-24 07:13:52 UTC
Alan: one problem is that bhyve is stuck on the pretty ancient UDK2014 or UDK2014.SP1 branch (I can't recall which). Once I get my current work on UEFI support in the loader and installer out the way I plan to work on updating BhyvePkg to work with UDK2018.