diff options
author | Jordan Galby <67924449+Jordan474@users.noreply.github.com> | 2023-10-03 17:28:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-03 17:28:55 +0200 |
commit | f0260c84b44e36a4bae911404bdfb017bf1737de (patch) | |
tree | 7d3ef4f1c6448858637a840f27e44bdace83dda1 | |
parent | 8746c75db005b03e2ff8c85d320b2755a8822aac (diff) | |
download | spack-f0260c84b44e36a4bae911404bdfb017bf1737de.tar.gz spack-f0260c84b44e36a4bae911404bdfb017bf1737de.tar.bz2 spack-f0260c84b44e36a4bae911404bdfb017bf1737de.tar.xz spack-f0260c84b44e36a4bae911404bdfb017bf1737de.zip |
Fix binutils regression on +gas~ld fix (#40292)
-rw-r--r-- | var/spack/repos/builtin/packages/binutils/package.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/binutils/package.py b/var/spack/repos/builtin/packages/binutils/package.py index 9e3e528c40..30aee917e0 100644 --- a/var/spack/repos/builtin/packages/binutils/package.py +++ b/var/spack/repos/builtin/packages/binutils/package.py @@ -96,13 +96,7 @@ class Binutils(AutotoolsPackage, GNUMirrorPackage): when="@2.37:", ) variant("ld", default=False, description="Enable ld.") - # When you build binutils with ~ld and +gas and load it in your PATH, you - # may end up with incompatibilities between a potentially older system ld - # and a recent assembler. For instance the linker on ubuntu 16.04 from - # binutils 2.26 and the assembler from binutils 2.36.1 will result in: - # "unable to initialize decompress status for section .debug_info" - # when compiling with debug symbols on gcc. - variant("gas", default=False, when="+ld", description="Enable as assembler.") + variant("gas", default=False, description="Enable as assembler.") variant("interwork", default=False, description="Enable interwork.") variant("gprofng", default=False, description="Enable gprofng.", when="@2.39:") variant( @@ -162,6 +156,14 @@ class Binutils(AutotoolsPackage, GNUMirrorPackage): "~lto", when="+pgo", msg="Profile-guided optimization enables link-time optimization" ) + # When you build binutils with ~ld and +gas and load it in your PATH, you + # may end up with incompatibilities between a potentially older system ld + # and a recent assembler. For instance the linker on ubuntu 16.04 from + # binutils 2.26 and the assembler from binutils 2.36.1 will result in: + # "unable to initialize decompress status for section .debug_info" + # when compiling with debug symbols on gcc. + conflicts("+gas", "~ld", msg="Assembler not always compatible with system ld") + @classmethod def determine_version(cls, exe): output = Executable(exe)("--version", output=str, error=str) |