<div dir="auto">Hi Jeff,<div dir="auto"><br></div><div dir="auto">Just to make sure. Was your suggestion to completely remove the option, or just drop it on osx?</div><div dir="auto"><br></div><div dir="auto">At least on Ubuntu systems I made the experience that this option is needed to overwrite the default linker behavior which will not load the tool, because the application does not call any of the functions provided by this library.</div><div dir="auto"><br></div><div dir="auto">In our case the OpenMP runtime will use dlsym to find the ompt_start_tool function.</div><div dir="auto"><br></div><div dir="auto">Is there a better way to portably tell the linker to link this library anyways?</div><div dir="auto"><br></div><div dir="auto">Best</div><div dir="auto">Joachim</div></div><br><div class="gmail_quote"><div dir="ltr">Jeff Hammond via Openmp-dev <<a href="mailto:openmp-dev@lists.llvm.org">openmp-dev@lists.llvm.org</a>> schrieb am Di., 3. Juli 2018, 02:05:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Why don't you verify that it works when that flag is omitted and then submit a patch upstream?<br><br>Jeff</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 2, 2018 at 5:02 PM, Simone Atzeni <span dir="ltr"><<a href="mailto:simone@cs.utah.edu" target="_blank" rel="noreferrer">simone@cs.utah.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">I was wondering because for our tool Archer (OpenMP data race detector) we run the OMPT tests to make sure that we are using the correct OpenMP version and those two failures make fail our Travis CI.<div><br></div><div>It would be great if it could be fixed.</div><div><br></div><div>Thanks.</div><div><span class="m_-8949903975630972764HOEnZb"><font color="#888888">Simone</font></span><div><div class="m_-8949903975630972764h5"><br><div><br><blockquote type="cite"><div>On Jul 2, 2018, at 5:58 PM, Jeff Hammond <<a href="mailto:jeff.science@gmail.com" target="_blank" rel="noreferrer">jeff.science@gmail.com</a>> wrote:</div><br class="m_-8949903975630972764m_-5830283772486097912Apple-interchange-newline"><div><div dir="ltr">The fix appears to be "don't use that option", as demonstrated by <a href="https://github.com/pytorch/pytorch/issues/3436" target="_blank" rel="noreferrer">https://github.com/pytorch/pytorch/issues/3436</a>.  I have not verified this, although I am a Mac user and can do so if necessary.<div><br></div><div>Jeff</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 2, 2018 at 4:41 PM, Simone Atzeni via Openmp-dev <span dir="ltr"><<a href="mailto:openmp-dev@lists.llvm.org" target="_blank" rel="noreferrer">openmp-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
On Mac two OMPT tests (see below) fail because the linking option "--no-as-needed” is not recognized (using LLVM/Clang 6.0.1)<br>
Does anyone know a workaround for this?<br>
<br>
Failing Tests (2):<br>
    libomp :: ompt/loadtool/tool_available/tool_available.c<br>
    libomp :: ompt/loadtool/tool_not_available/tool_not_available.c<br>
<br>
Thanks.<br>
Simone<br>
<br>
_______________________________________________<br>
Openmp-dev mailing list<br>
<a href="mailto:Openmp-dev@lists.llvm.org" target="_blank" rel="noreferrer">Openmp-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" rel="noreferrer noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-8949903975630972764m_-5830283772486097912gmail_signature" data-smartmail="gmail_signature">Jeff Hammond<br><a href="mailto:jeff.science@gmail.com" target="_blank" rel="noreferrer">jeff.science@gmail.com</a><br><a href="http://jeffhammond.github.io/" target="_blank" rel="noreferrer">http://jeffhammond.github.io/</a></div>
</div>
</div></blockquote></div><br></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-8949903975630972764gmail_signature" data-smartmail="gmail_signature">Jeff Hammond<br><a href="mailto:jeff.science@gmail.com" target="_blank" rel="noreferrer">jeff.science@gmail.com</a><br><a href="http://jeffhammond.github.io/" target="_blank" rel="noreferrer">http://jeffhammond.github.io/</a></div>
</div>
_______________________________________________<br>
Openmp-dev mailing list<br>
<a href="mailto:Openmp-dev@lists.llvm.org" target="_blank" rel="noreferrer">Openmp-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" rel="noreferrer noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a><br>
</blockquote></div>