[ANNOUNCE] GHC 9.6.1 is now available

The GHC team is very pleased to announce the availability of GHC 9.6.1. As usual, binaries and source distributions are available at downloads.haskell.org: https://downloads.haskell.org/ghc/9.6.1/ Beginning with GHC 9.6.1, GHC can be built as a cross-compiler to WebAssembly and JavaScript. This is an important step towards robust support for compiling Haskell to the Web, but there are a few caveats to be aware of in the 9.6 series: - Both the Javascript and WebAssembly backends are still at an early stage of development and are present in this release as a technology preview - Using GHC as a cross-compiler is not as easy as we would like it to be; in particular, there are challenges related to Template Haskell - GHC is not yet run-time retargetable; a given GHC binary targets exactly one platform, and both WebAssembly and JavaScript are considered platforms for this purpose. Cross-compilers must be built from source by their users We hope to lift all of these limitations in future releases. Additionally, 9.6.1 includes: - Significant latency improvements in the non-moving garbage collector - Efficient runtime support for delimited continuations - Improvements in compiler error messages - Numerous improvements in the compiler's memory usage See the [release notes] for a comprehensive accounting of changes in this release. As always, one can find a migration guide to aid in transitioning from older releases on the [GHC Wiki][migration-guide]. We have also recently started extending our release process to cover a wider set of Linux distributions. In particular, we now offer Rocky 8 and Ubuntu 20.04 binary distributions which cover RedHat-derivative and distributions using older glibc releases (namely 2.27), respectively. Thanks to everyone who has contributed code, documentation, testing, and tickets to this release process. As this release represents upstream GHC's first step towards supporting web targets, we are very excited to have this release out the door! Cheers, - Ben [ticket]: https://gitlab.haskell.org/ghc/ghc/issues/ [migration-guide]: https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.6 [release notes]: https://downloads.haskell.org/ghc/9.6.1/docs/users_guide/9.6.1-notes.html

On Sat, Mar 11, 2023 at 09:14:12PM -0500, Ben Gamari wrote:
The GHC team is very pleased to announce the availability of GHC 9.6.1. As usual, binaries and source distributions are available at downloads.haskell.org:
Is anyone else having trouble building 9.6.1 from upstream source. a58c028a18 (HEAD -> ghc-9.6, tag: ghc-9.6.1-release, origin/ghc-9.6) Fix TBA in base changelog 1f5bce0db8 Set RELEASE=YES 87ab8e353f Bump haddock submodule to 2.28 ... My attempts on a Fedora 36 system are so far unsuccessful, with both GCC and Clang-14 as the C compilers, and GHC 9.4.4 as the bootstrap GHC. The build fails when "HsBase.h" is not found during the "stage1" build of the ghc-bignum library. -- Viktor.

Hello On my mac, in ghc 9.6.1 can't compile with ghc -prof -fprof-auto , I get the error: Could not find module ‘Prelude’ Perhaps you haven't installed the "p_dyn" libraries for package ‘base-4.18.0.0’? Use -v (or `:set -v` in ghci) to see a list of the files searched for. Is anybody else experiencing this? In more detail:
ghc -prof -fprof-auto hello.hsLoaded package environment from /Users/gcolpitts/.ghc/x86_64-darwin-9.6.1/environments/default[1 of 2] Compiling Main ( hello.hs, hello.o )hello.hs:1:1: error: Could not find module ‘Prelude’ Perhaps you haven't installed the "p_dyn" libraries for package ‘base-4.18.0.0’? Use -v (or `:set -v` in ghci) to see a list of the files searched for. |1 | main = print "hello" | ^
hello.hs consists of main = print "hello" I reported this in 9.2.3 , in #21709 https://gitlab.haskell.org/ghc/ghc/-/issues/21709. At that time there was a workaround of adding -static but that no longer works. It gives a slightly different error message: ghc -prof -fprof-auto -static hello.hs Loaded package environment from /Users/gcolpitts/.ghc/x86_64-darwin-9.6.1/environments/default [2 of 2] Linking hello ld: warning: directory not found for option '-L/opt/local/lib/' ld: library not found for -lHStyp-qlty-1-186ccc78_p clang: error: linker command failed with exit code 1 (use -v to see invocation) ghc-9.6.1: `gcc' failed in phase `Linker'. (Exit code: 1) I have updated 21709 with the details of the problem on 9.6.1 Thanks
participants (3)
-
Ben Gamari
-
George Colpitts
-
Viktor Dukhovni