<div><div dir="auto">I understand that there’s a problem here, but the question is whether is this the right solution.</div></div><div dir="auto"><br></div><div dir="auto">First, do the tests even run for macOS/Darwin in compiler-rt? I don’t think they do as we’re still running them on Linux hosts (see lit configuration for the test cases).</div><div dir="auto"><br></div><div dir="auto">Second, these symbols ought to be generated by the linker if the right sections are in the MachO binary (they are array extents). Does the LLVM backend even generate the instrumentation map for Darwin yet? Maybe that change has to happen first?</div><div dir="auto"><br></div><div dir="auto">Lastly, is there a way to reproduce these? Is there a buildbot failing? Can you share a link to the failure? When did it start and can we revert the change that cause it while we investigate what the proper solutions are to making XRay work on Darwin?</div><div><br><div class="gmail_quote"><div dir="ltr">On Mon, 3 Sep 2018 at 12:15 am, David CARLIER via Phabricator via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">devnexen added a comment.<br>
<br>
"/usr/bin/ld" -demangle -lto_library /Users/devnexen/Contribs/LLVMbuild/lib/libLTO.dylib -no_deduplicate -dynamic -arch x86_64 -macosx_version_min 10.13.0 -o a.out -L/Users/devnexen/Contribs/TestSuite/ /var/folders/0y/qp64bhnx57x5gvjdr34k0jg80000gn/T/fdrmode-bench-3b0d58.o -lbenchmark -lc++ /Users/devnexen/Contribs/LLVMbuild/lib/clang/8.0.0/lib/darwin/libclang_rt.xray_osx.a /Users/devnexen/Contribs/LLVMbuild/lib/clang/8.0.0/lib/darwin/libclang_rt.xray-basic_osx.a /Users/devnexen/Contribs/LLVMbuild/lib/clang/8.0.0/lib/darwin/libclang_rt.xray-fdr_osx.a -lSystem /Users/devnexen/Contribs/LLVMbuild/lib/clang/8.0.0/lib/darwin/libclang_rt.osx.a<br>
Undefined symbols for architecture x86_64:<br>
<br>
  "___start_xray_fn_idx", referenced from:<br>
      ___xray_init in libclang_rt.xray_osx.a(xray_init.cc.o)<br>
  "___start_xray_instr_map", referenced from:<br>
      ___xray_init in libclang_rt.xray_osx.a(xray_init.cc.o)<br>
  "___stop_xray_fn_idx", referenced from:<br>
      ___xray_init in libclang_rt.xray_osx.a(xray_init.cc.o)<br>
  "___stop_xray_instr_map", referenced from:<br>
      ___xray_init in libclang_rt.xray_osx.a(xray_init.cc.o)<br>
<br>
ld: symbol(s) not found for architecture x86_64<br>
clang-8: error: linker command failed with exit code 1 (use -v to see invocation)<br>
<br>
Another apple folk reported me the issue as well.<br>
<br>
<br>
Repository:<br>
  rCRT Compiler Runtime<br>
<br>
<a href="https://reviews.llvm.org/D51571" rel="noreferrer" target="_blank">https://reviews.llvm.org/D51571</a><br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Dean</div></div></div>