Skip to content

GHC reports "index too large" when invoked by cabal in installation of gi-gtk

Summary

GHC reports "index too large" when invoked by cabal in installation of gi-gtk Write a brief description of the issue. On Windows 10, in response to cabal install gi-gtk, GHC reports "index too large"

Steps to reproduce

cabal install gi-gtk

Expected behavior

I assume this refers to the error. Here is the tail-end of the attempted install:

[ 56 of 245] Compiling Distribution.CabalSpecVersion ( Distribution\CabalSpecVersion.hs, dist\build\Distribution\CabalSpecVersion.o ) ghc.exe: panic! (the 'impossible' happened) (GHC version 8.4.3 for x86_64-unknown-mingw32): Prelude.!!: index too large

Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug

Failed to build haskell-gi-base-0.26.0. The failure occurred during the configure step. Build log ( C:\Users\edwin\AppData\Roaming\cabal\logs\ghc-8.4.3\haskell-gi-ba_-0.26.0-63a6e8ac013f66c5634f87de5171786ffc882178.log ): Configuring library for haskell-gi-base-0.26.0.. cabal.exe: The program 'pkg-config' version >=0.9.0 is required but it could not be found.

cabal.exe: Failed to build Cabal-3.4.1.0 (which is required by gi-gtk-4.0.5). See the build log above for details. Failed to build haskell-gi-base-0.26.0 (which is required by gi-gtk-4.0.5). See the build log above for details.

C:\windows\system32>

Environment

  • GHC version used: GHC version 8.4.3 Optional:

  • Operating System: Windows 10

  • System Architecture:

  • Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz 3.79 GHz

  • RAM 32.0 GB (31.8 GB usable) 64-bit operating system, x64-based processor

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information