<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 18, 2014 at 2:22 PM, Eric Fiselier <span dir="ltr"><<a href="mailto:eric@efcs.ca" target="_blank">eric@efcs.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><span class="">> <span style="font-size:13px;font-family:arial,sans-serif">I'm curious why you're using find_library and why it worked fine before.</span><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></span><div><span style="font-family:arial,sans-serif;font-size:13px">The change was made so that the ABI library did not need to be located on the linkers search path.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">find_library is used so that CMake properly links against the library.</span></div><span class=""><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">> </span><span style="font-family:arial,sans-serif;font-size:13px">Abbreviated paths</span></div><div style="font-size:13px;font-family:arial,sans-serif">> /somepath/bot/src/libcxx<br></div><div style="font-size:13px;font-family:arial,sans-serif">> /somepath/bot/src/libcxxrt<br></div><div style="font-size:13px;font-family:arial,sans-serif">></div><div style="font-size:13px;font-family:arial,sans-serif">> cmake is being ran from</div><div style="font-size:13px;font-family:arial,sans-serif">> /somepath/bot/build/foobar - In our case we have a global cmake which wraps everything</div><div style="font-size:13px;font-family:arial,sans-serif"><br></div></span><div style="font-size:13px;font-family:arial,sans-serif">The important path is where libcxxrt.so is located. Could you provide that?</div></div></blockquote><div><br></div><div>/somepath/build/Xcompiler/lib/5.9.0/x8664/64/libcxxrt.so<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><span class=""><div style="font-size:13px;font-family:arial,sans-serif"><br></div><div style="font-size:13px;font-family:arial,sans-serif">> I think we were explicitly setting the path before  (I need to double check this) and if that variable is set - find_path shouldn't be used</div><div style="font-size:13px;font-family:arial,sans-serif"><br></div></span><div style="font-size:13px;font-family:arial,sans-serif">Would you be able to clarify this? What path and what variable are you setting? What about find_path?</div></div></blockquote><div><br></div><div><div>in the cmake cache here's what I found, but I may not be looking in all the right places</div><div><br></div><div>Top level (doesn't matter)</div><div>//Path to libcxx source directory</div><div>LLVM_EXTERNAL_LIBCXX_SOURCE_DIR:PATH=/somepath/both/src//libcxx</div></div><div><br></div><div>in libcxx/build-x86_64-shared/CMakeCache.txt I point to the cxxrt </div><div>//Paths to C++ ABI header directories separated by ';'.<br></div><div><br></div><div>So it looks like I was wrong - we aren't setting any path for the location of libcxxrt.so # just the headers..</div><div>------------</div><div>I think I see the problem you're trying to solve..</div><div><br></div><div>ldd foobar/lib/5.9.0/x8664/64/libc++.so.1<br></div><div><span class="" style="white-space:pre"><br></span></div><div><span class="" style="white-space:pre">    </span>libcxxrt.so => not found<br></div><div>--------</div><div>We work-around this by having our compiler driver always add the paths so the linker can find it later. This may not work for clang though.</div><div><br></div><div>One thing I hope we can avoid is having an rpath always set. (Some guessing about the flags which cmake start adding) A build server path won't be the same as the end user path and imho it's not good to have the "wrong" hardcoded path still embedded. This would impact distributors..</div><div><br></div><div>Can you see an easy solution?</div><div><br></div></div></div></div>