darcs

Issue 1703 Problems building darcs on Snow Leopard

Title Problems building darcs on Snow Leopard
Priority bug Status wont-fix
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, pavel, pmezard
Assigned To
Topics Mac

Created on 2009-11-24.10:53:05 by pavel, last changed 2010-01-24.17:26:57 by pmezard.

Files
File name Uploaded Type Edit Remove
smime.p7s pavel, 2009-11-24.10:53:02 application/pkcs7-signature
Messages
msg9481 (view) Author: pavel Date: 2009-11-24.10:53:02
problems with darcs on Snow Leopard: i rebuilt
zlib after adding flags to hsc2hs script forcing the compiler into
32bit mode. That cured the immediate problem. But after that darcs
began reporting 'memory allocation failure' randomly with huge amounts
of memory. Particularly after creating empty repository, adding empty
file to it and recording changes darcs check fails. I finally gave up
and downloaded pre-built binary that worked fine. Apparently the
problem is related to the issue ghc toolchain have on SL: by default
gcc compiles everything in 64-bit mode and ghc knows nothing about it.
>
Attachments
msg9482 (view) Author: kowey Date: 2009-11-24.10:57:24
We need somebody knowledgeable about MacOS X and with one of those 64 bit
machines to report on (1) what the exact details behind this are and (2) what
are the best practices for getting Darcs working on Snow Leopard.

Maybe it's time to recruit for a Mac Czar.
msg9483 (view) Author: pavel Date: 2009-11-24.11:11:02
I'm the original reporter of the problem, I own Mac with Snow Leopard and have 
some knowledge of Mac OS X. What information can be useful? Any directions on 
debugging darcs to isolate the problem?
msg9484 (view) Author: pavel Date: 2009-11-24.12:09:59
Ok, I reinstalled every package after patching hsc2hs and everything works great 
know. So the problem really have nothing to do with darcs, it's hsc2hs and ghc 
itself. I'll try to close the bug.
msg9901 (view) Author: kowey Date: 2010-01-24.17:20:08
Pavel: any chance you could write up a step-by-step guide to building
darcs on Snow Leopard, assuming Haskell Platform perhaps?

http://wiki.darcs.net/MacPorts

It seems like this would help out a lot of non-Haskeller darcs users!
msg9902 (view) Author: pmezard Date: 2010-01-24.17:26:53
Here is how I built it on OSX 10.6, thanks to kowey suggestions:

1- Installed "haskell-platform-2009.2.0.2-i386.dmg"
2- Patched ghc and hsc2hs as described in:

   
http://www.haskell.org/haskellwiki/Mac_OS_X#Mac_OS_X_10.6_.28Snow_Leopard.29

3- Rebuild zlib and mmap:

  $ cabal install --reinstall zlib mmap

4- Build darcs branch-2.4:

  $ cabal update
  $ cabal install

The resulting binary is at least able to run record with interactive
hunk edition.
History
Date User Action Args
2009-11-24 10:53:05pavelcreate
2009-11-24 10:57:28koweysetpriority: bug
status: unknown -> needs-reproduction
topic: + Mac
messages: + msg9482
nosy: + kowey
2009-11-24 11:11:04ppavelsetnosy: + ppavel
messages: + msg9483
2009-11-24 12:10:01ppavelsetstatus: needs-reproduction -> wont-fix
messages: + msg9484
2009-12-09 16:17:54adminsetnosy: - ppavel
2010-01-24 17:20:13koweysetmessages: + msg9901
2010-01-24 17:26:57pmezardsetnosy: + pmezard
messages: + msg9902