{"action":"created","issue":{"url":"https://api.github.com/repos/DanielG/ghc-mod/issues/785","repository_url":"https://api.github.com/repos/DanielG/ghc-mod","labels_url":"https://api.github.com/repos/DanielG/ghc-mod/issues/785/labels{/name}","comments_url":"https://api.github.com/repos/DanielG/ghc-mod/issues/785/comments","events_url":"https://api.github.com/repos/DanielG/ghc-mod/issues/785/events","html_url":"https://github.com/DanielG/ghc-mod/issues/785","id":154236943,"number":785,"title":"'stack install ghc-mod' fails with latest LTS/Nightly snapshot on 64-bit Windows","user":{"login":"TerrorJack","id":3889585,"avatar_url":"https://avatars.githubusercontent.com/u/3889585?v=3","gravatar_id":"","url":"https://api.github.com/users/TerrorJack","html_url":"https://github.com/TerrorJack","followers_url":"https://api.github.com/users/TerrorJack/followers","following_url":"https://api.github.com/users/TerrorJack/following{/other_user}","gists_url":"https://api.github.com/users/TerrorJack/gists{/gist_id}","starred_url":"https://api.github.com/users/TerrorJack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TerrorJack/subscriptions","organizations_url":"https://api.github.com/users/TerrorJack/orgs","repos_url":"https://api.github.com/users/TerrorJack/repos","events_url":"https://api.github.com/users/TerrorJack/events{/privacy}","received_events_url":"https://api.github.com/users/TerrorJack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-05-11T12:57:10Z","updated_at":"2016-05-11T13:56:20Z","closed_at":null,"body":"The error message is as follows:\r\n\r\n    --  While building package ghc-mod-5.5.0.0 using:\r\n      C:\\msys64\\tmp\\stack2428\\ghc-mod-5.5.0.0\\.stack-work\\dist\\2672c1f3\\setup\\setup --builddir=.stack-work\\dist\\2672c1f3 build --ghc-options \" -ddump-hi -ddump-to-file\"\r\n    Process exited with code: ExitFailure 1\r\n    Logs have been written to: C:\\Users\\astro\\AppData\\Roaming\\stack\\global-project\\.stack-work\\logs\\ghc-mod-5.5.0.0.log\r\n\r\n    [1 of 5] Compiling NotCPP.Utils     ( NotCPP\\Utils.hs, C:\\msys64\\tmp\\stack2428\\ghc-mod-5.5.0.0\\.stack-work\\dist\\2672c1f3\\setup\\NotCPP\\Utils.o )\r\n    [2 of 5] Compiling NotCPP.LookupValueName ( NotCPP\\LookupValueName.hs, C:\\msys64\\tmp\\stack2428\\ghc-mod-5.5.0.0\\.stack-work\\dist\\2672c1f3\\setup\\NotCPP\\LookupValueName.o )\r\n    [3 of 5] Compiling NotCPP.Declarations ( NotCPP\\Declarations.hs, C:\\msys64\\tmp\\stack2428\\ghc-mod-5.5.0.0\\.stack-work\\dist\\2672c1f3\\setup\\NotCPP\\Declarations.o )\r\n    [4 of 5] Compiling SetupCompat      ( SetupCompat.hs, C:\\msys64\\tmp\\stack2428\\ghc-mod-5.5.0.0\\.stack-work\\dist\\2672c1f3\\setup\\SetupCompat.o )\r\n    [5 of 5] Compiling Main             ( C:\\msys64\\tmp\\stack2428\\ghc-mod-5.5.0.0\\Setup.hs, C:\\msys64\\tmp\\stack2428\\ghc-mod-5.5.0.0\\.stack-work\\dist\\2672c1f3\\setup\\Main.o )\r\n    Linking C:\\msys64\\tmp\\stack2428\\ghc-mod-5.5.0.0\\.stack-work\\dist\\2672c1f3\\setup\\setup.exe ...\r\n    Configuring ghc-mod-5.5.0.0...\r\n    Warning: This package indirectly depends on multiple versions of the same\r\n    package. This is highly likely to cause a compile failure.\r\n    package time-1.5.0.1 requires Win32-2.3.1.0\r\n    package process-1.2.3.0 requires Win32-2.3.1.0\r\n    package ghc-7.10.3 requires Win32-2.3.1.0\r\n    package directory-1.2.2.0 requires Win32-2.3.1.0\r\n    package time-1.5.0.1 requires Win32-2.3.1.1\r\n    package process-1.2.3.0 requires Win32-2.3.1.1\r\n    package directory-1.2.2.0 requires Win32-2.3.1.1\r\n    package ansi-terminal-0.6.2.3 requires Win32-2.3.1.1\r\n    package process-1.2.3.0 requires directory-1.2.2.0\r\n    package hpc-0.6.0.2 requires directory-1.2.2.0\r\n    package ghc-7.10.3 requires directory-1.2.2.0\r\n    package bin-package-db-0.0.0.0 requires directory-1.2.2.0\r\n    package temporary-1.2.0.4 requires directory-1.2.2.0\r\n    package process-1.2.3.0 requires directory-1.2.2.0\r\n    package hlint-1.9.32 requires directory-1.2.2.0\r\n    package ghc-mod-5.5.0.0 requires directory-1.2.2.0\r\n    package extra-1.4.5 requires directory-1.2.2.0\r\n    package cpphs-1.20.1 requires directory-1.2.2.0\r\n    package cabal-helper-0.6.3.1 requires directory-1.2.2.0\r\n    package Cabal-1.22.8.0 requires directory-1.2.2.0\r\n    package optparse-applicative-0.12.1.0 requires process-1.2.3.0\r\n    package hlint-1.9.32 requires process-1.2.3.0\r\n    package ghc-mod-5.5.0.0 requires process-1.2.3.0\r\n    package extra-1.4.5 requires process-1.2.3.0\r\n    package cmdargs-0.10.14 requires process-1.2.3.0\r\n    package cabal-helper-0.6.3.1 requires process-1.2.3.0\r\n    package Cabal-1.22.8.0 requires process-1.2.3.0\r\n    package ghc-7.10.3 requires process-1.2.3.0\r\n    package random-1.1 requires time-1.5.0.1\r\n    package ghc-mod-5.5.0.0 requires time-1.5.0.1\r\n    package extra-1.4.5 requires time-1.5.0.1\r\n    package directory-1.2.2.0 requires time-1.5.0.1\r\n    package Cabal-1.22.8.0 requires time-1.5.0.1\r\n    package hpc-0.6.0.2 requires time-1.5.0.1\r\n    package ghc-7.10.3 requires time-1.5.0.1\r\n    package directory-1.2.2.0 requires time-1.5.0.1\r\n    Building ghc-mod-5.5.0.0...\r\n    Preprocessing library ghc-mod-5.5.0.0...\r\n    [ 1 of 55] Compiling Data.Binary.Generic ( Data\\Binary\\Generic.hs, .stack-work\\dist\\2672c1f3\\build\\Data\\Binary\\Generic.o )\r\n    [ 2 of 55] Compiling Language.Haskell.GhcMod.Read ( Language\\Haskell\\GhcMod\\Read.hs, .stack-work\\dist\\2672c1f3\\build\\Language\\Haskell\\GhcMod\\Read.o )\r\n    [ 3 of 55] Compiling System.Directory.ModTime ( System\\Directory\\ModTime.hs, .stack-work\\dist\\2672c1f3\\build\\System\\Directory\\ModTime.o )\r\n    [ 4 of 55] Compiling Paths_ghc_mod    ( .stack-work\\dist\\2672c1f3\\build\\autogen\\Paths_ghc_mod.hs, .stack-work\\dist\\2672c1f3\\build\\Paths_ghc_mod.o )\r\n    [ 5 of 55] Compiling Utils            ( Utils.hs, .stack-work\\dist\\2672c1f3\\build\\Utils.o )\r\n    [ 6 of 55] Compiling Language.Haskell.GhcMod.Caching.Types ( Language\\Haskell\\GhcMod\\Caching\\Types.hs, .stack-work\\dist\\2672c1f3\\build\\Language\\Haskell\\GhcMod\\Caching\\Types.o )\r\n    [ 7 of 55] Compiling Language.Haskell.GhcMod.Types ( Language\\Haskell\\GhcMod\\Types.hs, .stack-work\\dist\\2672c1f3\\build\\Language\\Haskell\\GhcMod\\Types.o )\r\n    GHC runtime linker: fatal error: I found a duplicate definition for symbol\r\n       rgb\r\n    whilst processing object file\r\n       C:\\Users\\astro\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-7.10.3\\lib\\Win32_ELFLzTRksT8Dql3wobiWvb\\HSWin32-2.3.1.0-ELFLzTRksT8Dql3wobiWvb.o\r\n    This could be caused by:\r\n       * Loading two different object files which export the same symbol\r\n       * Specifying the same object file twice on the GHCi command line\r\n       * An incorrect `package.conf' entry, causing some object to be\r\n         loaded twice.\r\n    ghc.exe: panic! (the 'impossible' happened)\r\n      (GHC version 7.10.3 for x86_64-unknown-mingw32):\r\n        loadObj \"C:\\\\Users\\\\astro\\\\AppData\\\\Local\\\\Programs\\\\stack\\\\x86_64-windows\\\\ghc-7.10.3\\\\lib\\\\Win32_ELFLzTRksT8Dql3wobiWvb\\\\HSWin32-2.3.1.0-ELFLzTRksT8Dql3wobiWvb.o\": failed\r\n\r\n    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug\r\n\r\nI am building it in a mingw-w64 win64 shell (`uname -a` outputs `MINGW64_NT-10.0 DESKTOP-RUPL5NM 2.5.0(0.297/5/3) 2016-04-12 13:08 x86_64 Msys`).The `ghc` compiler I'm using is installed by `stack setup`, there is no global `ghc`. The build command is `stack install ghc-mod`, and it is not run in a project directory, so it is using implicit global config. Global project resolver is set to `nightly-2016-05-08`/`lts-5.16`, both fails. I also tried removing the whole `%appdata%\\stack` directory (equivalent to `~/.stack` in Linux), but that doesn't help either."},"comment":{"url":"https://api.github.com/repos/DanielG/ghc-mod/issues/comments/218466774","html_url":"https://github.com/DanielG/ghc-mod/issues/785#issuecomment-218466774","issue_url":"https://api.github.com/repos/DanielG/ghc-mod/issues/785","id":218466774,"user":{"login":"TerrorJack","id":3889585,"avatar_url":"https://avatars.githubusercontent.com/u/3889585?v=3","gravatar_id":"","url":"https://api.github.com/users/TerrorJack","html_url":"https://github.com/TerrorJack","followers_url":"https://api.github.com/users/TerrorJack/followers","following_url":"https://api.github.com/users/TerrorJack/following{/other_user}","gists_url":"https://api.github.com/users/TerrorJack/gists{/gist_id}","starred_url":"https://api.github.com/users/TerrorJack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TerrorJack/subscriptions","organizations_url":"https://api.github.com/users/TerrorJack/orgs","repos_url":"https://api.github.com/users/TerrorJack/repos","events_url":"https://api.github.com/users/TerrorJack/events{/privacy}","received_events_url":"https://api.github.com/users/TerrorJack/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T13:56:20Z","updated_at":"2016-05-11T13:56:20Z","body":"@rvion Updated in the post. Not using any custom linker.."}}