[GHC] #10151: Compilation failed on mac, ghc: panic! (the 'impossible' happened)

#10151: Compilation failed on mac, ghc: panic! (the 'impossible' happened) -------------------------------------+------------------------------------- Reporter: jaseemabid | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.3 Keywords: | Operating System: MacOS X Architecture: | Type of failure: None/Unknown Unknown/Multiple | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- I was experimenting in ghci and this happened. {{{ ghc: panic! (the 'impossible' happened) (GHC version 7.8.3 for x86_64-apple-darwin): Loading temp shared object failed: dlopen(/var/folders/mj/k7lrnmkn13v753mbj7q6fmy00000gn/T/ghc32761_0/ghc32761_77.dylib, 9): Symbol not found: __hpc_tickboxes_lisperzm0zi1zi0zi0_LisperziCore_hpc Referenced from: /var/folders/mj/k7lrnmkn13v753mbj7q6fmy00000gn/T/ghc32761_0/ghc32761_77.dylib Expected in: flat namespace in /var/folders/mj/k7lrnmkn13v753mbj7q6fmy00000gn/T/ghc32761_0/ghc32761_77.dylib }}} Complete source code of the project that caused this: https://github.com/jaseemabid/lisper ghc version: 7.8.3 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10151 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10151: Compilation failed on mac, ghc: panic! (the 'impossible' happened) -------------------------------+------------------------------------------- Reporter: jaseemabid | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: GHCi | Version: 7.8.3 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------+------------------------------------------- Changes (by trommler): * cc: hvr (added) * failure: None/Unknown => GHCi crash * status: new => infoneeded * component: Compiler => GHCi Comment: This looks like #10058 which is fixed in HEAD. Can you try your code with HEAD? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10151#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10151: Compilation failed on mac, ghc: panic! (the 'impossible' happened) -------------------------------+------------------------------------------- Reporter: jaseemabid | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: GHCi | Version: 7.8.3 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------+------------------------------------------- Comment (by jaseemabid): I hit a similar error and it might be related. Source: https://github.com/jaseemabid/functorrent (Its a different project, but similar build and libraries) Version: ac4100f4f9ed09fcba4c482f3c245fc5837324b1 $ cabal test Preprocessing library functorrent-0.1.0.0... In-place registering functorrent-0.1.0.0... Preprocessing test suite 'lisper-test' for functorrent-0.1.0.0... Linking dist/build/lisper-test/lisper-test ... Undefined symbols for architecture x86_64: "_functorrentzm0zi1zi0zi0_FuncTorrentziUtils_zdwsplitN_closure", referenced from: _S7Tj_srt in libHSfunctorrent-0.1.0.0.a(Peer.o) _SeM6_srt in libHSfunctorrent-0.1.0.0.a(Tracker.o) "_functorrentzm0zi1zi0zi0_FuncTorrentziUtils_zdwsplitN_info", referenced from: _c8uZ_info in libHSfunctorrent-0.1.0.0.a(Peer.o) _c8yP_info in libHSfunctorrent-0.1.0.0.a(Peer.o) _functorrentzm0zi1zi0zi0_FuncTorrentziTracker_zdwurlEncodeHash_info in libHSfunctorrent-0.1.0.0.a(Tracker.o) _cfnK_info in libHSfunctorrent-0.1.0.0.a(Tracker.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Public build: https://travis- ci.org/jaseemabid/functorrent/builds/55397669 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10151#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10151: Compilation failed on mac, ghc: panic! (the 'impossible' happened) -------------------------------+------------------------------------------- Reporter: jaseemabid | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: GHCi | Version: 7.8.3 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------+------------------------------------------- Comment (by jaseemabid): The same can be compiled with Emacs' haskel-mode and the it runs fine. Its an issue only when invoked through `cabal test` -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10151#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10151: Compilation failed on mac, ghc: panic! (the 'impossible' happened) -------------------------------+------------------------------------------- Reporter: jaseemabid | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: GHCi | Version: 7.8.3 Resolution: invalid | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------+------------------------------------------- Changes (by mpickering): * status: infoneeded => closed * resolution: => invalid Comment: He was missing a module in his cabal file. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10151#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC