* [PATCH 0/3] Xen: CI changes for new toolchain baseline
@ 2025-03-20 15:32 Andrew Cooper
2025-03-20 15:32 ` [PATCH 2/3] Xen: Update compiler checks Andrew Cooper
2025-03-20 15:32 ` [PATCH 3/3] CHANGELOG: Minimum toolchain requirements Andrew Cooper
0 siblings, 2 replies; 8+ messages in thread
From: Andrew Cooper @ 2025-03-20 15:32 UTC (permalink / raw)
To: Xen-devel
Cc: Andrew Cooper, Anthony PERARD, Michal Orzel, Jan Beulich,
Julien Grall, Roger Pau Monné, Stefano Stabellini,
Oleksii Kurochko
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
--
2.39.5
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/3] Xen: Update compiler checks
2025-03-20 15:32 [PATCH 0/3] Xen: CI changes for new toolchain baseline Andrew Cooper
@ 2025-03-20 15:32 ` Andrew Cooper
2025-03-20 15:43 ` Jan Beulich
2025-03-20 15:32 ` [PATCH 3/3] CHANGELOG: Minimum toolchain requirements Andrew Cooper
1 sibling, 1 reply; 8+ messages in thread
From: Andrew Cooper @ 2025-03-20 15:32 UTC (permalink / raw)
To: Xen-devel
Cc: Andrew Cooper, Anthony PERARD, Michal Orzel, Jan Beulich,
Julien Grall, Roger Pau Monné, Stefano Stabellini,
Oleksii Kurochko
We didn't really have a Clang check before, so add one while adjusting the GCC
check.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Anthony PERARD <anthony.perard@vates.tech>
CC: Michal Orzel <michal.orzel@amd.com>
CC: Jan Beulich <jbeulich@suse.com>
CC: Julien Grall <julien@xen.org>
CC: Roger Pau Monné <roger.pau@citrix.com>
CC: Stefano Stabellini <sstabellini@kernel.org>
CC: Oleksii Kurochko <oleksii.kurochko@gmail.com>
---
xen/include/xen/compiler.h | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/xen/include/xen/compiler.h b/xen/include/xen/compiler.h
index b118e4ba62eb..cc955be32664 100644
--- a/xen/include/xen/compiler.h
+++ b/xen/include/xen/compiler.h
@@ -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/20210107111841.GN1551@shell.armlinux.org.uk
- */
-# 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")
--
2.39.5
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 2/3] Xen: Update compiler checks
2025-03-20 15:32 ` [PATCH 2/3] Xen: Update compiler checks Andrew Cooper
@ 2025-03-20 15:43 ` Jan Beulich
0 siblings, 0 replies; 8+ messages in thread
From: Jan Beulich @ 2025-03-20 15:43 UTC (permalink / raw)
To: Andrew Cooper
Cc: Anthony PERARD, Michal Orzel, Julien Grall, Roger Pau Monné,
Stefano Stabellini, Oleksii Kurochko, Xen-devel
On 20.03.2025 16:32, Andrew Cooper wrote:
> --- a/xen/include/xen/compiler.h
> +++ b/xen/include/xen/compiler.h
> @@ -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/20210107111841.GN1551@shell.armlinux.org.uk
> - */
> -# 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 3/3] CHANGELOG: Minimum toolchain requirements
2025-03-20 15:32 [PATCH 0/3] Xen: CI changes for new toolchain baseline Andrew Cooper
2025-03-20 15:32 ` [PATCH 2/3] Xen: Update compiler checks Andrew Cooper
@ 2025-03-20 15:32 ` Andrew Cooper
2025-03-20 15:44 ` Jan Beulich
2025-03-21 16:20 ` Oleksii Kurochko
1 sibling, 2 replies; 8+ messages in thread
From: Andrew Cooper @ 2025-03-20 15:32 UTC (permalink / raw)
To: Xen-devel
Cc: Andrew Cooper, Anthony PERARD, Michal Orzel, Jan Beulich,
Julien Grall, Roger Pau Monné, Stefano Stabellini,
Oleksii Kurochko
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Anthony PERARD <anthony.perard@vates.tech>
CC: Michal Orzel <michal.orzel@amd.com>
CC: Jan Beulich <jbeulich@suse.com>
CC: Julien Grall <julien@xen.org>
CC: Roger Pau Monné <roger.pau@citrix.com>
CC: Stefano Stabellini <sstabellini@kernel.org>
CC: Oleksii Kurochko <oleksii.kurochko@gmail.com>
---
CHANGELOG.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9a5919585d43..4e333e608a96 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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:
--
2.39.5
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 3/3] CHANGELOG: Minimum toolchain requirements
2025-03-20 15:32 ` [PATCH 3/3] CHANGELOG: Minimum toolchain requirements Andrew Cooper
@ 2025-03-20 15:44 ` Jan Beulich
2025-03-21 16:20 ` Oleksii Kurochko
1 sibling, 0 replies; 8+ messages in thread
From: Jan Beulich @ 2025-03-20 15:44 UTC (permalink / raw)
To: Andrew Cooper
Cc: Anthony PERARD, Michal Orzel, Julien Grall, Roger Pau Monné,
Stefano Stabellini, Oleksii Kurochko, Xen-devel
On 20.03.2025 16:32, Andrew Cooper wrote:
> --- a/CHANGELOG.md
> +++ b/CHANGELOG.md
> @@ -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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/3] CHANGELOG: Minimum toolchain requirements
2025-03-20 15:32 ` [PATCH 3/3] CHANGELOG: Minimum toolchain requirements Andrew Cooper
2025-03-20 15:44 ` Jan Beulich
@ 2025-03-21 16:20 ` Oleksii Kurochko
1 sibling, 0 replies; 8+ messages in thread
From: Oleksii Kurochko @ 2025-03-21 16:20 UTC (permalink / raw)
To: Andrew Cooper, Xen-devel
Cc: Anthony PERARD, Michal Orzel, Jan Beulich, Julien Grall,
Roger Pau Monné, Stefano Stabellini
[-- Attachment #1: Type: text/plain, Size: 1101 bytes --]
On 3/20/25 4:32 PM, Andrew Cooper wrote:
> Signed-off-by: Andrew Cooper<andrew.cooper3@citrix.com>
> ---
> CC: Anthony PERARD<anthony.perard@vates.tech>
> CC: Michal Orzel<michal.orzel@amd.com>
> CC: Jan Beulich<jbeulich@suse.com>
> CC: Julien Grall<julien@xen.org>
> CC: Roger Pau Monné<roger.pau@citrix.com>
> CC: Stefano Stabellini<sstabellini@kernel.org>
> CC: Oleksii Kurochko<oleksii.kurochko@gmail.com>
> ---
> CHANGELOG.md | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/CHANGELOG.md b/CHANGELOG.md
> index 9a5919585d43..4e333e608a96 100644
> --- a/CHANGELOG.md
> +++ b/CHANGELOG.md
> @@ -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.
>
> ### Added
> - On x86:
[-- Attachment #2: Type: text/html, Size: 2447 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH RESEND 0/3] Xen: CI changes for new toolchain baseline
@ 2025-03-20 15:59 Andrew Cooper
2025-03-20 15:59 ` [PATCH 2/3] Xen: Update compiler checks Andrew Cooper
0 siblings, 1 reply; 8+ messages in thread
From: Andrew Cooper @ 2025-03-20 15:59 UTC (permalink / raw)
To: Xen-devel
Cc: Andrew Cooper, Anthony PERARD, Michal Orzel, Jan Beulich,
Julien Grall, Roger Pau Monné, Stefano Stabellini,
Oleksii Kurochko
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
--
2.39.5
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/3] Xen: Update compiler checks
2025-03-20 15:59 [PATCH RESEND 0/3] Xen: CI changes for new toolchain baseline Andrew Cooper
@ 2025-03-20 15:59 ` Andrew Cooper
2025-03-21 22:10 ` Stefano Stabellini
0 siblings, 1 reply; 8+ messages in thread
From: Andrew Cooper @ 2025-03-20 15:59 UTC (permalink / raw)
To: Xen-devel
Cc: Andrew Cooper, Anthony PERARD, Michal Orzel, Jan Beulich,
Julien Grall, Roger Pau Monné, Stefano Stabellini,
Oleksii Kurochko
We didn't really have a Clang check before, so add one while adjusting the GCC
check.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Anthony PERARD <anthony.perard@vates.tech>
CC: Michal Orzel <michal.orzel@amd.com>
CC: Jan Beulich <jbeulich@suse.com>
CC: Julien Grall <julien@xen.org>
CC: Roger Pau Monné <roger.pau@citrix.com>
CC: Stefano Stabellini <sstabellini@kernel.org>
CC: Oleksii Kurochko <oleksii.kurochko@gmail.com>
---
xen/include/xen/compiler.h | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/xen/include/xen/compiler.h b/xen/include/xen/compiler.h
index b118e4ba62eb..cc955be32664 100644
--- a/xen/include/xen/compiler.h
+++ b/xen/include/xen/compiler.h
@@ -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/20210107111841.GN1551@shell.armlinux.org.uk
- */
-# 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")
--
2.39.5
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 2/3] Xen: Update compiler checks
2025-03-20 15:59 ` [PATCH 2/3] Xen: Update compiler checks Andrew Cooper
@ 2025-03-21 22:10 ` Stefano Stabellini
0 siblings, 0 replies; 8+ messages in thread
From: Stefano Stabellini @ 2025-03-21 22:10 UTC (permalink / raw)
To: Andrew Cooper
Cc: Xen-devel, Anthony PERARD, Michal Orzel, Jan Beulich,
Julien Grall, Roger Pau Monné, Stefano Stabellini,
Oleksii Kurochko
[-- Attachment #1: Type: text/plain, Size: 1875 bytes --]
On Thu, 20 Mar 2025, Andrew Cooper wrote:
> We didn't really have a Clang check before, so add one while adjusting the GCC
> check.
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
> ---
> CC: Anthony PERARD <anthony.perard@vates.tech>
> CC: Michal Orzel <michal.orzel@amd.com>
> CC: Jan Beulich <jbeulich@suse.com>
> CC: Julien Grall <julien@xen.org>
> CC: Roger Pau Monné <roger.pau@citrix.com>
> CC: Stefano Stabellini <sstabellini@kernel.org>
> CC: Oleksii Kurochko <oleksii.kurochko@gmail.com>
> ---
> xen/include/xen/compiler.h | 16 ++++------------
> 1 file changed, 4 insertions(+), 12 deletions(-)
>
> diff --git a/xen/include/xen/compiler.h b/xen/include/xen/compiler.h
> index b118e4ba62eb..cc955be32664 100644
> --- a/xen/include/xen/compiler.h
> +++ b/xen/include/xen/compiler.h
> @@ -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/20210107111841.GN1551@shell.armlinux.org.uk
> - */
> -# 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")
> --
> 2.39.5
>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-03-21 22:10 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-20 15:32 [PATCH 0/3] Xen: CI changes for new toolchain baseline Andrew Cooper
2025-03-20 15:32 ` [PATCH 2/3] Xen: Update compiler checks Andrew Cooper
2025-03-20 15:43 ` Jan Beulich
2025-03-20 15:32 ` [PATCH 3/3] CHANGELOG: Minimum toolchain requirements Andrew Cooper
2025-03-20 15:44 ` Jan Beulich
2025-03-21 16:20 ` Oleksii Kurochko
-- strict thread matches above, loose matches on Subject: below --
2025-03-20 15:59 [PATCH RESEND 0/3] Xen: CI changes for new toolchain baseline Andrew Cooper
2025-03-20 15:59 ` [PATCH 2/3] Xen: Update compiler checks Andrew Cooper
2025-03-21 22:10 ` Stefano Stabellini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.