{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/2502","labels_url":"https://api.github.com/repos/haskell/cabal/issues/2502/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/2502/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/2502/events","html_url":"https://github.com/haskell/cabal/issues/2502","id":64880393,"number":2502,"title":"data-default-instances-old-locale build fails on Windows with GHC 7.10.1 and Cabal 1.22.2.0","user":{"login":"RyanGlScott","id":2364661,"avatar_url":"https://avatars.githubusercontent.com/u/2364661?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanGlScott","html_url":"https://github.com/RyanGlScott","followers_url":"https://api.github.com/users/RyanGlScott/followers","following_url":"https://api.github.com/users/RyanGlScott/following{/other_user}","gists_url":"https://api.github.com/users/RyanGlScott/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanGlScott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanGlScott/subscriptions","organizations_url":"https://api.github.com/users/RyanGlScott/orgs","repos_url":"https://api.github.com/users/RyanGlScott/repos","events_url":"https://api.github.com/users/RyanGlScott/events{/privacy}","received_events_url":"https://api.github.com/users/RyanGlScott/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/haskell/cabal/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/haskell/cabal/labels/windows","name":"windows","color":"38CF7E"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-28T00:53:52Z","updated_at":"2015-04-22T19:40:55Z","closed_at":null,"body":"I'm not sure what's going on, but for some reason, `data-default-instances-old-locale` and `data-default-instances-containers` will not build if I try to install them directly from Hackage. Here's the output from trying to install `data-default-instances-old-locale`:\r\n\r\n```\r\nC:\\...\\ghc-7.10.1\\mingw\\bin\\ar.exe: dist\\build\\libHSdata-default-instances-old-locale-0.0.1-6jcjjaR25tK4x3nJhHHjFM.a-6440\\libHSdata-default-instances-old-locale-0.0.1-6jcjjaR25tK4x3nJhHHjFM.a: No such file or directory\r\n```\r\n\r\nHere's a [gist](https://gist.github.com/RyanGlScott/78a06d74f35f0b271d64) of the full `cabal install -j1 -v3` output. I am using 64-bit Windows 7 with GHC 7.10.1, `Cabal-1.22.0.0` and `cabal-install-1.22.0.0`, and I can reproduce this with `cmd.exe` or PowerShell.\r\n\r\n`data-default-instances-old-locale` and `data-default-instances-containers` are the only two libraries that give me this error. Because of this, I'd hazard a guess that it's due to the length of the names of the packages themselves that are causing problems, since the temporary directories that `cmd.exe` creates might exceed some Windows path length constant somewhere. Unfortunately, I can't find any other Hackage packages that are as long as those two that are compatible with GHC 7.10.1, so it's hard to say.\r\n\r\nIt should be noted that this error does not happen if you try installing from Cygwin or MSYS. It also does not happen if you download the libraries with `cabal get` and install them directly (no matter what shell is used)."},"comment":{"url":"https://api.github.com/repos/haskell/cabal/issues/comments/95313480","html_url":"https://github.com/haskell/cabal/issues/2502#issuecomment-95313480","issue_url":"https://api.github.com/repos/haskell/cabal/issues/2502","id":95313480,"user":{"login":"gzh","id":727958,"avatar_url":"https://avatars.githubusercontent.com/u/727958?v=3","gravatar_id":"","url":"https://api.github.com/users/gzh","html_url":"https://github.com/gzh","followers_url":"https://api.github.com/users/gzh/followers","following_url":"https://api.github.com/users/gzh/following{/other_user}","gists_url":"https://api.github.com/users/gzh/gists{/gist_id}","starred_url":"https://api.github.com/users/gzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gzh/subscriptions","organizations_url":"https://api.github.com/users/gzh/orgs","repos_url":"https://api.github.com/users/gzh/repos","events_url":"https://api.github.com/users/gzh/events{/privacy}","received_events_url":"https://api.github.com/users/gzh/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T19:40:55Z","updated_at":"2015-04-22T19:40:55Z","body":"Experienced same issue, Windows 7 x86_64, ghc 7.10. Neither -j1 nor separate get & install helped; that was cabal-install 1.22.2.0 built against cabal library 1.22.2.0. I decided to rollback to cabal-install 1.22.0.1 and cabal library 1.22.1.1; with this version I managed to build required libraries with -j1 switch (however build still failed with -jN, N>1)."}}