Xen: CI changes for new toolchain baseline
cover Xen: CI changes for new toolchain baseline
Prep work to allow us to start making changes based on the toolchain requirements.
https://gitlab.com/xen-project/people/andyhhp/xen/-/pipelines/1726628670
https://cirrus-ci.com/build/5232741505040384
Andrew Cooper (3):
CI: Update build tests based on new minimum toolchain requirements
Xen: Update compiler checks
CHANGELOG: Minimum toolchain requirements
CHANGELOG.md | 3 ++ automation/build/centos/7.dockerfile | 72 ---------------------------- automation/gitlab-ci/build.yaml | 30 ++++-------- xen/include/xen/compiler.h | 16 ++----- 4 files changed, 17 insertions(+), 104 deletions(-) delete mode 100644 automation/build/centos/7.dockerfile
base-commit: 6e5fed7cb67c9f84653cdbd3924b8a119ef653be
Signature · 1 line
2.39.5
PATCH 2/3 Xen: Update compiler checks
We didn't really have a Clang check before, so add one while adjusting the GCC check.
---
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Oleksii Kurochko <[email protected]>
--- xen/include/xen/compiler.h | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-)
xen/include/xen/compiler.h +4 -12
@@ -1,18 +1,10 @@#ifndef __LINUX_COMPILER_H#define __LINUX_COMPILER_H -#if !defined(__GNUC__) || (__GNUC__ <4 ) -#error Sorry, your compiler is too old/not recognized. -#elif CONFIG_CC_IS_GCC -# if defined(CONFIG_ARM_32 ) &&CONFIG_GCC_VERSION <40900 -# error Sorry, your version of GCC is too old - please use 4.9 or newer. -# elif defined(CONFIG_ARM_64 ) &&CONFIG_GCC_VERSION <50100 -/* -* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63293 -* https://lore.kernel.org/r/[email protected] -*/ -# error Sorry, your version of GCC is too old - please use 5.1 or newer. -# endif +#if CONFIG_CC_IS_GCC &&CONFIG_GCC_VERSION <50100 +# error Sorry, your version of GCC is too old - please use 5.1 or newer +#elif CONFIG_CC_IS_CLANG &&CONFIG_CLANG_VERSION <110000 +# error Sorry, your version of Clang is too old - please use 11 or newer#endif #define barrier () __asm__ __volatile__("": : :"memory")
Signature · 1 line
2.39.5
Re: [PATCH 2/3] Xen: Update compiler checks
Quoted 13 lines · Andrew Cooper
xen/include/xen/compiler.h +0
-7@@ -1,18 +1,10 @@#ifndef __LINUX_COMPILER_H#define __LINUX_COMPILER_H -#if !defined(__GNUC__) || (__GNUC__ <4 ) -#error Sorry, your compiler is too old/not recognized. -#elif CONFIG_CC_IS_GCC -# if defined(CONFIG_ARM_32 ) &&CONFIG_GCC_VERSION <40900 -# error Sorry, your version of GCC is too old - please use 4.9 or newer. -# elif defined(CONFIG_ARM_64 ) &&CONFIG_GCC_VERSION <50100 -/*
xen/include/xen/compiler.h line 8
Quoted 10 lines
xen/include/xen/compiler.h +4
-5-* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63293 -* https://lore.kernel.org/r/[email protected] -*/ -# error Sorry, your version of GCC is too old - please use 5.1 or newer. -# endif +#if CONFIG_CC_IS_GCC &&CONFIG_GCC_VERSION <50100 +# error Sorry, your version of GCC is too old - please use 5.1 or newer +#elif CONFIG_CC_IS_CLANG &&CONFIG_CLANG_VERSION <110000 +# error Sorry, your version of Clang is too old - please use 11 or newer#endif
While the Arm special cases can now indeed go away, shouldn't a RISC-V one appear instead, seeing what ./README says?
Jan
PATCH 3/3 CHANGELOG: Minimum toolchain requirements
In reply to Andrew Cooper---
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Oleksii Kurochko <[email protected]>
--- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+)
CHANGELOG.md +3 -0
@@ -7,6 +7,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [4.21.0 UNRELEASED](https://xenbits.xenproject.org/gitweb/?p=xen.git;a=shortlog;h=staging) - TBD ### Changed + - The minimum toolchain requirements have been increased to either: + - GCC 5.1 and Binutils 2.25, or + - Clang/LLVM 11 ### Added - On x86:
Signature · 1 line
2.39.5
Re: [PATCH 3/3] CHANGELOG: Minimum toolchain requirements
CHANGELOG.md The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · line 12
Quoted 9 lines · Andrew Cooper
CHANGELOG.md +3
-0@@ -7,6 +7,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [4.21.0 UNRELEASED](https://xenbits.xenproject.org/gitweb/?p=xen.git;a=shortlog;h=staging) - TBD ### Changed + - The minimum toolchain requirements have been increased to either: + - GCC 5.1 and Binutils 2.25, or + - Clang/LLVM 11
Like for the previous patch, take the opportunity and mention RISC-V here as well?
Jan
Re: [PATCH 3/3] CHANGELOG: Minimum toolchain requirements
In reply to Andrew CooperQuoted 18 lines · Andrew Cooper
Signed-off-by Andrew Cooper<[email protected]>---
CC: Anthony PERARD<[email protected]>
CC: Michal Orzel<[email protected]>
CC: Jan Beulich<[email protected]>
CC: Julien Grall<[email protected]>
CC: Roger Pau Monné<[email protected]>
CC: Stefano Stabellini<[email protected]>
CC: Oleksii Kurochko<[email protected]>--- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+)CHANGELOG.md +0
-0
CHANGELOG.md The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · line 12
Quoted 6 lines
CHANGELOG.md +3
-0@@ -7,6 +7,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [4.21.0 UNRELEASED](https://xenbits.xenproject.org/gitweb/?p=xen.git;a=shortlog;h=staging) - TBD ### Changed + - The minimum toolchain requirements have been increased to either: + - GCC 5.1 and Binutils 2.25, or + - Clang/LLVM 11
I think we have to specify here for which architectures as RISC-V support different minimal versions.
Quoted 3 lines
CHANGELOG.md +0
-0### Added - On x86: