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

#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 Keywords: | Operating System: Windows Architecture: x86 | Type of failure: Installing GHC | failed Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I got this problem while installing GHC 8.4.2 with the "stack install" command. I had successfully installed Stack and cloned https://github.com/haskell/haskell-ide-engine beforehand. The OS is Windows 10 (64b). The error message is on the screen copy herein attached. It is already such a long and difficult process to install Haskell, compared to similar PL ... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15140 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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: | ------------------------------------------+------------------------------ Changes (by fpanahi): * Attachment "HaskellInstallCrash.pdf" added. Screen copy of the message error -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15140 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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

#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): Can I at least roll back and re-install? I appreciate your help; I am an amateur, with a job that is not related to Haskell, so no much time to browse the litterature. Thanks -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15140#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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 hvr): Despite GHC suggesting to file this as a GHC bug, I'd suggest trying to report this to https://github.com/commercialhaskell/stack/issues Alternatively, I'd ask you to try to reproduce this without the use of Stack and let us know if the issue still occurs then. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15140#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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): I reported to https://github.com/commercialhaskell/stack/issues, issue #4020. Sorry, I am new in Haskell, and don't know how to do it without Stack. Do I need to rollback in some way? Thanks for your help. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15140#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15140: GHC 8.4.2 installation crash with Stack ------------------------------------------+------------------------------ Reporter: fpanahi | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.6.1 Component: Build System | Version: 8.4.2 Resolution: invalid | Keywords: Operating System: Windows | Architecture: x86 Type of failure: Installing GHC failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ------------------------------------------+------------------------------ Changes (by Phyx-): * status: new => closed * resolution: => invalid Comment: Right, this is indeed not a GHC bug. Stack's resolver has decided to link both `Win32` versions `2.5.4.1` and `2.6.1.0` together at the same time. For stack advice it's best to ask on their issue tracker as you have. Alternatively is using the Haskell Platform and using `cabal`. I've closed the ticket as this isn't a linker bug, re-open it if you believe it is. (You can still comment with it closed.) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15140#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC