Installation of yesod-auth-1.4.13.2 fails with "ghc: panic! (the 'impossible' happened)"
I wanted to install hledger-web via "stack install hledger-web" which runs until it hits (this is the full output of the command, emphasis [+] was added):
yesod-auth-1.4.13.2: configure
yesod-auth-1.4.13.2: build
Progress: 1/3
-- While building package yesod-auth-1.4.13.2 using:
/Users/manuel/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_1.22.5.0_ghc-7.10.3 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.22.5.0 build --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to: /Users/manuel/.stack/global-project/.stack-work/logs/yesod-auth-1.4.13.2.log
Configuring yesod-auth-1.4.13.2...
Building yesod-auth-1.4.13.2...
Preprocessing library yesod-auth-1.4.13.2...
[ 1 of 12] Compiling Yesod.PasswordStore ( Yesod/PasswordStore.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/Yesod/PasswordStore.o )
/private/var/folders/36/cmdfg5j90vjgjww3qjnvhkhw0000gn/T/stack34153/yesod-auth-1.4.13.2/Yesod/PasswordStore.hs:166:31: Warning:
Defaulting the following constraint(s) to type ‘Integer’
(Integral b0)
arising from a use of ‘^’ at Yesod/PasswordStore.hs:166:31
(Num b0)
arising from the literal ‘32’ at Yesod/PasswordStore.hs:166:32-33
In the first argument of ‘(-)’, namely ‘2 ^ 32’
In the first argument of ‘(*)’, namely ‘(2 ^ 32 - 1)’
In the second argument of ‘(>)’, namely ‘(2 ^ 32 - 1) * hLen’
/private/var/folders/36/cmdfg5j90vjgjww3qjnvhkhw0000gn/T/stack34153/yesod-auth-1.4.13.2/Yesod/PasswordStore.hs:419:1: Warning:
Defined but not used: ‘toStrict’
/private/var/folders/36/cmdfg5j90vjgjww3qjnvhkhw0000gn/T/stack34153/yesod-auth-1.4.13.2/Yesod/PasswordStore.hs:422:1: Warning:
Defined but not used: ‘fromStrict’
[ 2 of 12] Compiling Yesod.Auth.Message ( Yesod/Auth/Message.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/Yesod/Auth/Message.o )
/private/var/folders/36/cmdfg5j90vjgjww3qjnvhkhw0000gn/T/stack34153/yesod-auth-1.4.13.2/Yesod/Auth/Message.hs:23:1: Warning:
The import of ‘mappend’ from module ‘Data.Monoid’ is redundant
/private/var/folders/36/cmdfg5j90vjgjww3qjnvhkhw0000gn/T/stack34153/yesod-auth-1.4.13.2/Yesod/Auth/Message.hs:698:1: Warning:
Defined but not used: ‘croatianMessage’
/private/var/folders/36/cmdfg5j90vjgjww3qjnvhkhw0000gn/T/stack34153/yesod-auth-1.4.13.2/Yesod/Auth/Message.hs:459:1: Warning:
Pattern match(es) are overlapped
In an equation for ‘finnishMessage’: finnishMessage Password = ...
/private/var/folders/36/cmdfg5j90vjgjww3qjnvhkhw0000gn/T/stack34153/yesod-auth-1.4.13.2/Yesod/Auth/Message.hs:459:1: Warning:
Pattern match(es) are non-exhaustive
In an equation for ‘finnishMessage’:
Patterns not matched: CurrentPassword
[ 3 of 12] Compiling Yesod.Auth.Routes ( Yesod/Auth/Routes.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/Yesod/Auth/Routes.o )
[ 4 of 12] Compiling Yesod.Auth ( Yesod/Auth.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/Yesod/Auth.o )
[++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]
ghc: panic! (the 'impossible' happened)
(GHC version 7.10.3 for x86_64-apple-darwin):
Loading temp shared object failed: dlopen(/var/folders/36/cmdfg5j90vjgjww3qjnvhkhw0000gn/T/ghc34454_0/libghc_21.dylib, 5): no suitable image found. Did find:
/var/folders/36/cmdfg5j90vjgjww3qjnvhkhw0000gn/T/ghc34454_0/libghc_21.dylib: malformed mach-o: load commands size (35400) > 32768
[++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
I have tried this installation multiple times over the last weeks, and have always failed with this error message.
If any further assistance is needed I will be happy to help.
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |