GHC fails with "Loading temp shared object failed"
While developing Yesod project on GHC 7.8.3,
cabal install --force-reinstalls failed with the following error:
[9 of 9] Compiling Application ( Application.hs, dist/dist-sandbox-e4ea4713/build/Application.o ) ghc: panic! (the 'impossible' happened) (GHC version 7.8.3 for x86_64-apple-darwin): Loading temp shared object failed: dlopen(/var/folders/qk/6s42bj3n6g30fyqf6mc2x_c80000gn/T/ghc13386_0/ghc13386_53.dylib, 9): Symbol not found: _aesonzm0zi8zi0zi1_DataziAesonziTypesziInternal_zdsfromList1_closure Referenced from: /var/folders/qk/6s42bj3n6g30fyqf6mc2x_c80000gn/T/ghc13386_0/ghc13386_53.dylib Expected in: flat namespace in /var/folders/qk/6s42bj3n6g30fyqf6mc2x_c80000gn/T/ghc13386_0/ghc13386_53.dylib Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug cabal: Error: some packages failed to install: MyBlog-0.0.0 failed during the building phase. The exception was: ExitFailure 1
(Full output at https://gist.github.com/MaxGabriel/847561107e4ee2e869f1. Verbose output at https://gist.github.com/MaxGabriel/10c2c3c253815b3f392a)
Following compilation, both aeson-0.8.0.1 and aeson-0.8.0.2 are present in the sandbox. Running
cabal install again yields the same error (full output at https://gist.github.com/MaxGabriel/9aa530105d68a613de11).
The code for the project as it was when the panic happened is available here: https://github.com/MaxGabriel/MyBlog-GHC-Panic
Is there more information I could provide to diagnose the bug?
I'll probably wipe the sandbox and try recompiling in a bit.
Version info: OS : OS X 10.10 (14A389) (Yosemite) Cabal: cabal-install version 220.127.116.11 using version 18.104.22.168 of the Cabal library GHC: The Glorious Glasgow Haskell Compilation System, version 7.8.3
Edit: Probably relevant that the original package set was compiled under OS X 10.9 (Mavericks). The reinstall that triggered the panic was under Yosemite.