Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#920 closed bug (fixed)

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

Reported by: briansmith Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.5
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


  • 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.

Attachments (2)

gcc-4.0-mingw-gettimeofday.dpatch (117.8 KB) - added by briansmith 11 years ago.
mingw-gcc-4.0-win32.dpatch (4.0 KB) - added by briansmith 11 years ago.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by briansmith

Changed 11 years ago by briansmith

Attachment: mingw-gcc-4.0-win32.dpatch added

comment:1 Changed 11 years ago by igloo

Resolution: fixed
Status: newclosed

These patches are in both 6.6 and the HEAD.

Thanks for writing them!

comment:2 Changed 9 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:3 Changed 9 years ago by simonmar

Operating System: MultipleUnknown/Multiple
Note: See TracTickets for help on using tickets.