summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2021-04-20 09:27:12 +0200
committerGitHub <noreply@github.com>2021-04-20 09:27:12 +0200
commit173954e568303c2675b60778b5944abce65dabea (patch)
tree3772cb0de039aa9dbf980fa9a226a93e5805f619
parent7e6b76301ade33355a8e35b80c2fd21f87f13017 (diff)
downloadspack-173954e568303c2675b60778b5944abce65dabea.tar.gz
spack-173954e568303c2675b60778b5944abce65dabea.tar.bz2
spack-173954e568303c2675b60778b5944abce65dabea.tar.xz
spack-173954e568303c2675b60778b5944abce65dabea.zip
binutils: drop overly strict conflicts for assembler/linker (#23122)
This has been checked with gcc on ubuntu 16.04, which ships binutils 2.26 by default, using spack's binutils 2.36. Only the combination +gas and ~ld seems to trigger this incompatibility with debug symbols (gcc -g -O2 main.c fails with the error in the comment above the conflict)
-rw-r--r--var/spack/repos/builtin/packages/binutils/package.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/binutils/package.py b/var/spack/repos/builtin/packages/binutils/package.py
index 3f73bdbe9f..063ad46df4 100644
--- a/var/spack/repos/builtin/packages/binutils/package.py
+++ b/var/spack/repos/builtin/packages/binutils/package.py
@@ -61,14 +61,13 @@ class Binutils(AutotoolsPackage, GNUMirrorPackage):
conflicts('+gold', when='platform=darwin',
msg="Binutils cannot build linkers on macOS")
- # When you build binutils with ~ld and +gas and load it in your PATH, you may
- # end up with an incompatibility between linker and assembler, in particular:
- # "unable to initialize decompress status for section .debug_info" is the error
- # I've encountered.
- conflicts('~gas', '+ld', msg="Linker and assembler should be the same version")
- conflicts('+gas', '~ld', msg="Linker and assembler should be the same version")
- conflicts('~gas', '+gold', msg="Linker and assembler should be the same version")
- conflicts('+gas', '~gold', msg="Linker and assembler should be the same version")
+ # 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")
def configure_args(self):
spec = self.spec