I think the problem is in using pbzip2 instead of bzip2 (broken archive or pbzip2 is stricter then bzip2). When i try to emerge dev-lang/ghc-6.12.3 i get the following: >>> Emerging (1 of 2) dev-lang/ghc-6.12.3 * ghc-6.12.3-src.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * ghc-bin-6.12.3-amd64.tbz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * CPV: dev-lang/ghc-6.12.3 * REPO: gentoo * USE: amd64 bash-completion elibc_glibc kernel_linux multilib userland_GNU >>> Unpacking source... >>> Unpacking ghc-6.12.3-src.tar.bz2 to /var/tmp/portage/dev-lang/ghc-6.12.3/work >>> Unpacking ghc-bin-6.12.3-amd64.tbz2 to /var/tmp/portage/dev-lang/ghc-6.12.3/work pbzip2: *ERROR unconsumed in after BZ2_bzDecompress loop:ret=4; block=0; seq=790; avail_in=15050 Terminator thread: premature exit requested - quitting... tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now Reproducible: Always Steps to Reproduce: 1. emerge dev-lang/ghc
*** This bug has been marked as a duplicate of bug 320313 ***