{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/3487","repository_url":"https://api.github.com/repos/haskell/cabal","labels_url":"https://api.github.com/repos/haskell/cabal/issues/3487/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/3487/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/3487/events","html_url":"https://github.com/haskell/cabal/issues/3487","id":159309263,"number":3487,"title":"Mangled path to gcc on Windows","user":{"login":"acfoltzer","id":205266,"avatar_url":"https://avatars.githubusercontent.com/u/205266?v=3","gravatar_id":"","url":"https://api.github.com/users/acfoltzer","html_url":"https://github.com/acfoltzer","followers_url":"https://api.github.com/users/acfoltzer/followers","following_url":"https://api.github.com/users/acfoltzer/following{/other_user}","gists_url":"https://api.github.com/users/acfoltzer/gists{/gist_id}","starred_url":"https://api.github.com/users/acfoltzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acfoltzer/subscriptions","organizations_url":"https://api.github.com/users/acfoltzer/orgs","repos_url":"https://api.github.com/users/acfoltzer/repos","events_url":"https://api.github.com/users/acfoltzer/events{/privacy}","received_events_url":"https://api.github.com/users/acfoltzer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-06-09T01:04:02Z","updated_at":"2016-06-09T20:37:34Z","closed_at":null,"body":"I was having trouble with the configure step for `old-time`, and decided to compare the behavior of 1.22 and 1.24. 1.22 works fine, but it appears that while 1.24 successfully finds the correct path to gcc, it mangles it when setting `CC` and invoking the `configure` script.\r\n\r\n```\r\n...\r\nUsing gcc version 5.2.0 found on system at:\r\nC:\\Users\\hudson\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-8.0.1\\mingw\\bin\\gcc.exe\r\n...\r\n\"C:\\cygwin\\bin\\sh.exe\" \"./configure\" \"--with-compiler=ghc\" \"--prefix=C:\\cygwin\\tmp\\old-time-1.1.0.3\\.cabal-sandbox\" \"--bindir=$prefix\\bin\" \"--libdir=$prefix\" \"--libexecdir=$prefix\\$libname\" \"--datadir=$prefix\" \"--sysconfdir=$prefix\\etc\" \"CC=C:\\Users\\hudson\\AppData\\Local\\Programs\\stack\\X86_64~1\\GHC-80~1.1\\mingw\\bin\\gcc.exe\"\r\n```\r\n\r\n(full log at https://gist.github.com/acfoltzer/01fc8238acaafbb99e557f7320fcc318)\r\n\r\nIt seems that `x86_64-windows` is getting mangled into `X86_64~1`, and `ghc-8.0.1` into `GHC-80~1.1`. I'm honestly baffled; any thoughts?"},"comment":{"url":"https://api.github.com/repos/haskell/cabal/issues/comments/225018712","html_url":"https://github.com/haskell/cabal/issues/3487#issuecomment-225018712","issue_url":"https://api.github.com/repos/haskell/cabal/issues/3487","id":225018712,"user":{"login":"acfoltzer","id":205266,"avatar_url":"https://avatars.githubusercontent.com/u/205266?v=3","gravatar_id":"","url":"https://api.github.com/users/acfoltzer","html_url":"https://github.com/acfoltzer","followers_url":"https://api.github.com/users/acfoltzer/followers","following_url":"https://api.github.com/users/acfoltzer/following{/other_user}","gists_url":"https://api.github.com/users/acfoltzer/gists{/gist_id}","starred_url":"https://api.github.com/users/acfoltzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acfoltzer/subscriptions","organizations_url":"https://api.github.com/users/acfoltzer/orgs","repos_url":"https://api.github.com/users/acfoltzer/repos","events_url":"https://api.github.com/users/acfoltzer/events{/privacy}","received_events_url":"https://api.github.com/users/acfoltzer/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T20:37:34Z","updated_at":"2016-06-09T20:37:34Z","body":"Ah, I see what you mean now. I added the `/usr/bin` subdirectory of Stack's msys installation, and it appears to be using the right `sh.exe`, although with the same results:\r\n\r\n```\r\n\"C:\\Users\\hudson\\AppData\\Local\\Programs\\stack\\x86_64-windows\\msys2-20150512\\usr\\bin\\sh.exe\" \"./configure\" \"--with-compiler=ghc\" \"--prefix=C:\\cygwin\\tmp\\old-time-1.1.0.3\\.cabal-sandbox\" \"--bindir=$prefix\\bin\" \"--libdir=$prefix\" \"--libexecdir=$prefix\\$libname\" \"--datadir=$prefix\" \"--sysconfdir=$prefix\\etc\" \"CC=C:\\Users\\hudson\\AppData\\Local\\Programs\\stack\\X86_64~1\\GHC-80~1.1\\mingw\\bin\\gcc.exe\"\r\nconfigure: WARNING: unrecognized options: --with-compiler\r\nchecking for gcc... C:\\Users\\hudson\\AppData\\Local\\Programs\\stack\\X86_64~1\\GHC-80~1.1\\mingw\\bin\\gcc.exe\r\nchecking whether the C compiler works... no\r\n```\r\n\r\nI don't have graphical access to this machine, but I'll put in a ticket to install the new HP and see if the problem persists with that installation."}}
{"actor":{"display_login":"acfoltzer"}}