[darcs-users] Building under OS X 10.6

Florian Gilcher flo at andersground.net
Sat Oct 17 18:50:12 UTC 2009


after managing to get a (hopefully) somewhat well-behaving  
installation of GHC and cabal on Snow Leopard, I tried compiling and  
testing by using `cabal build` and `cabal test`. Sadly, I get the high  
number of 173 failing test cases, that all fail with a error similar  
to the following:

   darcs failed:  Couldn't write  
   in subdir patches to sources:


...usually preceded by a call to darcs record. It seems like record  
does not work.

I couldn't find this exact problem on the mailing list. I assume it to  
be a problem on my side, especially because the same happens for the  
2.2.0 and 2.3.0 tags, but I am not able to nail it down.

Strangely, the static build of darcs 2.3.1 provided on the wiki works,  
but I don't seem to be able to build it correctly myself...

Well, sysinfo:

$ uname -a
Darwin HIPE-Machine.local 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul  
31 22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.10.4
$ cabal --version
cabal-install version 0.6.0
using version of the Cabal library
$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646)

Additional ghc flags to force 32 bit build:
-optc-m32 -opta-m32 -optl-m32

Is there anything I missed?

Florian Gilcher

More information about the darcs-users mailing list