Ticket #6090 (closed bug: fixed)

Opened 12 months ago

Last modified 12 months ago

hsc2hs doesn't consider values not fitting in an unsigned long integral when cross compiling

Reported by: mtjm Owned by: pcapriotti
Priority: normal Milestone: 7.6.1
Component: hsc2hs Version: 7.5
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Building GHC failed Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

The specific problem occurs when libraries/unix is being built, RLIM_INFINITY is defined as 0x7fffffffffffffffULL on MIPS N32. This might happen on other architectures with 32 bit longs and 64 bit long longs.

Attachments

0001-Recognize-huge-unsigned-long-long-values-as-integers.patch Download (1.4 KB) - added by mtjm 12 months ago.
patch fixing the issue

Change History

Changed 12 months ago by mtjm

patch fixing the issue

Changed 12 months ago by mtjm

  • status changed from new to patch

Changed 12 months ago by simonmar

  • owner set to pcapriotti
  • difficulty set to Unknown

The patch looks sensible to me (but I'm not very familiar with this code). Paolo, would you like to validate and apply please?

Changed 12 months ago by pcapriotti

  • status changed from patch to closed
  • resolution set to fixed
  • milestone set to 7.6.1

Pushed as fc8a91274534f8f94ec5480ad7504b9fb94b6b6d.

Note: See TracTickets for help on using tickets.