Windows 生成数据默认包时出现奇怪的错误
在尝试Windows 生成数据默认包时出现奇怪的错误,windows,haskell,cabal,Windows,Haskell,Cabal,在尝试cabal安装数据默认值时,我收到许多奇怪的错误消息。即使在新的沙箱中,该包也会发生相同的基本现象。我可以毫无问题地安装其他软件包 错误消息的形式如下,但出现在4个数据默认实例-包中的每一个: [1/1]编译Data.Default.Instances.OldLocale(Data\Default\Instances\OldLocale.hs,dist\dist-sandbox-6a114df1\build\Data\Default\Instances\OldLocale.o) C:\Pr
cabal安装数据默认值时,我收到许多奇怪的错误消息。即使在新的沙箱中,该包也会发生相同的基本现象。我可以毫无问题地安装其他软件包
错误消息的形式如下,但出现在4个数据默认实例-
包中的每一个:
[1/1]编译Data.Default.Instances.OldLocale(Data\Default\Instances\OldLocale.hs,dist\dist-sandbox-6a114df1\build\Data\Default\Instances\OldLocale.o)
C:\ProgramFiles(x86)\mingc-7.10.1\ghc-7.10.1\mingw\bin\ar.exe:dist/dist-sandbox-6a114df1\build\libHSdata-default-instances-old-locale-0.0.1-6jcjjar25tk4x3nhhhjfm.a-8696\libHSdata-default-instances-old-locale-0.0.1-6jcjcjar25tk4x3nhhhhhjfm.a:没有这样的文件或目录
知道发生了什么吗
来自ghc包装检查的输出
使用此策略可以解决此问题,这最终与总路径长度的窗口限制有关
使用stack是另一种解决方案,可能需要先尝试,因为它在内部使用的文件夹可能离根目录足够近,路径才能工作。ghc pkg check的输出是什么?
?添加了ghc pkg check的输出。试图遵循它关于ghc pkg recache的暗示,但似乎没有帮助。(甚至没有让提示消失。)可能与此错误有关:我不知道缓存过期的事情是否真的是导致您无法编译数据默认值的原因。您可以尝试阴谋集团安装旧区域设置
。您可能需要添加--重新安装
和/或强制重新安装
,--重新安装
不会改变任何内容。我认为这可能与最大路径长度有关,但结果表明,完全扩展的路径只有223个字符(限制为260个)。现在我想知道这是否与/vs\war有关。
C:\Users\Doug\Documents\GitHub\bird-brain [estimator]> ghc-pkg check
WARNING: cache is out of date: C:/Program Files (x86)/MinGHC-7.10.1/ghc-7.10.1\lib\package.conf.d\pa
ckage.cache
ghc will see an old view of this package db. Use 'ghc-pkg recache' to fix.
Warning: haddock-interfaces: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\QuickCh
eck-2.8\html\QuickCheck.haddock doesn't exist or isn't a file
Warning: haddock-html: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\QuickCheck-2.
8\html doesn't exist or isn't a directory
Warning: haddock-interfaces: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\tf-rand
om-0.5\html\tf-random.haddock doesn't exist or isn't a file
Warning: haddock-html: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\tf-random-0.5
\html doesn't exist or isn't a directory
Warning: haddock-interfaces: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\random-
1.1\html\random.haddock doesn't exist or isn't a file
Warning: haddock-html: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\random-1.1\ht
ml doesn't exist or isn't a directory
Warning: haddock-interfaces: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\primiti
ve-0.5.4.0\html\primitive.haddock doesn't exist or isn't a file
Warning: haddock-html: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\primitive-0.5
.4.0\html doesn't exist or isn't a directory
Warning: haddock-interfaces: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\mtl-2.2
.1\html\mtl.haddock doesn't exist or isn't a file
Warning: haddock-html: C:\Users\Doug\AppData\Roaming\cabal\doc\i386-windows-ghc-7.10.1\mtl-2.2.1\htm
l doesn't exist or isn't a directory