<div dir="ltr">Seems introduced in r315725 and fixed in r315988.<br><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 17, 2017 at 8:38 PM Florian Sattler via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@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">hi,<br>
<br>
found this, too. LLVM_PTHREAD_LIB is not linked to lldCommon, which<br>
fails if you build with shared libs.<br>
<br>
On 10/17/2017 11:03 AM, Dean Michael Berris via llvm-dev wrote:<br>
> ninja all check-xray<br>
> [0/981] Building libLLVMTableGen for native TableGen...<br>
> ninja: no work to do.<br>
> [673/979] Linking CXX shared library lib/liblldCommon.so.6.0.0svn<br>
> FAILED: lib/liblldCommon.so.6.0.0svn<br>
> : && /usr/bin/clang++-3.9 -fPIC -Wpedantic -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fcolor-diagnostics -ffunction-sections -fdata-sections -O3 -Wl,-z,defs -fuse-ld=gold -Wl,-rpath-link,/usr/local/google/home/dberris/xray/llvm-build/./lib -Wl,-O3 -Wl,--gc-sections -shared -Wl,-soname,liblldCommon.so.6 -o lib/liblldCommon.so.6.0.0svn tools/lld/Common/CMakeFiles/lldCommon.dir/Reproduce.cpp.o tools/lld/Common/CMakeFiles/lldCommon.dir/TargetOptionsCommandFlags.cpp.o tools/lld/Common/CMakeFiles/lldCommon.dir/Threads.cpp.o tools/lld/Common/CMakeFiles/lldCommon.dir/Version.cpp.o -Wl,-rpath,"\$ORIGIN/../lib" lib/libLLVMCodeGen.so.6.0.0svn lib/libLLVMMC.so.6.0.0svn lib/libLLVMOption.so.6.0.0svn lib/libLLVMSupport.so.6.0.0svn lib/libLLVMTarget.so.6.0.0svn && :<br>
> /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/thread:137: error: undefined reference to 'pthread_create'<br>
> /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/thread:137: error: undefined reference to 'pthread_create'<br>
> clang: error: linker command failed with exit code 1 (use -v to see invocation)<br>
> [722/979] Building X86GenInstrInfo.inc...<br>
><br>
> I'm currently at r315954.<br>
><br>
> Anybody else seeing this?<br>
><br>
> -- Dean<br>
><br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
><br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>