-
Notifications
You must be signed in to change notification settings - Fork 7
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
Module Distribution.Package
does not export PackageName(PackageName)
#12
Comments
This looks like it might be related to this cabal issue. There seems to be some confusion as to why this occurs. I have managed to successfully build comonad-5 with the lts-9.21 configuration, so it might be worth trying that. Weirdly, I am in the middle of putting together a release for lts-11.20, and the issue recurs there. Why it should work with lts-9.21 but not the others is currently a mystery to me, but I suspect it is due to some interaction between a global cabal installation and one or more local stack installations of cabal. Do you have a global cabal installation? If so, what version is it? Also, the error message you pasted didn't actually come from a ghcjs build - it says it was using |
I think this commercialhaskell/stack#3049 explains what is going on. I'm pretty sure that if you make stack use cabal-1.24 (somehow...) then that will resolve the issue. |
Hi @matchwood, thank you for the quick reply and the very helpful references to other issues! I have cabal installed globally. There is this slightly confusing version output but it looks like
I can't even I do get the message I think part of the problem is that this build is too early in the whole stack build lifecycle (the setup) and I don't know what options actually end up getting used in that phase as far as dependency constraints go. I'll keep looking for solutions, especially in the area of trying to get Thanks again! |
@SpencerPark Oh hang on, I didn't read your log thoroughly enough. I actually thought you were trying to build a package with comonad in it, but the issue is in building the compiler itself? I knew something didn't make sense! It is still quite strange though. One thing you could try is to set up a dummy package with the lts-8.11 resolver and comonad as a dependency and try to run stack build on that and see what happens. If it succeeds then it should cache the package, and that might solve the issue. As far as I know, all that stack is doing when installing ghcjs is unpacking the archive and then running 'stack build' on it. |
I've tried the dummy package setup with
The dummy project solution did help as I was also able to find some more details about who is using what. Nevertheless, I was able to properly run
Thank you very much for all your help with this! |
Glad you got it working! Can I just check that the dummy package you are referring to is one you were trying to build with By the way I got the impression, from poking around in other issues, that it might be possible to solve this issue by directly specifying the cabal version in the |
Yes I set up a dummy package with resolver: lts-8.11
# compiler: ghcjs-0.2.1.9008011_ghc-8.0.2
compiler: ghc-8.0.2
compiler-check: match-exact and a cabal file with
but as it was using the same ghc version as the ghcjs attempt, it was also sharing the same global (with respect to the ghc version) cabal. The ghcjs version based on If we can pin down the cabal version in the |
Ok great, many thanks for clarifying, just wanted to double check that we were on the same page! |
Using
I run into the issue below when running
stack setup -v --cabal-verbose
with stackVersion 1.7.1, Git revision 681c800873816c022739ca7ed14755e85a579565 (5807 commits) x86_64 hpack-0.28.2
.This is on the windows subsystem for linux using a ubuntu distribution. I have been able to boot ghcjs with stack in the past based on the recommendation from the stack docs:
Note the 8.0.1 version from the stack docs fails for a different reason that is related to ghc producing binaries that have the executable stack flag set which WSL doesn't (and won't) support but that is not the issue that is happening here.
If there is any more information that would help please let me know. Also if there is anything else I should try I would be happy to do so.
The text was updated successfully, but these errors were encountered: