Skip to content

Compiling large constant data structure fails

I am trying to compile a large data strcture as list into a Haskell module (Source is linked below) and GHC fails with this error message:

Compiling CASL_DL.!PredefinedSign ( ./CASL_DL/PredefinedSign.hs, ./CASL_DL/PredefinedSign.o ) /tmp/ghc12137.s:30942:Fixup of 39588 too large for field width of 16 bits /tmp/ghc12137.s:30939:Fixup of 39600 too large for field width of 16 bits

With the flag '-fvia-C', GHC can compile the file without an error.

Sources, including a Makefile with used GHC options, are available at sources

Trac metadata
Trac field Value
Version 6.4.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information