
#15700: Plugins cause GHC to panic: cannot find dynamic libraries -------------------------------------+------------------------------------- Reporter: sheaf | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.6.1 Keywords: | Operating System: Windows Architecture: | Type of failure: Compile-time Unknown/Multiple | crash or panic Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- With GHC 8.6.1 on Windows 7 x64, I seem to be getting a similar problem as in ticket #15492. Trying to use any type-checking plugin at all causes an error. Here with the natnormalise plugin: {{{ ghc.EXE: panic! (the 'impossible' happened) (GHC version 8.6.1 for x86_64-unknown-mingw32): mkPluginUsage: no dylibs, tried: C:\Code\Haskell\dylibs_bug\.stack-work\install\df4dd97d\lib\x86_64 -windows-ghc-8.6.1\libHSghc-typelits- natnormalise-0.6.3-2vTVlu0GX1Q1cNTbomjNL6-ghc8.6.1.dll C:\Users\Sam\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\bin \libHSghc-typelits-natnormalise-0.6.3-2vTVlu0GX1Q1cNTbomjNL6-ghc8.6.1.dll C:\Users\Sam\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\mingw64\lib \libHSghc-typelits-natnormalise-0.6.3-2vTVlu0GX1Q1cNTbomjNL6-ghc8.6.1.dll GHC.TypeLits.Normalise Call stack: CallStack (from HasCallStack): callStackDoc, called at compiler\utils\Outputable.hs:1160:37 in ghc:Outputable pprPanic, called at compiler\\deSugar\\DsUsage.hs:179:15 in ghc:DsUsage }}} That's with stack. I also checked with Cabal 2.4.0.1 to make sure, and indeed I get: {{{ ghc.exe: panic! (the 'impossible' happened) (GHC version 8.6.1 for x86_64-unknown-mingw32): mkPluginUsage: no dylibs, tried: C:\Users\Sam\AppData\Roaming\cabal\store\ghc-8.6.1\ghc- typelits-_-0.6.2-faf29727b3dbdfa09cfb6f0c881a2a227b5d2bb0\lib\libHSghc- typelits-_-0.6.2-faf29727b3dbdfa09cfb6f0c881a2a227b5d2bb0-ghc8.6.1.dll C:\Program Files\ghc\mingw\lib\libHSghc- typelits-_-0.6.2-faf29727b3dbdfa09cfb6f0c881a2a227b5d2bb0-ghc8.6.1.dll GHC.TypeLits.Normalise Call stack: CallStack (from HasCallStack): callStackDoc, called at compiler\utils\Outputable.hs:1160:37 in ghc:Outputable pprPanic, called at compiler\\deSugar\\DsUsage.hs:179:15 in ghc:DsUsage }}} No problems with GHC 8.4.3. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15700 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler