Hi, On Sun, Jan 31, 2016 at 10:00:32PM +0100, Juan Francisco Cantero Hurtado wrote: > Moving the thread to ports@ > > On Sun, Jan 31, 2016 at 09:16:07PM +0100, Christoph R. Murauer wrote: > > Hello ! > > > > Thanks for your answer. > > > > > The GHC port doesn't work on powerpc. > > > > Any chances (have no machine to try it) to build the community / older > > version of ghc ?
Oh, well... 1. Get https://openbsd.dead-parrot.de/ghc-bootstrap.sh (there's also an RCS file containing all the history of it) 2.Try to get a ghc-6.6.1 .hc file bundle for ppc from somewhere at *.haskell.org (and add it to the fetch() function of the ghc-bootstrap.sh) 3. Try building all the versions of ghc from 6.6.1 up to 7.4.2. I recommend to do this with the release of OpenBSD which first had the 64 bit time_t (OpenBSD-5.5), because i wrote ghc-boostrap.sh exactly for that. 4. Proceed with ghc-7.6 and ghc-7.8 , either on older versions of OpenBSD, or just trying older versions of the port (if 1 -- 3 were successful). Or extend the ghc-bootstrap.sh script. 5. Find someone who will build new bootstrappers on ppc whenever needed (at least twice per year, may be more often). If 2. fails, i.e. there is no .hc file bundle for ghc-6.6.1 on ppc, you have to go a few year back in history and start over with ghc-3.02 (that was the last release with a machine independend hc file bundle). If 3. fails, this may because of incompatibilities of ghc with OpenBSD/ppc (most problems expected in rts/Linker.C) or because you didn't start bootstrapping on OpenBSD-5.5 but on newer releases (which *may* need different / additional patches in ghc-bootstrap.sh). Alternatively, you may try to cross-compile a bootstrapper. I tried this a couple of years ago, but IIRC cross-compilation in ghc was broken at that time. I don't know wether it works better today nor what tweaks and hacks would be necessary. Ciao, Kili