building ghc6 on ppc64 linux

Jens Petersen petersen at
Sun Jul 29 22:02:45 EDT 2007

On 7/26/07, Jens Petersen <petersen at> wrote:
> I am starting work on trying to bootstrap ghc-6.6.1 on ppc64 (yes 64bit) linux
> for Fedora.
> Has anyone successfully built it on ppc64 yet?  The latest build I can
> find in a distro is ghc-6.4.2 in gentoo.  Has anyone tried ghc [6.6.1] on ppc64?

Ok I tried and building the fedora ghc-6.6.1 package on ppc64 with
gentoo's ghc-6.4.2 ppc64 binary I got the following error:

/usr/bin/ghc -o ghc-pkg.bin -H16m -O -cpp -Wall -fno-warn-name-shadowing -fno-wa
rn-unused-matches -DUSING_COMPAT -i../../compat -ignore-package Cabal  -Rghc-tim
ing     -L../../compat -lghccompat   Main.o Version.o
Main.o:(.text+0x0): undefined reference to `__DISCARD__'
Main.o:(.text+0x28): undefined reference to `__DISCARD__'
Main.o:(.text+0x50): undefined reference to `__DISCARD__'
Main.o:(.text+0x168): undefined reference to `__DISCARD__'
Main.o:(.text+0x194): undefined reference to `__DISCARD__'
Main.o:(.text+0x1c0): more undefined references to `__DISCARD__' follow
collect2: ld returned 1 exit status

Where should __DISCARD__ be defined?


More information about the Glasgow-haskell-users mailing list