[GHC] #15140: GHC 8.4.2 installation crash with Stack

GHC ghc-devs at haskell.org
Thu May 10 18:09:57 UTC 2018


#15140: GHC 8.4.2 installation crash with Stack
------------------------------------------+------------------------------
        Reporter:  fpanahi                |                Owner:  (none)
            Type:  bug                    |               Status:  new
        Priority:  normal                 |            Milestone:  8.6.1
       Component:  Build System           |              Version:  8.4.2
      Resolution:                         |             Keywords:
Operating System:  Windows                |         Architecture:  x86
 Type of failure:  Installing GHC failed  |            Test Case:
      Blocked By:                         |             Blocking:
 Related Tickets:                         |  Differential Rev(s):
       Wiki Page:                         |
------------------------------------------+------------------------------

Comment (by fpanahi):

 Here is the error message:

       package directory (directory-1.3.1.5-J5MwWdrFyEn9y6RDLELiL1)
 requires time-1.8.0.2-D1fwd9ZaD3eDd2StmPCsSC
     Preprocessing library for ghc-exactprint-0.5.6.1..
     Building library for ghc-exactprint-0.5.6.1..
     [ 1 of 13] Compiling Language.Haskell.GHC.ExactPrint.Types (
 src\Language\Haskell\GHC\ExactPrint\Types.hs, .stack-
 work\dist\7d103d30\build\Language\Haskell\GHC\ExactPrint\Types.o )
     [ 2 of 13] Compiling Language.Haskell.GHC.ExactPrint.Lookup (
 src\Language\Haskell\GHC\ExactPrint\Lookup.hs, .stack-
 work\dist\7d103d30\build\Language\Haskell\GHC\ExactPrint\Lookup.o )
     [ 3 of 13] Compiling Language.Haskell.GHC.ExactPrint.AnnotateTypes (
 src\Language\Haskell\GHC\ExactPrint\AnnotateTypes.hs, .stack-
 work\dist\7d103d30\build\Language\Haskell\GHC\ExactPrint\AnnotateTypes.o )
     GHC runtime linker: fatal error: I found a duplicate definition for
 symbol
        rgb
     whilst processing object file
 C:\Users\Farhad\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.2\lib\Win32-2.6.1.0\HSWin32-2.6.1.0.o
     The symbol was previously defined in
        C:\sr\snapshots\03fa9465\lib\x86_64-windows-
 ghc-8.4.2\Win32-2.5.4.1-LVNqK0SwW285hUwHpPOkae\HSWin32-2.5.4.1-LVNqK0SwW285hUwHpPOkae.o
     This could be caused by:
        * Loading two different object files which export the same symbol
        * Specifying the same object file twice on the GHCi command line
        * An incorrect `package.conf' entry, causing some object to be
          loaded twice.
     ghc.EXE: panic! (the 'impossible' happened)
       (GHC version 8.4.2 for x86_64-unknown-mingw32):
         loadObj
 "C:\\Users\\Farhad\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-8.4.2\\lib\\Win32-2.6.1.0\\HSWin32-2.6.1.0.o":
 failed

     Please report this as a GHC bug:
 http://www.haskell.org/ghc/reportabug

 c:\hie>

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15140#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list