When trying to emerge ghc-6.4.1-r1, I am getting the error: [...] edison/Seq/ListSeq.hs:32:33: Warning: Deprecated use of `Sequence.concatMap' (imported from Sequence): This module is unmaintained, and will disappear soon edison/Seq/ListSeq.hs:32:33: Warning: Deprecated use of `Sequence.foldr' (imported from Sequence): This module is unmaintained, and will disappear soon edison/Seq/ListSeq.htee: standard output: Resource temporarily unavailable tee: write error Reproducible: Always Steps to Reproduce: Gentoo Base System version 1.12.0_pre9 Portage 2.0.53_rc7 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14-gentoo x86_64) ================================================================= System uname: 2.6.14-gentoo x86_64 AMD Athlon(tm) 64 Processor 3000+ dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg collision-protect distlocks multilib-strict sandbox sfperms strict usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.ISO8859-1" LINGUAS="en pt_BR fr de" MAKEOPTS="-j2" PKGDIR="/usr/local/portage/packages.amd64" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 3dnowex X Xaw3d a52 aac aalib alsa avi berkdb bitmap-fonts browserplugin cdr crypt cups curl divx4linux dts dvd dvdr dvdread eds emacs emboss encode fam fbcon ffmpeg firefox flac foomaticdb gd gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imap imlib javascript jpeg kde ldap libcaca libwww lirc lzw lzw-tiff mad matroska mbox motif mp3 mpeg ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl pam pdflib plotutils png ppds python qt quicktime readline samba sdl slang spell ssl svg tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb userlocales v4l v4l2 vcd vorbis wmf xface xine xml xml2 xmms xpm xv xvmc zlib linguas_en linguas_pt_BR linguas_fr linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS
I hope that this is fixed for now. The fix is a workaround only, so please re-open if the problem persists. ks
I think I've hit the same problem with 6.4.2 and error messages: GCCompact.c:902: warning: dereferencing type-punned pointer will break strict-aliasing rules GCCompact.c:905: warning: dereferencing type-punned pointer tee: standard output: Resource temporarily unavailable tee: write error
In principle, this is an upstream bug: http://hackage.haskell.org/trac/ghc/ticket/724 GHC is likely to crash with this error whenever it is called in a context where tee is used. The only reliable way around this is not to use tee anywhere, which for portage usually can be prevented by disabling any form of logging while emerging ghc.
Looks like this one will get fixed in ghc-6.8. I'd be a bit nervous about backporting the changes to 6.6.
Closing as UPSTREAM. Newer stable ghc should work correctly. Please reopen if not.