<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks Brandon. &nbsp;<div><br></div><div>I've patched:</div><div>&nbsp;/Library/Frameworks/GHC.framework/Versions/7.4.2-x86_64/usr/lib/ghc-7.4.2/libHSrts-ghc7.4.2.dylib</div><div>and</div><div>/Library/Frameworks/GHC.framework/Versions/7.4.2-x86_64/usr/lib/ghc-7.4.2/ibHSrts_thr-ghc7.4.2.dylib</div><div><br></div><div>both pointing to:</div><div>/Library/Frameworks/GHC.framework/Versions/7.4.2-x86_64/usr/lib/ghc-7.4.2/libffi.dylib</div><div><br></div><div>Unfortunately, it looks like</div><div>/Library/Frameworks/GHC.framework/Versions/7.4.2-x86_64/usr/lib/ghc-7.4.2/libffi.dylib&nbsp;</div><div>is pointing to the dodgy library too, e.g.:</div><div><br></div><div>&gt; otool -L&nbsp;/Library/Frameworks/GHC.framework/Versions/7.4.2-x86_64/usr/lib/ghc-7.4.2/libffi.dylib</div><div><div>/Users/ian/zz64/ghc-7.4.2/libffi/build/inst/lib/libffi.5.dylib (compatibility version 6.0.0, current version 6.10.0)</div><div>/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)</div></div><div><br></div><div>Not sure what to patch the first reference in that one to.</div><div><br></div><div><br><div><div>On 2013-04-07, at 9:42 PM, Brandon Allbery &lt;<a href="mailto:allbery.b@gmail.com">allbery.b@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">On Mon, Apr 8, 2013 at 12:10 AM, Luke Evans <span dir="ltr">&lt;<a href="mailto:luke@eversosoft.com" target="_blank">luke@eversosoft.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Unfortunately, it looks like my cabal build failure occurs in a temporary and very short-lived directory. &nbsp;So presumably the dodgy FFI gets copied into there from elsewhere. &nbsp;I wonder if I can find the source...</blockquote>
<div><br></div><div>It's running an executable it seems to have built to generate something else for the build, so I suspect you are in fact seeing the ghc bug and you should fix the ghc reference. If you installed the official HP package, you need to find&nbsp;<span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12px">libHSrts-ghc7.4.2.dylib somewhere under /Library/Haskell and use install_name_tool on that.</span></div>
<div><br></div></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix, openafs, kerberos, infrastructure, xmonad &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://sinenomine.net/" target="_blank">http://sinenomine.net</a></div></div>
</div>
</blockquote></div><br></div></body></html>