{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/1947","repository_url":"https://api.github.com/repos/commercialhaskell/stack","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1947/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1947/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1947/events","html_url":"https://github.com/commercialhaskell/stack/issues/1947","id":143268821,"number":1947,"title":"Project failing to build with the error \"realgcc.exe: error: CreateProcess: No such file or directory\"","user":{"login":"LukaHorvat","id":370627,"avatar_url":"https://avatars.githubusercontent.com/u/370627?v=3","gravatar_id":"","url":"https://api.github.com/users/LukaHorvat","html_url":"https://github.com/LukaHorvat","followers_url":"https://api.github.com/users/LukaHorvat/followers","following_url":"https://api.github.com/users/LukaHorvat/following{/other_user}","gists_url":"https://api.github.com/users/LukaHorvat/gists{/gist_id}","starred_url":"https://api.github.com/users/LukaHorvat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukaHorvat/subscriptions","organizations_url":"https://api.github.com/users/LukaHorvat/orgs","repos_url":"https://api.github.com/users/LukaHorvat/repos","events_url":"https://api.github.com/users/LukaHorvat/events{/privacy}","received_events_url":"https://api.github.com/users/LukaHorvat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/8","html_url":"https://github.com/commercialhaskell/stack/milestones/Support","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/8/labels","id":1208081,"number":8,"title":"Support","description":"Issues without clear work items for the codebase","creator":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":125,"state":"open","created_at":"2015-07-14T20:38:48Z","updated_at":"2016-03-24T21:50:15Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-03-24T14:57:08Z","updated_at":"2016-03-25T12:07:40Z","closed_at":null,"body":"Unfortunately the project is closed source so I can't share it but that's the error I get when doing `stack build`. It happens just after the line that says it's linking the main executable.\r\n\r\nThe project has a decent number of dependencies, one of them being yesod, but I can build other yesod projects just fine.\r\n\r\nWhat can I do to debug and work around this issue?\r\n\r\nHere's the log with `--verbose`\r\n\r\n```\r\nVersion 1.0.4.2 x86_64\r\n2016-03-24 15:56:01.079649: [debug] Checking for project config at: C:\\Users\\Luka\\Documents\\Projects\\deegeetal\\lg\\yesod-web\\stack.yaml @(stack_HMN89lhywApHtRNGGTOnq8:Stack.Config src/Stack\\Config.hs:761:9)\r\n2016-03-24 15:56:01.079649: [debug] Loading project config file stack.yaml @(stack_HMN89lhywApHtRNGGTOnq8:Stack.Config src/Stack\\Config.hs:779:13)\r\n2016-03-24 15:56:01.095292: [debug] Trying to decode C:\\Users\\Luka\\AppData\\Roaming\\stack\\build-plan-cache\\x86_64-windows\\lts-5.3.cache @(stack_HMN89lhywApHtRNGGTOnq8:Data.Binary.VersionTagged src/Data\\Binary\\VersionTagged.hs:55:5)\r\n2016-03-24 15:56:01.110903: [debug] Success decoding C:\\Users\\Luka\\AppData\\Roaming\\stack\\build-plan-cache\\x86_64-windows\\lts-5.3.cache @(stack_HMN89lhywApHtRNGGTOnq8:Data.Binary.VersionTagged src/Data\\Binary\\VersionTagged.hs:64:13)\r\n2016-03-24 15:56:01.110903: [debug] Trying to decode C:\\Users\\Luka\\AppData\\Roaming\\stack\\indices\\Hackage\\00-index.cache @(stack_HMN89lhywApHtRNGGTOnq8:Data.Binary.VersionTagged src/Data\\Binary\\VersionTagged.hs:55:5)\r\n2016-03-24 15:56:01.295846: [debug] Success decoding C:\\Users\\Luka\\AppData\\Roaming\\stack\\indices\\Hackage\\00-index.cache @(stack_HMN89lhywApHtRNGGTOnq8:Data.Binary.VersionTagged src/Data\\Binary\\VersionTagged.hs:64:13)\r\n2016-03-24 15:56:01.311491: [debug] Run process: ghc --info @(stack_HMN89lhywApHtRNGGTOnq8:System.Process.Read src/System\\Process\\Read.hs:269:3)\r\n2016-03-24 15:56:01.364560: [debug] Run process: ghc --numeric-version @(stack_HMN89lhywApHtRNGGTOnq8:System.Process.Read src/System\\Process\\Read.hs:269:3)\r\n2016-03-24 15:56:01.380201: [debug] Run process: ghc-pkg --no-user-package-db field --simple-output Cabal version @(stack_HMN89lhywApHtRNGGTOnq8:System.Process.Read src/System\\Process\\Read.hs:269:3)\r\n2016-03-24 15:56:01.424542: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack_HMN89lhywApHtRNGGTOnq8:System.Process.Read src/System\\Process\\Read.hs:269:3)\r\n2016-03-24 15:56:01.456787: [debug] Checking resolver: lts-5.3 @(stack_HMN89lhywApHtRNGGTOnq8:Stack.Build.Source src/Stack\\Build\\Source.hs:164:17)\r\n2016-03-24 15:56:01.456787: [debug] Trying to decode C:\\Users\\Luka\\AppData\\Roaming\\stack\\build-plan-cache\\x86_64-windows\\lts-5.3.cache @(stack_HMN89lhywApHtRNGGTOnq8:Data.Binary.VersionTagged src/Data\\Binary\\VersionTagged.hs:55:5)\r\n2016-03-24 15:56:01.472432: [debug] Success decoding C:\\Users\\Luka\\AppData\\Roaming\\stack\\build-plan-cache\\x86_64-windows\\lts-5.3.cache @(stack_HMN89lhywApHtRNGGTOnq8:Data.Binary.VersionTagged src/Data\\Binary\\VersionTagged.hs:64:13)\r\n2016-03-24 15:56:01.680969: [debug] Run process: ghc-pkg --global --no-user-package-db dump --expand-pkgroot @(stack_HMN89lhywApHtRNGGTOnq8:System.Process.Read src/System\\Process\\Read.hs:269:3)\r\n2016-03-24 15:56:01.732698: [debug] Ignoring package haskeline due to wanting version 0.7.2.2 instead of 0.7.2.1 @(stack_HMN89lhywApHtRNGGTOnq8:Stack.Build.Installed src/Stack\\Build\\Installed.hs:189:5)\r\n2016-03-24 15:56:01.732698: [debug] Ignoring package Cabal due to wanting version 1.22.7.0 instead of 1.22.5.0 @(stack_HMN89lhywApHtRNGGTOnq8:Stack.Build.Installed src/Stack\\Build\\Installed.hs:189:5)\r\n2016-03-24 15:56:01.732698: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db C:\\Users\\Luka\\AppData\\Roaming\\stack\\snapshots\\f97b84a6\\pkgdb dump --expand-pkgroot @(stack_HMN89lhywApHtRNGGTOnq8:System.Process.Read src/System\\Process\\Read.hs:269:3)\r\n2016-03-24 15:56:01.921429: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db C:\\Users\\Luka\\Documents\\Projects\\deegeetal\\lg\\yesod-web\\.stack-work\\install\\03c0d273\\pkgdb dump --expand-pkgroot @(stack_HMN89lhywApHtRNGGTOnq8:System.Process.Read src/System\\Process\\Read.hs:269:3)\r\n2016-03-24 15:56:01.959899: [debug] Trying to decode C:\\Users\\Luka\\AppData\\Roaming\\stack\\indices\\Hackage\\00-index.cache @(stack_HMN89lhywApHtRNGGTOnq8:Data.Binary.VersionTagged src/Data\\Binary\\VersionTagged.hs:55:5)\r\n2016-03-24 15:56:02.197226: [debug] Success decoding C:\\Users\\Luka\\AppData\\Roaming\\stack\\indices\\Hackage\\00-index.cache @(stack_HMN89lhywApHtRNGGTOnq8:Data.Binary.VersionTagged src/Data\\Binary\\VersionTagged.hs:64:13)\r\n2016-03-24 15:56:02.313127: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack_HMN89lhywApHtRNGGTOnq8:System.Process.Read src/System\\Process\\Read.hs:269:3)\r\n2016-03-24 15:56:02.356334: [info] yesod-web-0.0.0: build @(stack_HMN89lhywApHtRNGGTOnq8:Stack.Build.Execute src/Stack\\Build\\Execute.hs:703:23)\r\n2016-03-24 15:56:02.356334: [debug] Run process: C:\\Users\\Luka\\AppData\\Roaming\\stack\\setup-exe-cache\\x86_64-windows\\setup-Simple-Cabal-1.22.5.0-ghc-7.10.3.exe --builddir=.stack-work\\dist\\2672c1f3 build lib:yesod-web exe:yesod-web --ghc-options \" -ddump-hi -ddump-to-file\" @(stack_HMN89lhywApHtRNGGTOnq8:System.Process.Read src/System\\Process\\Read.hs:287:3)\r\n\r\n--  While building package yesod-web-0.0.0 using:\r\n      C:\\Users\\Luka\\AppData\\Roaming\\stack\\setup-exe-cache\\x86_64-windows\\setup-Simple-Cabal-1.22.5.0-ghc-7.10.3.exe --builddir=.stack-work\\dist\\2672c1f3 build lib:yesod-web exe:yesod-web --ghc-options \" -ddump-hi -ddump-to-file\"\r\n    Process exited with code: ExitFailure 1\r\n    Logs have been written to: C:\\Users\\Luka\\Documents\\Projects\\deegeetal\\lg\\yesod-web\\.stack-work\\logs\\yesod-web-0.0.0.log\r\n\r\n    Preprocessing library yesod-web-0.0.0...\r\n    In-place registering yesod-web-0.0.0...\r\n    Preprocessing executable 'yesod-web' for yesod-web-0.0.0...\r\n    Linking .stack-work\\dist\\2672c1f3\\build\\yesod-web\\yesod-web.exe ...\r\n    realgcc.exe: error: CreateProcess: No such file or directory\r\n```\r\n\r\nI'm running Windows 10 x64. GHC 7.10.3 and the latest stack.\r\n\r\nI should note that running the project with `stack repl --no-build yesod-web` works perfectly."},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/201253991","html_url":"https://github.com/commercialhaskell/stack/issues/1947#issuecomment-201253991","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1947","id":201253991,"user":{"login":"mgsloan","id":22570,"avatar_url":"https://avatars.githubusercontent.com/u/22570?v=3","gravatar_id":"","url":"https://api.github.com/users/mgsloan","html_url":"https://github.com/mgsloan","followers_url":"https://api.github.com/users/mgsloan/followers","following_url":"https://api.github.com/users/mgsloan/following{/other_user}","gists_url":"https://api.github.com/users/mgsloan/gists{/gist_id}","starred_url":"https://api.github.com/users/mgsloan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgsloan/subscriptions","organizations_url":"https://api.github.com/users/mgsloan/orgs","repos_url":"https://api.github.com/users/mgsloan/repos","events_url":"https://api.github.com/users/mgsloan/events{/privacy}","received_events_url":"https://api.github.com/users/mgsloan/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T12:07:40Z","updated_at":"2016-03-25T12:07:40Z","body":"Not sure.  It seems like it can't find \"realgcc.exe\".  Does `stack exec -- realgcc.exe` print something sensible out?"}}