Created attachment 393700 [details] emerge-info.txt Just hit this on one of our servers, but the mail is stopped temporarily so I can't troubleshoot right now. Error: ghc-stage1: panic! (the 'impossible' happened) (GHC version 7.8.4 for x86_64-unknown-linux): Ix{Int}.index: Index (58925215) out of range ((0,5250)) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug compiler/ghc.mk:646: recipe for target 'compiler/stage2/build/IOEnv.o' failed # emerge -pqv '=dev-lang/ghc-7.8.4::gentoo-haskell' [ebuild r U ] dev-lang/ghc-7.8.4 [7.8.3] USE="gmp -binary -doc -ghcbootstrap -ghcmakebinary" (all of the rebuilds follow)
Created attachment 393702 [details] dev-lang:ghc-7.8.4:20150111-164730.log.xz
I have hardened toolchain only in amd64 chroot. ghc-7.8.4 seems to build fine here. Does bug appear for you exactly the same if you try to build ghc one more time? I wonder if it's a toolchain version breaking things here or a MAKEOPTS.
I use hardened everywhere, so that's not the (only) issue. My second attempt generated: ghc-stage1: out of memory compiler/ghc.mk:646: recipe for target 'compiler/stage2/build/MkCore.o' failed I'm trying it with -j8 now.
With -j8: ghc-stage1: panic! (the 'impossible' happened) (GHC version 7.8.4 for x86_64-unknown-linux): Ix{Int}.index: Index (3539992580) out of range ((0,5250)) Trying -j1 just to be sure...
That last error was in a different place by the way: compiler/ghc.mk:646: recipe for target 'compiler/stage2/build/X86/RegInfo.o' failed
Somehow, it survives with MAKEOPTS="-j1".
Life goes on =)