User:Mjo/GHC binary packages

From Gentoo Wiki
Jump to:navigation Jump to:search

Bootstrapping dev-lang/ghc on a new architecture is next to impossible these days. I've built binary packages for riscv64gc/musl (lp64d ABI) that should help you get started.

These were originally bootstrapped using the ghc-musl (Alpine) builds by Olivier Benz.

Note
The Haskell overlay where these were built does not currently have ~riscv keywords, so these were built with ACCEPT_KEYWORDS=~amd64. You may need to set the same ACCEPT_KEYWORDS to install them, even on a RISC-V machine.

riscv/musl/llvm

riscv/musl/unregisterised

The "unregisterised" builds of GHC only compile to C, they don't use LLVM or the native codegen.

riscv/musl/native

In honor of the new RISC-V native codegen in 9.12.x, a native-only build. Hope it works!