[GHC] #16130: GHC Panic on OS X: Data.Binary.Get.runGet: Invalid magic number "INPUT(-l"
GHC
ghc-devs at haskell.org
Fri Feb 15 22:43:51 UTC 2019
#16130: GHC Panic on OS X: Data.Binary.Get.runGet: Invalid magic number "INPUT(-l"
---------------------------------+----------------------------------------
Reporter: basvandijk | Owner: (none)
Type: bug | Status: new
Priority: high | Milestone:
Component: Compiler | Version: 8.6.3
Resolution: | Keywords:
Operating System: MacOS X | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
---------------------------------+----------------------------------------
Comment (by basvandijk):
Ok so on Nix `libc++.a` is an [https://sourceware.org/binutils/docs/ld
/Implicit-Linker-Scripts.html#Implicit-Linker-Scripts implicit linker
script]: `INPUT(-lc++_static -lc++abi)`.
Maybe we should give GHC support for linker scripts. Initially it could
just support the [https://sourceware.org/binutils/docs/ld/File-
Commands.html#File-Commands INPUT] command.
This shouldn't be that hard.
[https://gitlab.haskell.org/ghc/ghc/blob/master/compiler/main/Ar.hs
compiler/main/Ar.hs] needs to be adapted.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16130#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list