Compiling libraries

Simon Peyton Jones simonpj at microsoft.com
Thu Apr 29 08:22:35 UTC 2021


Ben and other friends
What is the approved way to build libraries with (and for) a compiler that I've just built?
I tried this:

bash$ cabal v2-install --with-ghc=/home/simonpj/code/ghc-9.2-branch/inplace/bin/ghc-stage2 streamly --allow-newer
but it failed with

Data/Primitive/Types.hs:273:844: error:

    * Couldn't match expected type 'Word#' with actual type 'Word8#'

    * In the fourth argument of 'shimmedSetWord8Array#', namely 'x#'
(This was for a compiler built from the ghc-9.2 branch.)
I'd like to be able to do the same for HEAD.
I need to do this to help with the numerous tickets asking about library regressions.  For example, I want to be able repoduce @harendra's example<https://gitlab.haskell.org/ghc/ghc/-/issues/19557#note_348969>, but I can't because I can't build streamly.
Thanks!
Simon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20210429/314907e1/attachment.html>


More information about the ghc-devs mailing list