Skip to content

Compile HLS from source #8

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

Closed
wants to merge 3 commits into from
Closed

Compile HLS from source #8

wants to merge 3 commits into from

Conversation

tfausak
Copy link
Contributor

@tfausak tfausak commented Sep 1, 2022

This is an alternative to #7.

I'm curious to see how long it takes in CI. On my machine (M1 MacMini) it takes about 10 minutes to build for GHC 9.2.4.

Also it looks like maybe some support for GHC 9.4 landed recently? haskell/haskell-language-server#2994

@tfausak tfausak requested a review from codygman September 1, 2022 20:17
ghcup install hls "$HLS_VERSION" --set; \
ghcup gc --hls-no-ghc; \
ghcup compile hls --cabal-update --ghc "$GHC_VERSION" --git-ref "$HLS_VERSION"; \
rm --recursive /cabal-store/* ~/.cabal/logs ~/.cabal/packages; \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you try running haskell-language-server-wrapper from the container this Dockerfile builds?

I recall removing ~/.cabal.packages causing errors along the lines of cannot find libHSbase ....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not try that out. And this build failed in CI anyway, so I'm going to close this PR.

Copy link
Contributor

@codygman codygman Sep 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any reasons for failure on your or my CI build failure output in #7.

I was able to build it locally, so I'm guessing it's running out of memory or something.

Am I missing something or do you also not see any reasons for failure in either build output?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any reason for the failure either. My guess, like yours, is out of memory. Probably ExitFailure 9.

For what it's worth, it did build for me locally.

@tfausak tfausak closed this Sep 2, 2022
@tfausak tfausak deleted the gh-7-hls branch September 2, 2022 12:36
This was referenced Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants