{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/1050","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1050/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1050/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1050/events","html_url":"https://github.com/commercialhaskell/stack/issues/1050","id":108304161,"number":1050,"title":"Cannot install gtk2hs-buildtools with stack","user":{"login":"mwu-tow","id":1548407,"avatar_url":"https://avatars.githubusercontent.com/u/1548407?v=3","gravatar_id":"","url":"https://api.github.com/users/mwu-tow","html_url":"https://github.com/mwu-tow","followers_url":"https://api.github.com/users/mwu-tow/followers","following_url":"https://api.github.com/users/mwu-tow/following{/other_user}","gists_url":"https://api.github.com/users/mwu-tow/gists{/gist_id}","starred_url":"https://api.github.com/users/mwu-tow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwu-tow/subscriptions","organizations_url":"https://api.github.com/users/mwu-tow/orgs","repos_url":"https://api.github.com/users/mwu-tow/repos","events_url":"https://api.github.com/users/mwu-tow/events{/privacy}","received_events_url":"https://api.github.com/users/mwu-tow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/component:%20windows","name":"component: windows","color":"bfdadc"},{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/need%20confirmation","name":"need confirmation","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/5","html_url":"https://github.com/commercialhaskell/stack/milestones/P1:%20Must","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/5/labels","id":1166824,"number":5,"title":"P1: Must","description":"Arbitrary date chosen, just to get the milestones to order nicely","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":10,"closed_issues":175,"state":"open","created_at":"2015-06-16T14:23:31Z","updated_at":"2015-09-27T07:14:14Z","due_on":"2015-09-30T07:00:00Z","closed_at":null},"comments":3,"created_at":"2015-09-25T10:54:05Z","updated_at":"2015-09-27T07:14:14Z","closed_at":"2015-09-27T07:14:14Z","body":"When I give the `cabal install gtk2hs-buildtools` correctly installs the package. However, the same fails with stack:\r\n`stack install gtk2hs-buildtools` fails with an error:\r\n```\r\n    Linking .stack-work\\dist\\x86_64-windows\\Cabal-1.22.4.0\\build\\gtk2hsTypeGen\\g\r\ntk2hsTypeGen.exe ...\r\n    Preprocessing executable 'gtk2hsHookGenerator' for\r\n    gtk2hs-buildtools-0.13.0.4...\r\n    [1 of 2] Compiling Paths_gtk2hs_buildtools ( .stack-work\\dist\\x86_64-windows\r\n\\Cabal-1.22.4.0\\build\\autogen\\Paths_gtk2hs_buildtools.hs, .stack-work\\dist\\x86_6\r\n4-windows\\Cabal-1.22.4.0\\build\\gtk2hsHookGenerator\\gtk2hsHookGenerator-tmp\\Paths\r\n_gtk2hs_buildtools.o )\r\n    .stack-work\\dist\\x86_64-windows\\Cabal-1.22.4.0\\build\\gtk2hsHookGenerator\\gtk\r\n2hsHookGenerator-tmp\\.stack-work\\dist\\x86_64-windows\\Cabal-1.22.4.0\\build\\autoge\r\nn\\Paths_gtk2hs_buildtools.dump-hi: openFile: does not exist (No such file or dir\r\nectory)\r\n```\r\n\r\nI give the command from my home directory, outside from any projects.\r\n\r\nSee https://gist.github.com/mwu-tow/2c7f9f204eed5efedd16 for the full output\r\nand https://gist.github.com/mwu-tow/c1e71813b76443ecc794 for the `--verbose` version\r\n\r\nMy stack `--version` is `Version 0.1.4.0, Git revision dac8cfe51802e08edb523b80c51cf35e21933513 (1722 commits) X86_64` — but I just checked the recently released 0.1.5.0 and the issue is the same.\r\n\r\nInterestingly, on another Windows machine it works fine. \r\nCould this be caused by the Windows paths length limitation? Where is the file that cannot be opened? (only relative path is outputted, I'm not sure where I should look for it)"},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/143526269","html_url":"https://github.com/commercialhaskell/stack/issues/1050#issuecomment-143526269","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1050","id":143526269,"user":{"login":"mwu-tow","id":1548407,"avatar_url":"https://avatars.githubusercontent.com/u/1548407?v=3","gravatar_id":"","url":"https://api.github.com/users/mwu-tow","html_url":"https://github.com/mwu-tow","followers_url":"https://api.github.com/users/mwu-tow/followers","following_url":"https://api.github.com/users/mwu-tow/following{/other_user}","gists_url":"https://api.github.com/users/mwu-tow/gists{/gist_id}","starred_url":"https://api.github.com/users/mwu-tow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwu-tow/subscriptions","organizations_url":"https://api.github.com/users/mwu-tow/orgs","repos_url":"https://api.github.com/users/mwu-tow/repos","events_url":"https://api.github.com/users/mwu-tow/events{/privacy}","received_events_url":"https://api.github.com/users/mwu-tow/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T07:14:14Z","updated_at":"2015-09-27T07:14:14Z","body":"I already have `STACK_ROOT=c:\\s` so it does not help. \r\n\r\nThe master version solved the problem for me. :-)"}}