-
Notifications
You must be signed in to change notification settings - Fork 842
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 2.1.3 fails to build happy for (at least) lts-3 and lts-8 #5253
Comments
This also affects |
I filed an issue about the general problem with |
I don't think that's a "more general problem", though? A user might want to build and use the |
@phlummox yes, it look you're right and it has not so much to do with the
looks like it could have something to do with outdated Cabal version and maybe because of that |
BTW I couldn't reproduce this -
|
<snipped> Hi Kirill, unfortunately I don't know the details of the machine you're using, so I'm not able to reproduce your failure to reproduce. Perhaps you already had Perhaps this GitHub repo might help you - it contains a |
@phlummox I think that explanation makes sense. When I run
That suggests you are right: Stack isn't building happy at all, it is only trying to find it somewhere. The command |
That is the |
@phlummox I was just showing you the end result after successful build here is the full build log - https://gist.github.com/qrilka/f308eb26e90ef0125e89365b6453803a Probably verbose build log of your failure could give some hint, could you share it? |
The verbose output is in the Gist, linked to in the original report. |
It looks like https://github.com/simonmar/happy/blob/1.19.5/Setup.lhs for some reason wants to have |
I encountered this again while trying to build the lts-3 snapshot version of Agda: verbose output here. |
Interestingly, a Travis build of that version of Agda on MacOS, again using stack 2.1.3 and lts-3 as a resolver, seemed to complete with no problem. Verbose output here. |
a possible explanation could be that Travis had some global version of happy installed |
Indeed. However, in this case I know that wasn't possible; hence my mentioning it. But for the removal of any doubt, here is the output from a new Travis build, with Start of output is:
End of output is:
And in between, Stack "--version" output is:
Stack was installed with:
*edited to add: I see I didn't pass the flag for verbose output. I'll do that now and give a Gist with the verbose output. |
This is to deal with bug commercialhaskell/stack#5253, stack 2.1.3 doesn't correctly build happy for early LTS's.
This is to deal with bug commercialhaskell/stack#5253, stack 2.3.1 doesn't correctly build happy for early LTS's.
I am closing given the passage of time. The
works as expected. |
General summary/comments
This seems to be a regression, as
happy
builds for both these LTSs using stack 1.9.3. I note that similar issues have been reported previously (e.g. #5023 for stack 2.1.3, #1427 and #157 for older versions).I encountered the issue while building haskell-src-meta (which requires
haskell-src-exts
, which requireshappy
).I have tested LTSs 9, 10 and 12 with stack 2.1.3, and
happy
builds successfully for those. The build might well fail for LTSs 4 through 7, but I have not tested those.Steps to reproduce
Install stack 2.1.3. (In my case, on Ubuntu 16.04.6.) For lts-3:
And similarly for lts-8.
Expected
The build should complete successfully.
Actual
The build fails - stack output (for lts-3) ends with
Here are Gists with the verbose output from running the "build" step from lts-3 and
lts-8.
Stack version
Method of installation
The text was updated successfully, but these errors were encountered: