diff options
-rw-r--r-- | var/spack/repos/builtin/packages/gcc/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py index 6fbfdd27b1..d802a47d48 100644 --- a/var/spack/repos/builtin/packages/gcc/package.py +++ b/var/spack/repos/builtin/packages/gcc/package.py @@ -342,6 +342,14 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage): # Newer binutils than RHEL's is required to run `as` on some instructions # generated by new GCC (see https://github.com/spack/spack/issues/12235) conflicts("~binutils", when="@7: os=rhel6", msg="New GCC cannot use system assembler on RHEL6") + # Ditto for RHEL7/8: OpenBLAS uses flags which the RHEL system-binutils don't have: + # https://github.com/xianyi/OpenBLAS/issues/3805#issuecomment-1319878852 + conflicts( + "~binutils", when="@10: os=rhel7", msg="gcc: Add +binutils - preinstalled as might be old" + ) + conflicts( + "~binutils", when="@10: os=rhel8", msg="gcc: Add +binutils - preinstalled as might be old" + ) # GCC 11 requires GCC 4.8 or later (https://gcc.gnu.org/gcc-11/changes.html) conflicts("%gcc@:4.7", when="@11:") |