darcs

Issue 2268 darcs 2.8 does not build from cabal on Mac OS X

Title darcs 2.8 does not build from cabal on Mac OS X
Priority Status resolved
Milestone Resolved in
Superseder Nosy List rpg
Assigned To
Topics

Created on 2012-11-06.02:45:47 by rpg, last changed 2012-11-06.10:51:28 by owst.

Messages
msg16292 (view) Author: rpg Date: 2012-11-06.02:45:44
1. Summarise the issue (what were doing, what went wrong?)

Tried to build darcs using cabal install darcs.

Failed with several dependency problems:
cabal: Error: some packages failed to install:
HTTP-4000.2.6 depends on parsec-3.1.3 which failed to install.
darcs-2.8.3 depends on hashed-storage-0.5.10 which failed to install.
hashed-storage-0.5.10 failed during the building phase. The exception 
was:
ExitFailure 1
haskeline-0.6.4.7 failed during the building phase. The exception was:
ExitFailure 1
network-2.3.2.0 depends on parsec-3.1.3 which failed to install.
parsec-3.1.3 failed during the building phase. The exception was:
ExitFailure 1

I also see:
Storage/Hashed/Monad.hs:34:8:
    Could not find module `Control.Monad.RWS.Strict'
    Perhaps you haven't installed the profiling libraries for package 
`mtl-2.1.2'?
    Use -v to see a list of the files searched for.

and

Text/Parsec/Prim.hs:78:8:
    Could not find module `Control.Monad.Error.Class'
    Perhaps you haven't installed the profiling libraries for package 
`mtl-2.1.2'?
    Use -v to see a list of the files searched for.



2. What behaviour were you expecting instead?

successful build

3. What darcs version are you using? (Try: darcs --exact-version)

trying to upgrade from pre-built 2.5 to 2.8

4. What operating system are you running?

Mac OSX Lion.  Fresh download of Haskell framework.
msg16293 (view) Author: rpg Date: 2012-11-06.02:47:39
Is this a dependency bug that somehow something in whatever "mtl" is, is 
not correctly configured in the build instructions?
msg16294 (view) Author: rpg Date: 2012-11-06.03:54:03
OK: here's why: the .cabal/config file that the Haskell Platform writes 
for you has Profiling: True in it.

For some reason (I don't know why), it is not able to build mtl with 
profiling on.  So it fails.  I found this StackOverflow question that 
led me to turn off profiling, and then darcs builds successfully:
http://stackoverflow.com/questions/8954566/cannot-install-yesod-haskell-
web-framework-on-mac-osx

Suggestion: add this to the FAQ about building darcs, since it's really 
obscure.
msg16295 (view) Author: owst Date: 2012-11-06.10:51:27
Hi,

Thanks for the bug report and tracking down the issue. I've updated the
"compiling from source" section here http://darcs.net/Binaries

Cheers,
Owen.
History
Date User Action Args
2012-11-06 02:45:47rpgcreate
2012-11-06 02:47:40rpgsetmessages: + msg16293
2012-11-06 03:54:05rpgsetmessages: + msg16294
2012-11-06 10:51:28owstsetstatus: unknown -> resolved
messages: + msg16295