Opened 5 years ago

Last modified 11 months ago

#5918 new feature request

hsc2hs forces wordsize (i.e. -m32 or -m64) to be the choice of GHC instead of allowing a different (or no/default choice)

Reported by: Atze Owned by:
Priority: low Milestone:
Component: hsc2hs Version: 7.4.1
Keywords: Cc:
Operating System: MacOS X Architecture: x86
Type of failure: Other Test Case:
Blocked By: Blocking:
Related Tickets: #3681 Differential Rev(s):
Wiki Page:


I am not sure whether to call this a bug as it does not cause a failure of GHC but a failure of UHC which also uses hsc2hs.

The problem occurs when UHC builds for a different wordsize than GHC, in particular UHC 64 bits, GHC 32 bits. The wrapper then forces -m32 when running hsc2hs via the environment variable HSC2HS_EXTRA. This cannot be turned off. A (temporary) solution is to uncomment the following lines in the wrapper script /usr/bin/hsc2hs:

#        -c*)          HSC2HS_EXTRA=;;
#        --cc=*)       HSC2HS_EXTRA=;;

This turns off the extra flags when a C compiler is explicitly specified, amongst which the -m32, and just lets the user define (or not define) the required flags when another compiler is explicitly used.

Change History (7)

comment:1 Changed 4 years ago by pcapriotti

  • difficulty set to Unknown
  • Milestone set to 7.6.1
  • Priority changed from normal to low
  • Type changed from bug to feature request

comment:2 Changed 4 years ago by igloo

  • Milestone changed from 7.6.1 to 7.6.2

comment:3 Changed 2 years ago by thoughtpolice

  • Milestone changed from 7.6.2 to 7.10.1

Moving to 7.10.1.

comment:4 Changed 2 years ago by thomie

comment:5 Changed 2 years ago by thoughtpolice

  • Milestone changed from 7.10.1 to 7.12.1

Moving to 7.12.1 milestone; if you feel this is an error and should be addressed sooner, please move it back to the 7.10.1 milestone.

comment:6 Changed 15 months ago by thoughtpolice

  • Milestone changed from 7.12.1 to 8.0.1

Milestone renamed

comment:7 Changed 11 months ago by thomie

  • Milestone 8.0.1 deleted
Note: See TracTickets for help on using tickets.