darcs

Issue 1349 can't build because of MMap

Title can't build because of MMap
Priority bug Status duplicate
Milestone Resolved in
Superseder autoconf should not define HAVE_MMAP unless the bytestring-mmap package is available
View: 1347
Nosy List darcs-devel, dmitry.kurochkin, fx, kowey, thorkilnaur
Assigned To
Topics

Created on 2009-02-08.18:06:56 by fx, last changed 2009-08-27.14:15:35 by admin.

Messages
msg7281 (view) Author: fx Date: 2009-02-08.18:06:53
The current source won't build for me with ghc 6.8.2 after a `make
distclean', even with `configure --disable-mmap':

  [ghc] .depend

  Src/ByteStringUtils.hs:96:7:
      Could not find module `System.IO.Posix.MMap':
        Use -v to see a list of the files searched for.
  make: *** [.depend] Error 1

I assume this is something added in a later ghc, but are any other
details relevant?  I'm using GNU/Linux.
msg7283 (view) Author: thorkilnaur Date: 2009-02-08.20:00:31
Thank you for this report. Could you tell us, please, the current source that 
you mention, which source is that, exactly? And also, have you tried the new 
cabal-based build system? I am not into all the details myself, but there is a 
description in the README file of the http://darcs.net repository that may help.

Best regards
Thorkil
msg7285 (view) Author: fx Date: 2009-02-09.16:38:40
Thorkil Naur <bugs@darcs.net> writes:

> Thorkil Naur <naur@post11.tele.dk> added the comment:
>
> Thank you for this report. Could you tell us, please, the current source that 
> you mention, which source is that, exactly?

The darcs repository, maybe half an hour before I sent the message.

> And also, have you tried the new 
> cabal-based build system?

I followed the recommended procedure with autoconf, which is the (only)
one that works with the packages in Ubuntu.  That way of building broke
within the last two weeks, I think.  If you know where to find that
module in Ubuntu 8.10 packages, I'd be happy to know, but --disable-mmap
rather implies it avoids it.  Exactly what is it supposed to do?
Otherwise, where do I get the mmap module, if it's required?  I don't
know my way around ghc and other Haskell stuff (but not through lack of
good taste, I hope).
msg7286 (view) Author: kowey Date: 2009-02-10.20:35:24
I think this is a duplicate of issue1347.  Thanks!
msg7288 (view) Author: fx Date: 2009-02-11.12:03:37
Eric Kow <bugs@darcs.net> writes:

> Eric Kow <kowey@darcs.net> added the comment:
>
> I think this is a duplicate of issue1347.  Thanks!

Sorry, I thought I checked before submitting it, in which case I don't
know how I'd have missed the other one...

If I understand this correctly, I'll send a patch later.

I'm confused how it is supposed to build.  README says autoconf is
recommended, contrary to what #1347 says, and now that I realize I can
do it, the cabal build also fails.
History
Date User Action Args
2009-02-08 18:06:56fxcreate
2009-02-08 20:00:35thorkilnaursetpriority: bug
nosy: kowey, fx, simon, thorkilnaur, dmitry.kurochkin
status: unread -> unknown
messages: + msg7283
2009-02-09 16:38:44fxsetnosy: kowey, fx, simon, thorkilnaur, dmitry.kurochkin
messages: + msg7285
2009-02-10 20:35:28koweysetstatus: unknown -> duplicate
nosy: kowey, fx, simon, thorkilnaur, dmitry.kurochkin
superseder: + autoconf should not define HAVE_MMAP unless the bytestring-mmap package is available
messages: + msg7286
2009-02-11 12:03:42fxsetnosy: kowey, fx, simon, thorkilnaur, dmitry.kurochkin
messages: + msg7288
2009-08-25 17:40:37adminsetnosy: + darcs-devel, - simon
2009-08-27 14:15:35adminsetnosy: kowey, fx, darcs-devel, thorkilnaur, dmitry.kurochkin