Bug 239713

Summary: No PPC64 build of ghc
Product: [Fedora] Fedora Reporter: Bryan O'Sullivan <bos>
Component: ghcAssignee: Jiri Skala <jskala>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 15CC: aglotov, bos, dan, haskell-devel, jeremy, loupgaroublond, petersen
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: ppc64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-06 06:15:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 238953, 239752, 246051    

Description Bryan O'Sullivan 2007-05-10 17:50:39 UTC
Not ported to ppc64 yet.

Comment 1 David Woodhouse 2007-05-10 17:56:21 UTC
mail me a ssh public key; you can have an account on a suitable box :)

Comment 2 Jens Petersen 2007-05-10 23:54:33 UTC
*** Bug 239751 has been marked as a duplicate of this bug. ***

Comment 3 Jens Petersen 2007-05-10 23:56:03 UTC
As I commented in the above bug:

I think older versions of ghc have been built for ppc64
on debian and gentoo.  Might need to do a multistage bootstrap...



Comment 4 Jeremy Hinegardner 2007-07-25 19:40:19 UTC
Not sure if this bug should get some attention soon, I was just notified that we
now have broken build dependencies in development. python-vcpx (used by tailor)
depends on darcs.

Comment 5 Jens Petersen 2007-07-26 02:17:30 UTC
Yup it would be good to have - unfortunately it is quite a lot of work.

I found ghc-6.4.2 for ppc64 in gentoo and just sent mail to glasgow-haskell list
and the PPC SIG people for input and help.


Comment 7 Dan HorĂ¡k 2007-08-17 19:35:17 UTC
(In reply to comment #4)
> Not sure if this bug should get some attention soon, I was just notified that we
> now have broken build dependencies in development. python-vcpx (used by tailor)
> depends on darcs.

python-vcpx has runtime dependency on darcs

Comment 8 Jens Petersen 2007-08-20 00:41:52 UTC
Yes, we're well aware of the problem.
Unfortunately bootstrapping ghc on ppc64 is non-trivial. :-/
I have started some work on it but it is currently stalled
(I hope to return to it soon again).



Comment 9 Jens Petersen 2008-01-10 07:47:16 UTC
Forgot to update on my last attempt a while back, but unfortunately
it was not successful.  I ran into some missing symbol problems
when I tried to bootstrap from a binary from gentoo IIRC.

Comment 10 David Woodhouse 2008-04-18 12:37:25 UTC
http://hackage.haskell.org/trac/ghc/ticket/1346 discusses bootstrap issues with
ghc-6.8.

We might find it easier to bootstrap on ppc64 than in the general case, because
we can run ppc32 binaries.

Comment 11 David Woodhouse 2008-04-18 16:21:59 UTC
I followed the cross-compile instructions at
http://hackage.haskell.org/trac/ghc/wiki/Building/Porting to build ghc-6.61 in a
Fedora 7 mock root.

It doesn't seem to work correctly, though. The newly-built 'ghc-inplace'
compiler just gets stuck, with a zombie 'gcc' child, in select():

mock-chroot> ../compiler/ghc-inplace  -v -optc-O -optc-Wall -optc-W
-optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations
-optc-Winline -optc-Waggregate-return -optc-Wbad-function-cast
-optc-I../includes -optc-I. -optc-Iparallel -optc-DCOMPILING_RTS
-optc-fomit-frame-pointer -optc-DNOSMP -optc-fno-strict-aliasing -H16m -O
-optc-O2 -optc-DNOSMP -static -I. -#include HCIncludes.h -fvia-C -dcmm-lint    
-c Adjustor.c -o Adjustor.o
Glasgow Haskell Compiler, Version 6.6.1, for Haskell 98, compiled by GHC version
6.6.1
Using package config file:
/builddir/build/BUILD/ghc-6.6.1/driver/package.conf.inplace
wired-in package base not found.
wired-in package rts mapped to rts-1.0
wired-in package haskell98 not found.
wired-in package template-haskell not found.
Hsc static flags: -funregisterised -static -static
Created temporary directory: /tmp/ghc27293_0
*** C Compiler:
gcc -x c Adjustor.c -o /tmp/ghc27293_0/ghc27293_0.s -v -S -Wimplicit -O
-D__GLASGOW_HASKELL__=606 -DNO_REGS -DUSE_MINIINTERPRETER -O -Wall -W
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Winline
-Waggregate-return -Wbad-function-cast -I../includes -I. -Iparallel
-DCOMPILING_RTS -fomit-frame-pointer -DNOSMP -fno-strict-aliasing -O2 -DNOSMP -I
. -I /builddir/build/BUILD/ghc-6.6.1/includes -fwrapv


Comment 12 Bug Zapper 2008-05-14 02:53:26 UTC
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 13 Bryan O'Sullivan 2008-05-28 20:33:05 UTC
Unfortunately, I don't have cycles to do anything about this.  Lowering priority.

Comment 14 Jens Petersen 2008-11-10 02:10:15 UTC
Seems gentoo are still working on ppc64: http://bugs.gentoo.org/206643

Comment 15 Bug Zapper 2008-11-26 01:54:00 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 16 Bug Zapper 2009-11-18 12:19:08 UTC
This message is a reminder that Fedora 10 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 10.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '10'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 10's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 10 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 17 Jens Petersen 2009-11-20 03:50:44 UTC
Given that ppc is now a secondary arch as of F13 I propose to close this.
Of course if someone pushing the ppc arch wants to pick it up
we are happy to work with them but it is no longer a priority for
the Haskell SIG.

Comment 18 Jens Petersen 2011-05-25 09:01:16 UTC
Jiri Skala has been working on this recently.

http://ppc.koji.fedoraproject.org/koji/packageinfo?packageID=1986

Comment 19 Jens Petersen 2011-06-02 02:52:44 UTC
ghc-7.0.2-16.2.fc15 is built for dist-f15:
http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=40877

The ppc64 port has some restrictions though: no ghci so no TH
(template haskell) and no threaded rts.
Currently 5 library packages in fedora require TH.