/var/tmp/portage/dev-lang/ghc-6.4.2/work/usr/bin/ghc -o ghc-pkg.bin -H16m -O -optc-mtune=970 -opta-mtune=970 -optc-mcpu=970 -opta-mcpu=970 -optc-mabi=altivec -opta-mabi=altivec -opta-Wa,--noexecstack -fno-warn-deprecations -cpp -Wall -fno-warn-name-shadowing -fno-warn-unused-matches -i../../lib/compat -ignore-package Cabal -Rghc-timing -L../../lib/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+0x160): undefined reference to `__DISCARD__' Main.o:(.text+0x18c): undefined reference to `__DISCARD__' Main.o:(.text+0x1b8): more undefined references to `__DISCARD__' follow collect2: ld returned 1 exit status <<ghc: 22846696 bytes, 3 GCs, 134768/134768 avg/max bytes residency (1 samples), 15M in use, 0.00 INIT (0.00 elapsed), 0.03 MUT (1.55 elapsed), 0.02 GC (0.03 elapsed) :ghc>> make[4]: *** [ghc-pkg.bin] Error 1 make[3]: *** [boot] Error 2 make[2]: *** [boot] Error 1 make[1]: *** [boot] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-lang/ghc-6.4.2/work/ghc-6.4.2/ghc' make: *** [build] Error 1 * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ghc-6.4.2.ebuild, line 302: Called die emerge --info: Portage 2.1.3.19 (default-linux/ppc/ppc64/2007.0/64bit-userland/970/pmac, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5.omega ppc64) ================================================================= System uname: 2.6.22-gentoo-r5.omega ppc64 PPC970MP, altivec supported Timestamp of tree: Thu, 07 Feb 2008 14:30:01 +0000 distcc 2.18.3 powerpc64-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="ppc64" CBUILD="powerpc64-unknown-linux-gnu" CFLAGS="-O1 -mtune=970 -mcpu=970 -mabi=altivec -pipe -ggdb" CHOST="powerpc64-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/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O1 -mtune=970 -mcpu=970 -mabi=altivec -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer 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/ " LINGUAS="en_GB" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay /usr/portage/local/layman/java-gcj-overlay /usr/local/portage /usr/portage/local/andys_overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl addbookmarks alias alsa altivec asf autoreplace avahi bash-completion berkdb bitmap-fonts bzip2 cairo caps cdda cddb cdparanoia cdr cjk cli connectionstatus contactnotes cpudetection cracklib crypt cups curl daap dbus dia doc dri dts dv dvd dvdnav dvdr dvdread effects emacs emf encode examples fame ffmpeg flac fping gadu gcj gdbm gif gmp gnutls gpac gpgme gpm groupwise gtk hal hfs highlight history iconv idn ieee1394 imagemagick imap ipod ipv6 irc isdnlog jack jingle jpeg jpeg2k kde ladspa lame latex lcms ldap libnotify live lzo mad mbox midi mjpeg mng mp2 mp3 mpeg mplayer mudflap musicbrainz ncurses netmeeting network nls nntp nowlistening nptl nptlonly nsplugin objc objc++ objc-gc ogg openal opengl openmp optimisememory oss pam pcre pdf perl plotutils png pnm pop postscript ppc64 ppds pppd python qt qt3 qt4 quicktime readline reflection rtc samba sametime sasl sdl session shout slp smime smp sms smtp sox speex spell spl sqlite ssl statistics stream subtitles svg tcpd tetex texteffect tga theora threads tiff translator truetype truetype-fonts type1-fonts unicode v4l2 vcd visualization vorbis vram webpresence winpopup wmf x264 xanim xchattext xcomposite xine xinerama xml xorg xscreensaver xv xvid xvmc yahoo zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" 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, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Reproducible: Always Steps to Reproduce: 1. emerge ghc 2. 3. Actual Results: Compilation fails. Expected Results: Compilation succeeds and ghc is installed.
Created attachment 142895 [details] Build Log
*** This bug has been marked as a duplicate of bug 145466 ***
It might be a duplicate (again, search didn't show that bug as it is closed) but there's still a problem with the ebuild.
Reopening.
This simply won't build w/ gcc-4.1+, end of story, won't be fixed. *** This bug has been marked as a duplicate of bug 206142 ***
ghc-6.8.x "on the way". gimme a month or so! ;-)
Is there a current solution for this? 6.4.2 is still the stable version, and while both 6.6 and 6.8 are available, they lack a ~ppc64 keyword.