compiler icon indicating copy to clipboard operation
compiler copied to clipboard

What is the problem with building from source?

Open HiPhish opened this issue 1 year ago • 1 comments

A few days ago I built the Elm compiler from source even though I barely know anything about Haskell. One machine was running Ubuntu 22.04, the other Void Linux (a rolling release distro). In both cases I only had to install the ghc and cabal-install packages, no messing around with specific versions (Void currently ships GHC 9.0.2 and Cabal 3.6.3.0).

All I had to run was:

rm worker/elm.cabal  # Might not even be needed?
cabal new-configure --ghc-option=-optl=-pthread
cabal new-build

No messing around with ghcup or anything. Am I missing something here? The binary worked fine for me when I was working through the guide. I have not done any further development because I have come to the conclusion that unfortunately Elm is not suitable for my use-case (I need seamless Javascript interoperability, but Elm does not offer that; I'm not complaining, it simply isn't what I need), but I would like to keep it as a potential option for the future.

HiPhish avatar Jul 24 '24 21:07 HiPhish

Thanks for reporting this! To set expectations:

  • Issues are reviewed in batches, so it can take some time to get a response.
  • Ask questions in a community forum. You will get an answer quicker that way!
  • If you experience something similar, open a new issue. We like duplicates.

Finally, please be patient with the core team. They are trying their best with limited resources.

github-actions[bot] avatar Jul 24 '24 21:07 github-actions[bot]