Skip to content

Patch: Make GHC bulid/run when compiled with GCC 4.1.1 on MinGW

  • GCC 4.x does not allow casts on lvalues, which are used in Linker.c and in packages/Win32/dumpBMP.c
  • GCC 4.x on MinGW includes gettimeofday; we need to tell the linker about it, otherwise GHCi will fail to link base.

The first patch bundle fixes both issues for GHC. The second patch bundle fixes the first problem for packages/Win32.

These were both tested on the 6.6 branch. I would like them to be included in 6.6 if it is not too late.

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