From 428f63514248f1adb29c142f83f5c112c73d23f6 Mon Sep 17 00:00:00 2001 From: Stephen Sachs Date: Tue, 29 Nov 2022 13:36:48 -0600 Subject: [PATCH] icc@2021.6.0 does not support gcc@12 headers (#34191) Error message: ``` /shared/spack/opt/spack/linux-amzn2-x86_64_v3/gcc-7.3.1/gcc-12.2.0-4tairupdxg2tg2yhvjdlbs7xbd7wudl3/bin/../include/c++/12.2.0/bits/random.h(104): error: expected a declaration { extension using type = unsigned __int128; }; ^ ``` Co-authored-by: Stephen Sachs --- .../builtin/packages/intel-oneapi-compilers-classic/package.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/var/spack/repos/builtin/packages/intel-oneapi-compilers-classic/package.py b/var/spack/repos/builtin/packages/intel-oneapi-compilers-classic/package.py index 1b81e0ff63..7622b6aed8 100644 --- a/var/spack/repos/builtin/packages/intel-oneapi-compilers-classic/package.py +++ b/var/spack/repos/builtin/packages/intel-oneapi-compilers-classic/package.py @@ -36,6 +36,9 @@ class IntelOneapiCompilersClassic(Package): version(ver) depends_on("intel-oneapi-compilers@" + oneapi_ver, when="@" + ver, type="run") + # icc@2021.6.0 does not support gcc@12 headers + conflicts("%gcc@12:", when="@:2021.6.0") + @property def oneapi_compiler_prefix(self): oneapi_version = self.spec["intel-oneapi-compilers"].version