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 <stesachs@amazon.com>
This commit is contained in:
Stephen Sachs 2022-11-29 13:36:48 -06:00 committed by GitHub
parent c6c74e98ff
commit 428f635142
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,6 +36,9 @@ class IntelOneapiCompilersClassic(Package):
version(ver) version(ver)
depends_on("intel-oneapi-compilers@" + oneapi_ver, when="@" + ver, type="run") 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 @property
def oneapi_compiler_prefix(self): def oneapi_compiler_prefix(self):
oneapi_version = self.spec["intel-oneapi-compilers"].version oneapi_version = self.spec["intel-oneapi-compilers"].version