alpmestan / ghc.nix

Nix (shell) expression for working on GHC
https://haskell.org/ghc/
BSD 3-Clause "New" or "Revised" License
143 stars 51 forks source link

add cache workaround for ghc js backend builds #150

Closed jappeace closed 1 year ago

jappeace commented 1 year ago

solves configure fails with Configure fails with: sub-word sized atomic operations not available

which is better described here: https://gitlab.haskell.org/ghc/ghc/-/wikis/javascript-backend/building#configure-fails-with-sub-word-sized-atomic-operations-not-available

the cache is by default within the nix store, which is immutable, we need to make it writable, so putting it in the current working directory for the shells seems like the appropriate solution.

supersven commented 1 year ago

@jappeace Thanks a lot for this detailed explanation and fixing PR!

Would you mind to add this knowledge at some additional place and not only in the commit message? Maybe as a comment in code or to the README.md? (Commit messages get easily out of sight when the code pieces are e.g. refactored or moved...)

jappeace commented 1 year ago

I added a comment to the readme overview table and in the code

supersven commented 1 year ago

@jappeace , would you mind to fix this typo: https://github.com/alpmestan/ghc.nix/actions/runs/4520183620/jobs/8222280325?pr=150#step:7:1670 ? (The failing linter is currently blocking this PR from being merged.)

jappeace commented 1 year ago

fixed