Created attachment 278965 [details] emerge --info "/var/tmp/portage/dev-lang/ghc-6.12.3-r2/work/usr/bin/ghc" -H32m -O -optc-marc h=amdfam10 -opta-march=amdfam10 -w -package-conf libraries/bootstrapping.conf -package-name ghc-6.12.3 -hide-all-packages -i -icompiler/nativeGen -icompiler/b asicTypes -icompiler/cmm -icompiler/codeGen -icompiler/coreSyn -icompiler/cprAna lysis -icompiler/deSugar -icompiler/ghci -icompiler/hsSyn -icompiler/iface -icom piler/main -icompiler/parser -icompiler/prelude -icompiler/profiling -icompiler/ rename -icompiler/simplCore -icompiler/simplStg -icompiler/specialise -icompiler /stgSyn -icompiler/stranal -icompiler/typecheck -icompiler/types -icompiler/util s -icompiler/vectorise -icompiler/stage1/build -icompiler/stage1/build/autogen -Icompiler/stage1/build -Icompiler/stage1/build/autogen -Icompiler/stage1 -Icompiler/../libraries/base/cbits -Icompiler/../libraries/base/include -Icompiler/. -Icompiler/parser -Icompiler/utils -optP-include -optPcompiler/stage1/build/autogen/cabal_macros.h -package Cabal-1.8.0.6 -package array-0.3.0.1 -package base-4.2.0.2 -package bin-package-db-0.0.0.0 -package bytestring-0.9.1.7 -package containers-0.3.0.0 -package directory-1.0.1.1 -package filepath-1.1.0.4 -package hpc-0.5.0.5 -package old-time-1.0.0.5 -package process-1.0.1.3 -package unix-2.4.0.2 -DSTAGE=1 -Wall -fno-warn-name-shadowing -fno-warn-orphans -XCPP -XMagicHash -XUnboxedTuples -XPatternGuards -XForeignFunctionInterface -XEmptyDataDecls -XTypeSynonymInstances -XMultiParamTypeClasses -XFlexibleInstances -XRank2Types -XScopedTypeVariables -XDeriveDataTypeable -XRelaxedPolyRec -odir compiler/stage1/build -hidir compiler/stage1/build -stubdir compiler/stage1/build -hisuf hi -osuf o -hcsuf hc -c compiler/prelude/PrimOp.lhs -o compiler/stage1/build/PrimOp.o ghc: internal error: evacuate: strange closure type -981252095 (GHC version 6.12.3 for x86_64_unknown_linux) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug make[1]: *** [compiler/stage1/build/PrimOp.o] Aborted make[1]: *** Waiting for unfinished jobs.... make: *** [all] Error 2 emake failed * ERROR: dev-lang/ghc-6.12.3-r2 failed (compile phase): * make failed
Created attachment 278969 [details] build log
Oh, ghc looks completely screwed. May I ask you to try ghc-6.12.3 to see if it fails? And if it won't fail, will it fail if you set MAKEOPTS to -j1?
No idea what changed, but at some point after I reported this bug, 6.12.3-r2 emerged correctly dusing some world update, and I didn't even notice. Strange.
It might be another exposition of bug #326347 (parallel build issue). I'd also advise you to check memory with memtest86/memtest86+ to make sure it's not hardware problem.
I've disabled parallel build for ghc-7.0.4 as there was a number of similar reports. Thanks, Martin!