Making GHC work on BSD

Simon Marlow marlowsd at gmail.com
Tue Sep 9 10:00:59 EDT 2008


Donn Cave wrote:

> | ... and one that I think applies to all the *BSDs:
> |
> | 2063    Breackage on OpenBSD due to mmap remap
> |
> | (actually the latter one is a top priority, because without it GHCi can't
> | work, so we need it fixed for 6.10.1).
> 
> Is this a change from 6.8.3?  NetBSD currently provides 6.8.3 as an
> optional package for NetBSD/i386 4.0, with ghci included and without
> any mmap patches as far as I know.  It was also working for me on
> NetBSD/amd64 (which is the platform that would actually need MAP_32BIT?)

Yes, the code changed in the HEAD, and currently uses mremap(), which only 
exists on Linux.  We need similar hacks that were done in 6.8.3 to get the 
BSDs to work, that is to allocate memory from some predefined address in 
the lower 2Gb of the address space.

Cheers,
	Simon



More information about the Glasgow-haskell-users mailing list