{"action":"created","issue":{"url":"https://api.github.com/repos/yesodweb/yesod/issues/1020","labels_url":"https://api.github.com/repos/yesodweb/yesod/issues/1020/labels{/name}","comments_url":"https://api.github.com/repos/yesodweb/yesod/issues/1020/comments","events_url":"https://api.github.com/repos/yesodweb/yesod/issues/1020/events","html_url":"https://github.com/yesodweb/yesod/issues/1020","id":90584133,"number":1020,"title":"linker error on windows","user":{"login":"solatis","id":119317,"avatar_url":"https://avatars.githubusercontent.com/u/119317?v=3","gravatar_id":"","url":"https://api.github.com/users/solatis","html_url":"https://github.com/solatis","followers_url":"https://api.github.com/users/solatis/followers","following_url":"https://api.github.com/users/solatis/following{/other_user}","gists_url":"https://api.github.com/users/solatis/gists{/gist_id}","starred_url":"https://api.github.com/users/solatis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solatis/subscriptions","organizations_url":"https://api.github.com/users/solatis/orgs","repos_url":"https://api.github.com/users/solatis/repos","events_url":"https://api.github.com/users/solatis/events{/privacy}","received_events_url":"https://api.github.com/users/solatis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-06-24T06:43:31Z","updated_at":"2015-07-26T11:17:29Z","closed_at":"2015-07-19T22:58:00Z","body":"Ok, I've been fighting this issue for 2 days now, and suspect it might be a configuration error of some sorts. Steps to reproduce:\r\n\r\n\r\n```\r\nC:\\Users\\leon\\Documents\\GitHub\\tmp> yesod init -- name project 'bar' and select 'simple'\r\nC:\\Users\\leon\\Documents\\GitHub\\tmp> cd bar\r\nC:\\Users\\leon\\Documents\\GitHub\\tmp\\bar>\r\nC:\\Users\\leon\\Documents\\GitHub\\tmp\\bar> cabal sandbox init\r\nWriting a default package environment file to\r\nC:\\Users\\leon\\Documents\\GitHub\\tmp\\bar\\cabal.sandbox.config\r\nCreating a new sandbox at\r\nC:\\Users\\leon\\Documents\\GitHub\\tmp\\bar\\.cabal-sandbox\r\n\r\nC:\\Users\\leon\\Documents\\GitHub\\tmp\\bar> cabal install -j --enable-tests --max-backjumps=-1 --reorder-goals\r\n\r\n[ .. snip .. ]\r\n\r\n[1 of 1] Compiling Main             ( app\\main.hs, dist\\dist-sandbox-7efef30f\\build\\bar\\bar-tmp\\Main.p_o )\r\nLinking dist/dist-sandbox-7efef30f\\build\\bar\\bar.exe ...\r\nghc.exe: could not execute: C:\\Users\\leon\\AppData\\Local\\Programs\\minghc-7.10.1-x86_64\\ghc-7.10.1\\lib/../mingw/bin/gcc.ex\r\ne\r\ncabal.exe: Error: some packages failed to install:\r\nbar-0.0.0 failed during the building phase. The exception was:\r\nExitFailure 1\r\n\r\nC:\\Users\\leon\\Documents\\GitHub\\tmp\\bar> ghc --version\r\nThe Glorious Glasgow Haskell Compilation System, version 7.10.1\r\nC:\\Users\\leon\\Documents\\GitHub\\tmp\\bar> cabal --version\r\ncabal-install version 1.22.6.0\r\nusing version 1.22.4.0 of the Cabal library\r\n\r\nC:\\Users\\leon\\Documents\\GitHub\\tmp\\bar> & \"C:\\Users\\leon\\AppData\\Local\\Programs\\minghc-7.10.1-x86_64\\ghc-7.10.1\\mingw\\bin\\gcc.exe\" --version\r\ngcc.exe (rubenvb-4.6.3) 4.6.3\r\nCopyright (C) 2011 Free Software Foundation, Inc.\r\nThis is free software; see the source for copying conditions.  There is NO\r\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r\n```\r\n\r\nI have tried many different things to make sure it's not my environment (delete MinGHC, reinstall MinGHC 7.8, upgrade to MinGHC 7.10, start fresh projects, etc) that I am looking for confirmation whether this is a reproduceable error.\r\n\r\nIt is worth pointing out that the same build runs fine under Linux, which raises my suspicions that this might be an untested corner case.\r\n\r\nAlso related is that `yesod devel` has no problems running.\r\n\r\nHere is a gist that has the complete output of a -v3 invocation of cabal install: https://gist.github.com/solatis/fb4114624c1724e50aa9"},"comment":{"url":"https://api.github.com/repos/yesodweb/yesod/issues/comments/124972696","html_url":"https://github.com/yesodweb/yesod/issues/1020#issuecomment-124972696","issue_url":"https://api.github.com/repos/yesodweb/yesod/issues/1020","id":124972696,"user":{"login":"solatis","id":119317,"avatar_url":"https://avatars.githubusercontent.com/u/119317?v=3","gravatar_id":"","url":"https://api.github.com/users/solatis","html_url":"https://github.com/solatis","followers_url":"https://api.github.com/users/solatis/followers","following_url":"https://api.github.com/users/solatis/following{/other_user}","gists_url":"https://api.github.com/users/solatis/gists{/gist_id}","starred_url":"https://api.github.com/users/solatis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solatis/subscriptions","organizations_url":"https://api.github.com/users/solatis/orgs","repos_url":"https://api.github.com/users/solatis/repos","events_url":"https://api.github.com/users/solatis/events{/privacy}","received_events_url":"https://api.github.com/users/solatis/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T11:17:29Z","updated_at":"2015-07-26T11:17:29Z","body":"Ok, this is interesting: I tried Windows 7, 8 and 10 with MinGHC, which all generated the same error. However, after just installing Haskell Platform (2014.2) on Windows 10, the problem goes away!\r\n\r\nMight have to do with the ancient cabal version. Will investigate further."}}