[MacPorts] #64698: approach to fix Haskell (GHC) for PowerPC: some progress, ghc @7.6.3 builds for ppc
MacPorts
noreply at macports.org
Mon Feb 21 07:13:23 UTC 2022
#64698: approach to fix Haskell (GHC) for PowerPC: some progress, ghc @7.6.3 builds
for ppc
---------------------------------+------------------------------
Reporter: barracuda156 | Owner: (none)
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: powerpc, leopard
Port: ghc, ghc-bootstrap |
---------------------------------+------------------------------
Comment (by barracuda156):
Replying to [comment:23 kencu]:
> I think that at that point, ghc started making bad bitrotted code on
powerpc darwin, and then was ultimately dumped
>
> https://gitlab.haskell.org/ghc/ghc/-/issues/2031
Could be. I just tried to rebuild 7.6.3 with 7.6.2, and got the same
error:
{{{
ghc-stage1: internal error: evacuate(static): strange closure type 24425
(GHC version 7.6.2 for powerpc_apple_darwin)
Please report this as a GHC bug:
http://www.haskell.org/ghc/reportabug
HC [stage 1] libraries/base/dist-install/build/Control/Monad.p_o
HC [stage 1] libraries/base/dist-
install/build/Text/ParserCombinators/ReadP.o
/bin/sh: line 1: 34056 Abort trap "inplace/bin/ghc-stage1"
-fPIC -dynamic -H32m -O -package-name base-4.6.0.1 -hide-all-packages -i
-ilibraries/base/. -ilibraries/base/dist-install/build -ilibraries/base
/dist-install/build/autogen -Ilibraries/base/dist-install/build
-Ilibraries/base/dist-install/build/autogen -Ilibraries/base/include
-I/opt/local/include -optP-DOPTIMISE_INTEGER_GCD_LCM -optP-include
-optPlibraries/base/dist-install/build/autogen/cabal_macros.h -package
ghc-prim-0.3.0.0 -package integer-gmp-0.5.0.0 -package rts-1.0 -package-
name base -XHaskell98 -XCPP -O2 -no-user-package-db -rtsopts -odir
libraries/base/dist-install/build -hidir libraries/base/dist-install/build
-stubdir libraries/base/dist-install/build -hisuf dyn_hi -osuf dyn_o
-hcsuf dyn_hc -c libraries/base/./GHC/Float.lhs -o libraries/base/dist-
install/build/GHC/Float.dyn_o
make[1]: *** [libraries/base/dist-install/build/GHC/Float.dyn_o] Error 134
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
make: Leaving directory
`/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.6.3'
Command failed: cd
"/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_ghc/ghc/work/ghc-7.6.3"
&& /usr/bin/make -j4 -w all
Exit code: 2
}}}
So it is not necessarily some problem with 7.8.x code but rather my
initially built 7.6.2 is faulty. (Or otherwise you are right and it is
just broken like clang.)
I will try getting some advice from early developers of ghc for ppc, if I
can find there contacts. Tried Christian.Maeder at dfki.de but e-mail is
dead. He was supporting PowerPC darwin back then.
--
Ticket URL: <https://trac.macports.org/ticket/64698#comment:24>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list