By the way, it looks like the documentation for createDirectoryIfMissing doesn&#39;t mention anything about its safety under concurrent invocation.<div><br></div><div>Looking at the code, it looks like it is safe (it handles the already exist exception):</div>

<div><br></div><div>    <a href="http://www.haskell.org/ghc/docs/latest/html/libraries/directory/src/System-Directory.html#createDirectoryIfMissing">http://www.haskell.org/ghc/docs/latest/html/libraries/directory/src/System-Directory.html#createDirectoryIfMissing</a><br>

<br></div><div>But maybe the docs could reflect that....</div><div><br></div><div>-Ryan</div><div><br></div><div><br><div class="gmail_quote">On Fri, Feb 24, 2012 at 3:16 AM, Conrad Parker <span dir="ltr">&lt;<a href="mailto:conrad@metadecks.org">conrad@metadecks.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
recently we&#39;ve been tweaking our internal build system at Tsuru to<br>
handle parallel builds of both cabal packages via &#39;cabal-sort<br>
--makefile&#39; and our local code tree via &#39;ghc -M&#39;. In addition to the<br>
recompilation checker fixes of #5878, the following would be great to<br>
have in 7.4.2:<br>
<br>
1) <a href="http://hackage.haskell.org/trac/ghc/ticket/5891" target="_blank">http://hackage.haskell.org/trac/ghc/ticket/5891</a> -- the patch fixes<br>
a race condition in creating parent directories for built object files<br>
<br>
2) master commit b6f94b5 &quot;Compile link .note section separately from<br>
main.c&quot; -- I think this is the patch that fixes link errors we&#39;ve seen<br>
during parallel builds (via ghc -M) with 7.4.1, such as:<br>
<br>
/x/y/z.o: file not recognized: File truncated<br>
<br>
and:<br>
<br>
/usr/bin/ld: BFD (GNU Binutils for Ubuntu) 2.20.51-system.20100908<br>
internal error, aborting at ../../bfd/merge.c line 872 in<br>
_bfd_merged_section_offset<br>
<br>
Will everything currently in master already be included in the next<br>
release or is it a separate branch? (If it&#39;s a separate branch I&#39;ll do<br>
some more testing to confirm that b6f94b5 is the patch that fixes the<br>
link error).<br>
<br>
Conrad.<br>
<br>
_______________________________________________<br>
Glasgow-haskell-users mailing list<br>
<a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users" target="_blank">http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</a><br>
</blockquote></div><br></div>