summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-11-10 17:42:45 +0100
committerGitHub <noreply@github.com>2022-11-10 17:42:45 +0100
commit9a793fe01b093abb69c1e314ce91c499cda75e1c (patch)
treed30d68661a44d27fdc3121494c679bd6ea31f942
parent6dd3c78924fa80ab9daa5594d4346ad19e16566a (diff)
downloadspack-9a793fe01b093abb69c1e314ce91c499cda75e1c.tar.gz
spack-9a793fe01b093abb69c1e314ce91c499cda75e1c.tar.bz2
spack-9a793fe01b093abb69c1e314ce91c499cda75e1c.tar.xz
spack-9a793fe01b093abb69c1e314ce91c499cda75e1c.zip
gcc: drop target bootstrap flags for aarch64 (#33813)
See https://github.com/spack/spack/issues/31184 GCC bootstrap logic adds `-mpcu` for libatomic (iirc), which conflicts with the `-march` flag we provide.
-rw-r--r--var/spack/repos/builtin/packages/gcc/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py
index f36980d8e7..6fbfdd27b1 100644
--- a/var/spack/repos/builtin/packages/gcc/package.py
+++ b/var/spack/repos/builtin/packages/gcc/package.py
@@ -681,7 +681,9 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage):
# concretization, so we'll stick to that. The other way around however can
# result in compilation errors, when gcc@7 is built with gcc@11, and znver3
# is taken as a the target, which gcc@7 doesn't support.
- if "+bootstrap %gcc" in self.spec:
+ # Note we're not adding this for aarch64 because of
+ # https://github.com/spack/spack/issues/31184
+ if "+bootstrap %gcc" in self.spec and self.spec.target.family != "aarch64":
flags += " " + self.get_common_target_flags(self.spec)
if "+bootstrap" in self.spec: