Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651778 - dev-lang/ghc-8.0.4 doesn't build under musl
Summary: dev-lang/ghc-8.0.4 doesn't build under musl
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
: 712334 712338 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-03-27 19:16 UTC by chobaga
Modified: 2021-03-07 05:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.