[GHC] #14972: MacOS panic on TH

GHC ghc-devs at haskell.org
Sun Mar 25 21:03:20 UTC 2018


#14972: MacOS panic on TH
-------------------------------------+-------------------------------------
           Reporter:  harpocrates    |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.4.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  Compile-time
  Unknown/Multiple                   |  crash or panic
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 I recently did a clean build of master
 (affdea82bb70e5a912b679a169c6e9a230e4c93e) and, while everything
 successfully finished, I'm getting panics every time I try to use this GHC
 for something that involves TH.

 For example:

 {{{#!hs
 {-# language TemplateHaskell #-}

 pure []
 main = pure []
 }}}

 Crashes with

 {{{
 $ ./inplace/bin/ghc-stage2 th.hs
 [1 of 1] Compiling Main             ( th.hs, th.o )
 ghc-stage2: loadArchive: Failed reading header from
 `/Users/atheriault/Documents/code/ghc/libraries/integer-gmp/dist-
 install/build/gmp'
 ghc-stage2: panic! (the 'impossible' happened)
   (GHC version 8.5.20180325 for x86_64-apple-darwin):
         loadArchive "/Users/atheriault/Documents/code/ghc/libraries
 /integer-gmp/dist-install/build/gmp": failed

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
 }}}

 Normally I'd assume I haven't correctly configured something, yet I had no
 problem building and running GHC on this machine a month or so ago...

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


More information about the ghc-tickets mailing list