I ran into this yesterday, and tracked it down to a bug when mmaping empty files. I discussed this with Don Stewart over email and sent him a fix (attached) against http://code.haskell.org/~dons/code/bytestring-mmap/
-Judah On Wed, Feb 4, 2009 at 9:11 AM, Eric Kow <eric....@gmail.com> wrote: > [Resending because I accidentally typed in darcs-user instead of darcs-users] > > Hi Petr, > > I'm getting the error 'System.IO.Posix.MMap.mmapFile: unable to mmap file' > when I run the test suite (cabal test) > > Any suggestions? In the meantime, I've done: > > ghc-pkg unregister bytestring-mmap > cabal clean > cabal configure > cabal build > cabal test > > Thanks, > > -- > Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> > PGP Key ID: 08AC04F9 > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAkmJzFEACgkQBUrOwgisBPn1JQCgjtZ8DAjdbGErLJeaNK6T1t+n > lwUAnA1FXDDLl3/VsFbVULUqimlNPeuz > =s5p/ > -----END PGP SIGNATURE----- > > _______________________________________________ > darcs-users mailing list > darcs-users@darcs.net > http://lists.osuosl.org/mailman/listinfo/darcs-users > >
don_t-call-mmap-for-empty-files_--fixes-an-einval-on-bsd-systems_.dpatch
Description: Binary data
_______________________________________________ darcs-users mailing list darcs-users@darcs.net http://lists.osuosl.org/mailman/listinfo/darcs-users