Ticket #177 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Configure does not correctly detect 32 bit user space on 64 bit kernel

Reported by: erikd Owned by: erikd
Priority: blocker Milestone: 0.1.3
Component: Build System Version:
Keywords: Cc:

Description

Linux allows the running of a completely 32 bit user space on a 64 bit kernel and also allows things like a 32 bit chroot inside a purely 64 bit system.

Currently the configure process uses uname -m to detect the CPU type. Using the CPU type however will not build correclty in the cases mentioned above.

Instead we need some mechanism to detect whether ghc was compiled for 32 or 64 bit and use that information instead.

Change History

Changed 4 years ago by erikd

  • owner set to erikd

Changed 4 years ago by erikd

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

Fixed in:

  • Sun Mar 21 22:26:56 EST 2010 Erik de Castro Lopo <erikd@…> Fix #177 : Fix configure with 32 bit user space on 64 bit kernel.

This fixes things like building in a 32 bit chroot or a 32 bit user space on a 64 bit kernel.

Note: See TracTickets for help on using tickets.