diff options
author | Seth R. Johnson <johnsonsr@ornl.gov> | 2020-02-27 21:56:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 18:56:48 -0800 |
commit | 09a1f09fd0d93f2ab0e5a238ad0a4d9129651994 (patch) | |
tree | 1b715c1d73261ec2ce49846a22dac83da2252740 | |
parent | 17fbf78593d6d5b9373f1acc7fdb57ef34125799 (diff) | |
download | spack-09a1f09fd0d93f2ab0e5a238ad0a4d9129651994.tar.gz spack-09a1f09fd0d93f2ab0e5a238ad0a4d9129651994.tar.bz2 spack-09a1f09fd0d93f2ab0e5a238ad0a4d9129651994.tar.xz spack-09a1f09fd0d93f2ab0e5a238ad0a4d9129651994.zip |
Mark GCC7 and newer as conflicting with rhel6 without binutils (#14706)
When building gcc7 and gcc8 on RHEL6 with Spack and installing it as
a spack-available compiler, OpenBLAS will fail to compile because GCC
generates newer instructions than rhel6's `as` assembler knows about
(e.g. "vpermpd").
Building gcc8 with binutils succeeds, and it generates a GCC that can
then successfully build OpenBLAS. This is also expected to work for
gcc7 on RHEL6.
-rw-r--r-- | var/spack/repos/builtin/packages/gcc/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py index 431fcaa9da..b3a6cd68ac 100644 --- a/var/spack/repos/builtin/packages/gcc/package.py +++ b/var/spack/repos/builtin/packages/gcc/package.py @@ -193,6 +193,11 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage): # Binutils can't build ld on macOS conflicts('+binutils', when='platform=darwin') + # 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') + if sys.platform == 'darwin': # Fix parallel build on APFS filesystem # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81797 |