ndmitchell / hoogle

Haskell API search engine
http://hoogle.haskell.org/
Other
738 stars 134 forks source link

Building with threaded #63

Closed nh2 closed 10 years ago

nh2 commented 10 years ago

I run hoogle data -l -j4.

I get: hoogle: setNumCapabilities: not supported in the non-threaded RTS.

Maybe we should build with -threaded.

ndmitchell commented 10 years ago

I suspect that Shake just shouldn't crash if setNumCapabilities throws an error. I've raised https://github.com/ndmitchell/shake/issues/110 to track it.

ndmitchell commented 10 years ago

Fixed in the head version of Shake. I'd love to build with -threaded (it would speed up the database generation bits), but alas, from the Shake docs:

Compile without -threaded: In GHC 7.6 and earlier bug 7646 http://ghc.haskell.org/trac/ghc/ticket/7646 can cause a race condition in build systems that write files then read them. Omitting -threaded will still allow your cmd actions to run in parallel, so most build systems will still run in parallel.

Once GHC 7.8 is ubiquitous I'll probably switch over.