-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev-lang/ghc-9.0.2-r2 does not compile on Musl (no lib64) #1368
Comments
Here's are some relevant blocks of code: gentoo-haskell/dev-lang/ghc/ghc-9.0.2-r2.ebuild Lines 436 to 444 in 866a377
gentoo-haskell/dev-lang/ghc/ghc-9.0.2-r2.ebuild Lines 292 to 299 in 866a377
gentoo-haskell/dev-lang/ghc/ghc-9.0.2-r2.ebuild Lines 305 to 320 in 866a377
I take it you are using the |
I'm not sure if @thesamesam might have some insight here. |
@Thymelizabeth are you aware that using the
|
The way I see it, there are several problems with trying to install GHC on a system using musl:
|
Thanks for your thoughts on this. I did not see that gentoo-haskell/dev-lang/ghc/ghc-9.0.2-r2.ebuild Lines 490 to 498 in 4813a4b
I don't have a lot of familiarity with the |
@Thymelizabeth Do you think that something like this would be a good first step, just to ensure people on diff --git a/dev-lang/ghc/ghc-9.0.2-r2.ebuild b/dev-lang/ghc/ghc-9.0.2-r2.ebuild
index 1bbe52e971..9e6149913c 100644
--- a/dev-lang/ghc/ghc-9.0.2-r2.ebuild
+++ b/dev-lang/ghc/ghc-9.0.2-r2.ebuild
@@ -29,7 +29,8 @@ BIN_PV=${PV}
#arch_binaries="$arch_binaries alpha? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-alpha.tbz2 )"
#arch_binaries="$arch_binaries arm? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-armv7a-hardfloat-linux-gnueabi.tbz2 )"
#arch_binaries="$arch_binaries arm64? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-aarch64-unknown-linux-gnu.tbz2 )"
-arch_binaries="$arch_binaries amd64? ( https://eidetic.codes/ghc-bin-${PV}-x86_64-pc-linux-gnu-r1.tbz2 )"
+arch_binaries="$arch_binaries amd64? ( elibc_glibc? ( https://eidetic.codes/ghc-bin-${PV}-x86_64-pc-linux-gnu-r1.tbz2 ) )"
+#arch_binaries="$arch_binaries amd64? ( elibc_musl? ( https://eidetic.codes/ghc-bin-${PV}-x86_64-pc-linux-musl-r1.tbz2 ) )"
#arch_binaries="$arch_binaries ia64? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-ia64-fixed-fiw.tbz2 )"
#arch_binaries="$arch_binaries ppc? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-ppc.tbz2 )"
#arch_binaries="$arch_binaries ppc64? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-ppc64.tbz2 )"
@@ -46,7 +47,15 @@ yet_binary() {
#alpha) return 0 ;;
#arm64) return 0 ;;
#arm) return 0 ;;
- amd64) return 0 ;;
+ amd64)
+ if use elibc_glibc; then
+ return 0
+ elif use elibc_musl; then
+ return 1
+ else
+ return 1
+ fi
+ ;;
#ia64) return 0 ;;
#ppc) return 0 ;;
ppc64) Also, have you been able to build successfully with the |
The patch looks good. I tried installing with Trying with the Alpine binary (9.0.2) from haskell.org gives the same result. GHCup also segfaults. |
GHC binaries built for glibc do not seem to play nice on musl systems. This separates the two so musl binaries can later be built/uploaded. Bug: #1368 Signed-off-by: hololeap <hololeap@users.noreply.github.com>
Yeah, musl will always need its own set as it's a different ABI (treat it like a different architecture for the purposes of reusing binaries). |
I would not use gold for anything, it's considered deprecated. The normal linker from GNU binutils (bfd) is fine, but gold is not. |
I suggest taking a look here: |
GHC binaries built for glibc do not seem to play nice on musl systems. This separates the two so musl binaries can later be built/uploaded. Bug: gentoo-haskell/gentoo-haskell#1368 Signed-off-by: hololeap <hololeap@users.noreply.github.com> Signed-off-by: Sam James <sam@gentoo.org>
build.log
emerge-info.txt
Fails in the prepare phase trying to relocate folders.
The text was updated successfully, but these errors were encountered: