Skip to content

data-default-instances-old-locale build fails on Windows with GHC 7.10.1 and Cabal 1.22.2.0 #2502

@RyanGlScott

Description

@RyanGlScott

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:

C:\...\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

Here's a gist 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.

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.

It 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).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions