-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'stack install ghc-mod' fails with latest LTS/Nightly snapshot on 64-bit Windows #2124
Comments
I think that can happen when you are using a system installed ghc, or using a ghc version different than what the snapshot expects. This is very likely, because those are all ghc boot packages. Usually it doesn't matter if stack installs different versions of these packages, but when there is also a dependency on ghc, errors like this will occur. Looks like your ghc is built against
|
@mgsloan The
Seems |
I think this is related to #1530 . Building |
Seems likely that it's related to #1530. I think that stackage bumping the So, the workaround is "don't update to an lts version that overrides ghc boot packages on windows". |
|
This is not a stack issue. We do want to support re-building different versions of ghc boot packages. This is a quite valid usecase, and omitting it would be a bug. This does cause issues in the rare case that you also have a dependency on ghc itself, such as is the case with ghc-mod. However, it only causes issues when versions are specified that are different than those included with ghc. It looks like stackage will not be setting the |
On further thought, I see what you mean. It could be considered a bug that specifying an extra-dep for a ghc version of a package causes it to be built (it should be used, so that ghc can also be used). I'm pretty sure this will be resolved as a side effect of #1265, which is slated to be implemented for the next large release. |
The error message is as follows:
I am building it in a mingw-w64 win64 shell (
uname -a
outputsMINGW64_NT-10.0 DESKTOP-RUPL5NM 2.5.0(0.297/5/3) 2016-04-12 13:08 x86_64 Msys
).Theghc
compiler I'm using is installed bystack setup
, there is no globalghc
. The build command isstack install ghc-mod
, and it is not run in a project directory, so it is using implicit global config. Global project resolver is set tonightly-2016-05-08
/lts-5.16
, both fails. I also tried removing the whole%appdata%\stack
directory (equivalent to~/.stack
in Linux), but that doesn't help either.The issue is previously reported here, but "multiple versions of the same package" issue should be impossible given how
stack
works (and there is noextra-deps
in my globalstack.yaml
)! So I think something may be wrong withstack
.The text was updated successfully, but these errors were encountered: