Ticket #920 (closed bug: fixed)

Opened 7 years ago

Last modified 5 years ago

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

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

Change History

Changed 7 years ago by briansmith

Changed 7 years ago by briansmith

Changed 7 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

These patches are in both 6.6 and the HEAD.

Thanks for writing them!

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

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