ghc assumes that ld can understand --hash-size [regression]
On my Fedora 17 box, I'm using gold as the default linker, and I cannot link any packages built with GHC 7.6 because GHC seems to be passing an invalid argument to the linker.
$ cabal install -v random
[... blah blah blah ...]
/bin/ld -x --hash-size=31 --reduce-memory-overheads -r -o dist/build/HSrandom-1.0.1.1.o dist/build/System/Random.o
/bin/ld: --hash-size=31: unknown option
/bin/ld: use the --help option for usage information
Failed to install random-1.0.1.1
This does not happen with GHC 7.4 or earlier.
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.1-rc1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |