Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2026 14:15:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        haskell@FreeBSD.org
Subject:   [Bug 295675] lang/ghc{,96}: port to powerpc64
Message-ID:  <bug-295675-16154-qsSoSM2iiw@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-295675-16154@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295675

Gleb Popov <arrowd@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arrowd@FreeBSD.org

--- Comment #1 from Gleb Popov <arrowd@FreeBSD.org> ---
I don't like the whole

.if ${ARCH:Mpowerpc64*} && ${GHC_VERSION} == 9.6.7
 BOOT_GHC_VERSION=       9.6.7
 HADRIAN_BOOT_TARBALL=   hadrian-9.6.7-boot-powerpc64le.tar.gz
.endif

block. It could've been avoided by switching all arches to use GHC 9.6.7 as a
bootstrap compiler. But now it is committed I wouldn't bother.

If I understand it correctly the

+.if ${ARCH} == powerpc64
+# Boot's settings are generated by configure which maps `powerpc64` to ELF_V1,
+# but FreeBSD ppc64 is ELFv2; flip so the boot's NCG dispatches correctly.
+       ${REINPLACE_CMD} -e 's|ArchPPC_64 ELF_V1|ArchPPC_64 ELF_V2|g' \
+               ${BOOT_INSTALL_DIR}/lib/ghc-${BOOT_GHC_VERSION}/lib/settings
+.endif

block could also be removed once we re-generate the bootstrap compiler
distribution? If that's the case please add a comment like "can be removed
after rerolling all the bootstraps" so that we can remember to remove this
block at some point.

Other than that, LGTM.

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-295675-16154-qsSoSM2iiw>