From 33da53e325bb04e7676531efbe58d238df8d2c85 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Fri, 15 Oct 2021 09:30:09 -0700 Subject: GCC: Conflict for <12 for M1 (#26318) aarch64/M1 is only a supported build combination for GCC in the planned GCC 12+ release. --- var/spack/repos/builtin/packages/gcc/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py index d8772b215e..83836cbf79 100644 --- a/var/spack/repos/builtin/packages/gcc/package.py +++ b/var/spack/repos/builtin/packages/gcc/package.py @@ -225,6 +225,10 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage): # Binutils can't build ld on macOS conflicts('+binutils', when='platform=darwin') + # aarch64/M1 is supported in GCC 12+ + conflicts('@:11.99', when='target=aarch64: platform=darwin', + msg='Only GCC 12 and newer support macOS M1 (aarch64)') + # 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', -- cgit v1.2.3-70-g09d2