
#12152: panic: Loading temp shared object failed -------------------------------------+------------------------------------- Reporter: crockeea | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.2 Component: Compiler | Version: 7.8.1 (Linking) | Resolution: fixed | Keywords: Operating System: Linux | Architecture: | Unknown/Multiple Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by toonn): I think I ran into this with 8.2.2: {{{ Loading cabal new-repl --ghc-options=-fobject-code test-suite:mpw ... Build profile: -w ghc-8.2.2 -O1 In order, the following will be built (use -v for more details): - skeletonkey-0.0.0.0 (test:mpw) (file tests/Main.hs changed) Preprocessing test suite 'mpw' for skeletonkey-0.0.0.0.. GHCi, version 8.2.2: http://www.haskell.org/ghc/ :? for help <no location info>: warning: [-Wmissing-home-modules] These modules are needed for compilation but not listed in your .cabal file's other-modules: KDF MAC MPAlgorithm MPW.Path MPW.Test MPWTemplates Types Ok, 8 modules loaded. All good (8 modules, at 13:42:23) Running test... ghc: panic! (the 'impossible' happened) (GHC version 8.2.2 for x86_64-unknown-linux): Loading temp shared object failed: /tmp/ghc24637_0/libghc_3.so: undefined symbol: MPWziPath_mpwTestsXml_closure Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug ...done }}} I created `MPW.Path` so I could avoid having `{-# LANGUAGE CPP #-}` in `MPW.Tests` because that doesn't agree with string gaps. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12152#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler