From 7247a493abb62d377f345a671a4cce3a4e40a426 Mon Sep 17 00:00:00 2001 From: Stephen Sachs Date: Wed, 16 Nov 2022 21:06:41 -0600 Subject: [PATCH] [xz] icc does not support attribute __symver__ (#33839) xz have added attribute __symver__ for compilers that identify as GCC>=10.0 via __GNUC__. Intels `icc` sets __GNUC__ but currently does not support this attribute: https://community.intel.com/t5/Intel-C-Compiler/symver-not-supported/m-p/1429028/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExBQVRWMjIyUFFZTlZTfDE0MjkwMjh8U1VCU0NSSVBUSU9OU3xoSw#M40459 --- var/spack/repos/builtin/packages/xz/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/xz/package.py b/var/spack/repos/builtin/packages/xz/package.py index 1224e0a9f9..5db7713d8c 100644 --- a/var/spack/repos/builtin/packages/xz/package.py +++ b/var/spack/repos/builtin/packages/xz/package.py @@ -39,6 +39,10 @@ class Xz(AutotoolsPackage, SourceforgePackage): description="Build shared libs, static libs or both", ) + # xz-5.2.7/src/liblzma/common/common.h:56 uses attribute __symver__ instead of + # __asm__(.symver) for newer GCC releases. + conflicts("%intel", when="@5.2.7", msg="icc does not support attribute __symver__") + def configure_args(self): return self.enable_or_disable("libs")