[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 21:48: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):

 As I [https://github.com/NixOS/nixpkgs/issues/55848#issuecomment-464212640
 just discovered], apparently my `libc++.a` in my Nix store contains the
 following:

 {{{
 > cat /nix/store/jv40yw2ny28nnpbf860aaqq1dhga0f0r-
 libc++-5.0.2/lib/libc++.a
 INPUT(-lc++_static -lc++abi)
 }}}

 Note that the first 8 bytes of this file are `INPUT(-` which is exactly
 what GHC is panicking about. It seems that GHC is expecting `libc++.a` to
 be a binary archive while in fact it's some kind of textual reference to
 the real archive `libc++_static.a` which can be found in the same
 directory.

 Are these textual archive file a Nix-specific thing that GHC doesn't
 support?

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16130#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list