binutils-gold breaks haskell (ghc)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Raspbian |
Won't Fix
|
Low
|
Unassigned |
Bug Description
I installed binutils-gold because of some problem with clang not being able to link C files. I tried compiling some haskell code with ghc and saw errors in the linker
(specifically
bob@sweden:
[1 of 1] Compiling Main ( 001.hs, 001.o )
Linking 001 ...
/usr/bin/ld: --hash-size=31: unknown option
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
bob@sweden:
)
It links correctly when I aptitude purge binutils-gold (I guess that the version of ld in binutils-gold is older than the one currently in binutils and does not support the linker option passed by ghc?).
Initially reported to http://
We don't have anyone with linker internals experiance in raspbian and even if we did we would be unlikely to spend their time troubleshooting the combination of a non-default linker and a compiler for an obscure programming language.
The bigger issue is that clang doesn't work with the regular linker, I intend to bring that one up with debian for jessie (bringing it up now would probablly just result in the armhf port of clang being kicked out).