[GHC] #13810: Gold linker fails
GHC
ghc-devs at haskell.org
Sat Jun 10 14:49:45 UTC 2017
#13810: Gold linker fails
----------------------------------------+---------------------------------
Reporter: ksaric | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Keywords: linker | Operating System: Linux
Architecture: Unknown/Multiple | Type of failure: None/Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
----------------------------------------+---------------------------------
When using gold linker in the project, the compilation fails.
The same error occurs even when using nix, without stack.
The bug can be reproduced very easily.
You can clone from here (https://github.com/ksaric/bronze-linker) and
`stack build`.
Or you can:
- `stack new project`
- `cd project`
- `stack build`
Now it builds.
- then add gold flags to cabal like here - https://github.com/ksaric
/bronze-linker/blob/master/bronze-linker.cabal#L22-L25
- `stack build`
Now it fails.
----
Linking .stack-work/dist/x86_64-linux-nix/Cabal-1.24.2.0/build/bronze-
linker-exe/bronze-linker-exe ...
/nix/store/x9v0yxy5iybp2m2ccqwqkvxgjy7zrw8f-binutils-2.28/bin/ld.gold:
--hash-size=31: unknown option
/nix/store/x9v0yxy5iybp2m2ccqwqkvxgjy7zrw8f-binutils-2.28/bin/ld.gold: use
the --help option for usage information
collect2: error: ld returned 1 exit status
'cc' failed in phase 'Linker'. (Exit code: 1)
----
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13810>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list