Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536328 - =dev-lang/ghc-7.8.4: Ix{Int}.index: Index out of range
Summary: =dev-lang/ghc-7.8.4: Ix{Int}.index: Index out of range
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-11 17:13 UTC by Michael Orlitzky
Modified: 2015-10-13 14:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,4.09 KB, text/plain)
2015-01-11 17:13 UTC, Michael Orlitzky
Details
dev-lang:ghc-7.8.4:20150111-164730.log.xz (dev-lang:ghc-7.8.4:20150111-164730.log.xz,84.93 KB, application/x-xz)
2015-01-11 17:13 UTC, Michael Orlitzky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Orlitzky gentoo-dev 2015-01-11 17:13:21 UTC
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)
Comment 1 Michael Orlitzky gentoo-dev 2015-01-11 17:13:37 UTC
Created attachment 393702 [details]
dev-lang:ghc-7.8.4:20150111-164730.log.xz
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2015-01-11 19:04:16 UTC
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.
Comment 3 Michael Orlitzky gentoo-dev 2015-01-11 19:25:20 UTC
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.
Comment 4 Michael Orlitzky gentoo-dev 2015-01-11 19:40:17 UTC
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...
Comment 5 Michael Orlitzky gentoo-dev 2015-01-11 19:42:03 UTC
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
Comment 6 Michael Orlitzky gentoo-dev 2015-01-11 21:27:30 UTC
Somehow, it survives with MAKEOPTS="-j1".
Comment 7 Michael Orlitzky gentoo-dev 2015-10-13 14:57:53 UTC
Life goes on =)