/var/tmp/portage/dev-lang/ghc-6.6.1/work/usr/bin/ghc -M -optdep-f -optdep.depend -osuf o -optdep--exclude-module=System.Directory.Internals -H16m -O -optc-mtune=G5 -opta-mtune=G5 -optc-mcpu=G5 -opta-mcpu=G5 -optc-mabi=altivec -opta-mabi=altivec -opta-Wa,--noexecstack -fno-warn-deprecations -I. -Iinclude -Rghc-timing -ignore-package Cabal -I../libraries -fglasgow-exts -no-recomp Compat/Directory.hs Compat/RawSystem.hs Compat/Unicode.hs Distribution/Compat/FilePath.hs Distribution/Compat/ReadP.hs Distribution/Compiler.hs Distribution/GetOpt.hs Distribution/InstalledPackageInfo.hs Distribution/License.hs Distribution/Package.hs Distribution/ParseUtils.hs Distribution/Version.hs Language/Haskell/Extension.hs <<ghc: 18018396 bytes, 5 GCs, 114876/114876 avg/max bytes residency (1 samples), 17M in use, 0.00 INIT (0.00 elapsed), 0.04 MUT (0.18 elapsed), 0.01 GC (0.02 elapsed) :ghc>> make all /var/tmp/portage/dev-lang/ghc-6.6.1/work/usr/bin/ghc -H16m -O -optc-mtune=G5 -opta-mtune=G5 -optc-mcpu=G5 -opta-mcpu=G5 -optc-mabi=altivec -opta-mabi=altivec -opta-Wa,--noexecstack -fno-warn-deprecations -I. -Iinclude -Rghc-timing -ignore-package Cabal -I../libraries -fglasgow-exts -no-recomp -c Compat/Directory.hs -o Compat/Directory.o -ohi Compat/Directory.hi /var/tmp/portage/dev-lang/ghc-6.6.1/work/usr/bin/ghc -H16m -O -optc-mtune=G5 -opta-mtune=G5 -optc-mcpu=G5 -opta-mcpu=G5 -optc-mabi=altivec -opta-mabi=altivec -opta-Wa,--noexecstack -fno-warn-deprecations -I. -Iinclude -Rghc-timing -ignore-package Cabal -I../libraries -fglasgow-exts -no-recomp -c Compat/RawSystem.hs -o Compat/RawSystem.o -ohi Compat/RawSystem.hi /var/tmp/portage/dev-lang/ghc-6.6.1/work/usr/bin/ghc -H16m -O -optc-mtune=G5 -opta-mtune=G5 -optc-mcpu=G5 -opta-mcpu=G5 -optc-mabi=altivec -opta-mabi=altivec -opta-Wa,--noexecstack -fno-warn-deprecations -I. -Iinclude -Rghc-timing -ignore-package Cabal -I../libraries -fglasgow-exts -no-recomp -c Compat/Unicode.hs -o Compat/Unicode.o -ohi Compat/Unicode.hi /var/tmp/portage/dev-lang/ghc-6.6.1/work/usr/bin/ghc -H16m -O -optc-mtune=G5 -opta-mtune=G5 -optc-mcpu=G5 -opta-mcpu=G5 -optc-mabi=altivec -opta-mabi=altivec -opta-Wa,--noexecstack -fno-warn-deprecations -I. -Iinclude -Rghc-timing -ignore-package Cabal -I../libraries -fglasgow-exts -no-recomp -c Distribution/Compat/FilePath.hs -o Distribution/Compat/FilePath.o -ohi Distribution/Compat/FilePath.hi /var/tmp/portage/dev-lang/ghc-6.6.1/work/usr/bin/ghc -H16m -O -optc-mtune=G5 -opta-mtune=G5 -optc-mcpu=G5 -opta-mcpu=G5 -optc-mabi=altivec -opta-mabi=altivec -opta-Wa,--noexecstack -fno-warn-deprecations -I. -Iinclude -Rghc-timing -ignore-package Cabal -I../libraries -fglasgow-exts -no-recomp -c Distribution/Compat/ReadP.hs -o Distribution/Compat/ReadP.o -ohi Distribution/Compat/ReadP.hi Prologue junk?: .globl __stginit_CompatziRawSystem .type __stginit_CompatziRawSystem, @function __stginit_CompatziRawSystem: # 16 "/var/tmp/portage/dev-lang/ghc-6.6.1/temp/ghc22516_0/ghc22516_0.hc" 1 <<ghc: 14279768 bytes, 4 GCs, 111416/111416 avg/max bytes residency (1 samples), 18M in use, 0.00 INIT (0.00 elapsed), 0.02 MUT (0.21 elapsed), 0.02 GC (0.03 elapsed) :ghc>> make[2]: *** [Compat/RawSystem.o] Error 255 make[2]: *** Waiting for unfinished jobs.... Prologue junk?: .globl __stginit_DistributionziCompatziReadP .type __stginit_DistributionziCompatziReadP, @function __stginit_DistributionziCompatziReadP: # 16 "/var/tmp/portage/dev-lang/ghc-6.6.1/temp/ghc22525_0/ghc22525_0.hc" 1 <<ghc: 15132660 bytes, 5 GCs, 111736/111736 avg/max bytes residency (1 samples), 18M in use, 0.00 INIT (0.01 elapsed), 0.05 MUT (0.22 elapsed), 0.02 GC (0.03 elapsed) :ghc>> make[2]: *** [Distribution/Compat/ReadP.o] Error 255 Prologue junk?: .globl __stginit_CompatziUnicode .type __stginit_CompatziUnicode, @function __stginit_CompatziUnicode: # 16 "/var/tmp/portage/dev-lang/ghc-6.6.1/temp/ghc22517_0/ghc22517_0.hc" 1 <<ghc: 14810024 bytes, 6 GCs, 137204/163076 avg/max bytes residency (2 samples), 18M in use, 0.00 INIT (0.00 elapsed), 0.05 MUT (0.31 elapsed), 0.03 GC (0.04 elapsed) :ghc>> make[2]: *** [Compat/Unicode.o] Error 255 Prologue junk?: .type s210_ret, @function s210_ret: # 136 "/var/tmp/portage/dev-lang/ghc-6.6.1/temp/ghc22515_0/ghc22515_0.hc" 1 <<ghc: 52418600 bytes, 12 GCs, 2188217/5295868 avg/max bytes residency (3 samples), 22M in use, 0.00 INIT (0.00 elapsed), 0.28 MUT (0.84 elapsed), 0.11 GC (0.13 elapsed) :ghc>> make[2]: *** [Compat/Directory.o] Error 255 Prologue junk?: .type s1tW_ret, @function s1tW_ret: # 33 "/var/tmp/portage/dev-lang/ghc-6.6.1/temp/ghc22518_0/ghc22518_0.hc" 1 <<ghc: 73229572 bytes, 15 GCs, 1472425/3982088 avg/max bytes residency (4 samples), 20M in use, 0.00 INIT (0.03 elapsed), 0.36 MUT (1.49 elapsed), 0.10 GC (0.11 elapsed) :ghc>> make[2]: *** [Distribution/Compat/FilePath.o] Error 255 make[1]: *** [boot] Error 2 make: *** [stage1] Error 1 Reproducible: Always Steps to Reproduce: 1. emerge ghc 2. 3. Actual Results: Build fails. Expected Results: Build completes. Portage 2.2_rc16 (default/linux/powerpc/ppc64/2008.0/32bit-userland/desktop, gcc-4.3.2, glibc-2.7-r2, 2.6.24-gentoo-r3.omega ppc64) ================================================================= System uname: Linux-2.6.24-gentoo-r3.omega-ppc64-PPC970MP,_altivec_supported-with-glibc2.0 Timestamp of tree: Thu, 27 Nov 2008 19:45:02 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r13, 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.2 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.3.0-r1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="ppc" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mtune=G5 -mcpu=G5 -mabi=altivec -pipe -ggdb" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -mtune=G5 -mcpu=G5 -mabi=altivec -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk ftp://mirrors.blueyonder.co.uk/mirrors/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ " LANG="en_GB.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en_GB" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay /usr/local/portage/ppc64 /usr/local/portage/xmmsroot2_overlay" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl addbookmarks alias alsa altivec asf autoreplace avahi bash-completion berkdb bindist bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli connectionstatus contactnotes cracklib crypt cups curl cvs daap dbus dga dia dirac djvu dri dts dv dvd dvdnav dvdr dvdread dvi eds effects emacs emboss emf encode evo examples exif fam fame ffmpeg fftw firefox flac fortran fping gcc64 gcj gdbm gif gimp git gmp gnome gnome-keyring gnutls gpac gpgme gphoto2 gpm gstreamer gtk hal hfs highlight history iconv id3tag idn ieee1394 imagemagick imap imlib ipod ipv6 irc isdnlog jack java java5 javascript jingle jpeg jpeg2k kde ladspa lame lapack latex lcms libnotify live lzo mad matroska mbox midi mikmod mjpeg mmap mng mp2 mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz ncurses netmeeting network nls nntp nowlistening nptl nptlonly nsplugin ogg openal openexr opengl openmp optimisememory oss pam pcre pdf perl pidgin plotutils png pnm pop postscript ppc ppds pppd pulseaudio python qt qt3 qt3support qt4 quicktime readline reflection rtc sasl scanner schroedinger sdl session shout slp smime smp sms smtp snmp sox speex spell spl sqlite ssl startup-notification statistics stream subtitles subversion svg sysfs syslog t1lib tcpd tetex texteffect tga theora threads tiff translator truetype twolame unicode usb v4l2 vcd visualization vorbis vram webpresence wifi wmf x264 xattr xchattext xcomposite xine xinerama xml xmmsroot2 xorg xscreensaver xulrunner xv xvid yahoo zeroconf zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nv fbdev" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
This ancient ghc does not understand code newer gcc generates. Try to slot-install older ones.
Until newer ppc binaries are stabilized you can try to use unstable ghc-6.10.4-r1 to make sure it does not fail the same way.
Closing as WONTFIX. Now we have stable ghc-6.12.3 for ppc/ppc64.