<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Apologies. I put the output of “-l” (not “-L”) here: <a href="https://gist.github.com/idontgetoutmuch/654007ac57e863a293b76a0cf98250c1" class="">https://gist.github.com/idontgetoutmuch/654007ac57e863a293b76a0cf98250c1</a><div class=""><br class=""></div><div class="">I couldn’t immediately see anything that tells me how @rpath is resolved.</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 13 Jan 2017, at 17:46, Brandon Allbery <<a href="mailto:allbery.b@gmail.com" class="">allbery.b@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote">On Fri, Jan 13, 2017 at 12:35 PM, <span dir="ltr" class=""><<a href="mailto:dominic@steinitz.org" target="_blank" class="">dominic@steinitz.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><blockquote type="cite" class=""><div class=""><br class="">$ otool -L a.out</div><div class=""></div></blockquote></div></blockquote><div class="">I said "<font face="monospace, monospace" class="">-l</font>". "<font face="monospace, monospace" class="">-L</font>" shows how it resolves shared objects; "<font face="monospace, monospace" class="">-l</font>" dumps the load commands table, which includes RPATH entries that tell it how to resolve <font face="monospace, monospace" class="">@rpath</font>.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><blockquote type="cite" class=""><div class="">DYLD_FALLBACK_LIBRARY_PATH=/<wbr class="">Users/dom/Library/Haskell/ghc-<wbr class="">8.0.1/lib/test-via-c-0.1.0.0/<wbr class="">bin:/Library/Frameworks/GHC.<wbr class="">framework/Versions/8.0.1-x86_<wbr class="">64/usr/lib/ghc-8.0.1/rts</div><div class="">~/Dropbox/Private/TestU01-1.2.<wbr class="">3/examples/src $ ./a.out</div></blockquote></div></blockquote><div class="">This is odd, unless Apple changed things yet again (I should not be surprised, the loader stuff is about as stable as water /o\ )</div><div class=""><br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""></div><div class="">It’s not clear to me why it’s looking for `gcc/5` which is not installed when it looks as though it should be looking for `gcc/6`.</div></div></blockquote><div class=""><br class=""></div><div class="">That might be indicated by the RPATH entries, since <font face="monospace, monospace" class="">DYLD_FALLBACK_LIBRARY_PATH</font> changes how lookups work (so does <font face="monospace, monospace" class="">DYLD_LIBRARY_PATH</font>, in a different way, which is why it's dangerous).</div></div><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class="">brandon s allbery kf8nh sine nomine associates</div><div class=""><a href="mailto:allbery.b@gmail.com" target="_blank" class="">allbery.b@gmail.com</a> <a href="mailto:ballbery@sinenomine.net" target="_blank" class="">ballbery@sinenomine.net</a></div><div class="">unix, openafs, kerberos, infrastructure, xmonad <a href="http://sinenomine.net/" target="_blank" class="">http://sinenomine.net</a></div></div></div>
</div></div>
</div></blockquote></div><br class=""><div class="">
<div class="">Dominic Steinitz</div><div class=""><a href="mailto:dominic@steinitz.org" class="">dominic@steinitz.org</a></div><div class=""><a href="http://idontgetoutmuch.wordpress.com" class="">http://idontgetoutmuch.wordpress.com</a></div>
</div>
<br class=""></div></body></html>