Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 651778

Summary: dev-lang/ghc-8.0.4 doesn't build under musl
Product: Gentoo Linux Reporter: chobaga <shitware>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: CONFIRMED ---    
Severity: normal CC: toralf
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description chobaga 2018-03-27 19:16:15 UTC
Build fails with the usual
> /var/tmp/portage/dev-lang/ghc-8.0.2/work/usr/lib/ghc-8.0.2/bin/ghc-pkg: No such file or directory
because the binaries used for bootstrapping are not fully statically linked and require glibc. Later unstable versions have the same problem.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2018-03-27 19:46:20 UTC
My understanding is it is not enough to have static ghc to be able to build ghc on foreign libc.

ghc comes with it's standard library (base, unix, rts) that use libc definitions gathered at ghc compile time. I expect them to be unlinkable on foreign libc.
Comment 2 Toralf Förster gentoo-dev 2020-03-13 19:49:02 UTC
*** Bug 712334 has been marked as a duplicate of this bug. ***
Comment 3 Toralf Förster gentoo-dev 2020-03-13 19:49:07 UTC
*** Bug 712338 has been marked as a duplicate of this bug. ***
Comment 4 12101111 2021-03-05 17:28:45 UTC
Upstream provide binary packages for Alpine Linux 3.10 in GHC 8.10 and 9.0
Comment 5 Dave Hughes 2021-03-07 05:09:17 UTC
You can find musl linked haskell bootstrap tarballs here https://github.com/redneb/ghc-alt-libc

We should probably look at integrating this with the musl overlay first, and then the main tree.