[GHC] #12198: Stack fails to compile using GHC 8.0.1 on MacOS 10.12

GHC ghc-devs at haskell.org
Thu Jun 16 21:01:39 UTC 2016


#12198: Stack fails to compile using GHC 8.0.1 on MacOS 10.12
-------------------------------------+-------------------------------------
           Reporter:  mistydemeo     |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.0.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 GHC failed when trying to build stack from source on MacOS 10.12 using GHC
 8.0.1.

 The relevant part of the error is here:

 {{{
 [ 1 of 87] Compiling Stack.FileWatch  ( src/Stack/FileWatch.hs, dist/dist-
 sandbox-68bf8d9c/build/Stack/FileWatch.o )
 [ 2 of 87] Compiling System.Process.PagerEditor (
 src/System/Process/PagerEditor.hs, dist/dist-sandbox-
 68bf8d9c/build/System/Process/PagerEditor.o )
 [ 3 of 87] Compiling System.Process.Log ( src/System/Process/Log.hs, dist
 /dist-sandbox-68bf8d9c/build/System/Process/Log.o )
 [ 4 of 87] Compiling System.Process.Read ( src/System/Process/Read.hs,
 dist/dist-sandbox-68bf8d9c/build/System/Process/Read.o )
 ghc: panic! (the 'impossible' happened)
   (GHC version 8.0.1 for x86_64-apple-darwin):
         Loading temp shared object failed:
 dlopen(/var/folders/4d/rttdp_9d2s7f36zplgwnqrgr0000gn/T/ghc94633_0/libghc_44.dylib,
 5): no suitable image found.  Did find:
 /var/folders/4d/rttdp_9d2s7f36zplgwnqrgr0000gn/T/ghc94633_0/libghc_44.dylib:
 malformed mach-o: load commands size (40192) > 32768
 }}}

 Full build logs (includes dependency installation via cabal-install):
 https://gist.github.com/8e005710eab17139c02267bac3029e33

 This occurred when installing stack, but reporting here because of the
 "Please report this as a GHC bug" message in the failed build output.

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


More information about the ghc-tickets mailing list