PATCH v3] Compile TianoCore under Fedora Core 25
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v3 1/1 OvmfPkg/build.sh: Make GCC5 the default toolchain, catch GCC43 and earlier
v2:
* Changes suggested by Laszlo:
- change the catch-all (*) to GCC5, from GCC44
- remove the (5.*.*) pattern from GCC49
- generate error for GCC < 4.4
In v3, also generate error for really GCC < 4.4, like GCC 1.
Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=62
Contributed-under: TianoCore Contribution Agreement 1.0
---
v1: Initial
v2: Redo it per Laszlo suggestions
v3: Fix up commit message per Jordan
Also generate error for prehistoric versions of GCC, like 1.
--- OvmfPkg/build.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
OvmfPkg/build.sh +9 -2
@@ -83,6 +83,13 @@ case `uname` in Linux*) gcc_version=$(gcc -v 2>&1 | tail -1 | awk '{print $3}') case $gcc_version in + [1-3].*|4.[0-3].*) + echo OvmfPkg requires GCC4.4 or later + exit 1 + ;; + 4.4.*) + TARGET_TOOLS=GCC44 + ;; 4.5.*) TARGET_TOOLS=GCC45 ;;
@@ -95,11 +102,11 @@ case `uname` in 4.8.*) TARGET_TOOLS=GCC48 ;; - 4.9.*|4.1[0-9].*|5.*.*) + 4.9.*) TARGET_TOOLS=GCC49 ;; *) - TARGET_TOOLS=GCC44 + TARGET_TOOLS=GCC5 ;; esac esac
Signature · 7 lines
2.9.3 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
A message that is not in the archive (sent off-list or not yet received): [email protected]
Laszlo Ersek
Tested-byRe: [PATCH v3] OvmfPkg/build.sh: Make GCC5 the default toolchain, catch GCC43 and earlier
Quoted 45 lines · Konrad Rzeszutek Wilk
v2:
* Changes suggested by Laszlo:
- change the catch-all (*) to GCC5, from GCC44
- remove the (5.*.*) pattern from GCC49
- generate error for GCC < 4.4In v3, also generate error for really GCC < 4.4, like GCC 1.
Reviewed-by Laszlo Ersek <[email protected]>Reviewed-by Jordan Justen <[email protected]>Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=62
Contributed-under: TianoCore Contribution Agreement 1.0Signed-off-by Konrad Rzeszutek Wilk <[email protected]>---
v1: Initial
v2: Redo it per Laszlo suggestions
v3: Fix up commit message per Jordan
Also generate error for prehistoric versions of GCC, like 1.--- OvmfPkg/build.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)OvmfPkg/build.sh +7
-0@@ -83,6 +83,13 @@ case `uname` in Linux*) gcc_version=$(gcc -v 2>&1 | tail -1 | awk '{print $3}') case $gcc_version in + [1-3].*|4.[0-3].*) + echo OvmfPkg requires GCC4.4 or later + exit 1 + ;; + 4.4.*) + TARGET_TOOLS=GCC44 + ;; 4.5.*) TARGET_TOOLS=GCC45 ;;@@ -95,11 +102,11 @@ case `uname` in 4.8.*) TARGET_TOOLS=GCC48 ;;
OvmfPkg/build.sh case `uname` in · line 112
Quoted 10 lines
OvmfPkg/build.sh +2
-2- 4.9.*|4.1[0-9].*|5.*.*) + 4.9.*) TARGET_TOOLS=GCC49 ;; *) - TARGET_TOOLS=GCC44 + TARGET_TOOLS=GCC5 ;; esac esac
(With gcc-4.8.)
Pushed as commit 2667ad40919a.
Thank you!
Laszlo
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Hey!
Changelog:
v3: It is perfect!
- Redid commit per Jordan suggestion
- Redid the failure scenario per Laszlo suggestion
- Redid the testing
v2:
- Redid it per Laszlo suggestion, added the URL to the bugzilla system
- Tested it under more OSes
This patch allows me to compile TianoCore under Fedora Core 25.
I've also tested it (v2 and also this v3) under some more ancient distros, such as:
Ubuntu 16.04.1 (GCC 5.4.0), uses GCC5 Debian 8.6 (GCC 4.9.2), uses GCC49 Fedora Core 13 (GCC 4.4.4), uses GCC44 RHEL6 (GCC 4.4.7), uses GCC44
And on earlier versions, such as RHEL5:
[konrad@ol5 ovmf-dir]$ OvmfPkg/build.sh -a X64 -b RELEASE -n 4 Initializing workspace/home/konrad/ovmf-dir/BaseTools
Loading previous configuration from /home/konrad/ovmf-dir/Conf/BuildEnv.sh
WORKSPACE: /home/konrad/ovmf-dirEDK_TOOLS_PATH: /home/konrad/ovmf-dir/BaseToolsCONF_PATH: /home/konrad/ovmf-dir/Conf
OvmfPkg requires GCC4.4 or later
[konrad@ol5 ovmf-dir]$ gcc --version gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54)
[Oddly enough the previous run (v2) - on an different RHEL5 guest - had a different issue.]
Konrad Rzeszutek Wilk (1):
OvmfPkg/build.sh: Make GCC5 the default toolchain, catch GCC43 and earlier
OvmfPkg/build.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel