Opened 8 years ago

Closed 7 years ago

Last modified 6 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: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

  • 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 8 years ago.
mingw-gcc-4.0-win32.dpatch (4.0 KB) - added by briansmith 8 years ago.

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by briansmith

Changed 8 years ago by briansmith

comment:1 Changed 7 years ago by igloo

  • Resolution set to fixed
  • Status changed from new to closed

These patches are in both 6.6 and the HEAD.

Thanks for writing them!

comment:2 Changed 6 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:3 Changed 6 years ago by simonmar

  • Operating System changed from Multiple to Unknown/Multiple
Note: See TracTickets for help on using tickets.