Highly misleading missing-package error message
GHC reports
ghc.exe: unknown package: ghc-6.5
But it's there all right:
sh-2.04$ ../utils/ghc-pkg/ghc-pkg-inplace list
c:/darcs/fc2/driver/package.conf.inplace:
Cabal-1.1.4, Win32-1.0, base-1.0, (ghc-6.5), haskell98-1.0,
rts-1.0, template-haskell-1.0
The real problem is revealed by using -v
...
package ghc-6.5 will be ignored due to missing dependencies:
Win32
...
ghc.exe: unknown package: ghc-6.5
So the culprit is that Win32 isn't there, not that ghc-6.5 isn't there. The error message is jolly misleading.
There's nothing ghc/win32 specific about this. It's a bug in the package machinery.
Trac metadata
Trac field | Value |
---|---|
Version | 6.4.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Unknown |
Architecture | Unknown |