<p dir="ltr">I'm headed back from a long weekend with the family.  I'll see if I can find some time tonight to look at this if no one else gets to it before then.</p>
<p dir="ltr">--Aaron</p>
<br><div class="gmail_quote"><div dir="ltr">On Mon, Jun 19, 2017, 10:18 AM Dieter Nützel <<a href="mailto:Dieter@nuetzel-hh.de">Dieter@nuetzel-hh.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Jan and Aaron,<br>
<br>
compilation of latest libclc git with current LLVM 5.0<br>
(fe252ffdaa62fc676b1bceaaba90652e51f07e5f) resulted in this<br>
(LLVM git bug, missing pthread or openSUSE Tumbleweed PIE thing<br>
<a href="https://www.phoronix.com/scan.php?page=news_item&px=openSUSE-Tumbleweed-PIE" rel="noreferrer" target="_blank">https://www.phoronix.com/scan.php?page=news_item&px=openSUSE-Tumbleweed-PIE</a>):<br>
<br>
LINK utils/prepare-builtins<br>
/usr/local/lib/libLLVMSupport.a(Mutex.cpp.o): In function<br>
`llvm::sys::MutexImpl::MutexImpl(bool)':<br>
Mutex.cpp:(.text._ZN4llvm3sys9MutexImplC2Eb+0x2c): undefined reference<br>
to `pthread_mutexattr_init'<br>
Mutex.cpp:(.text._ZN4llvm3sys9MutexImplC2Eb+0x38): undefined reference<br>
to `pthread_mutexattr_settype'<br>
Mutex.cpp:(.text._ZN4llvm3sys9MutexImplC2Eb+0x4b): undefined reference<br>
to `pthread_mutexattr_destroy'<br>
/usr/local/lib/libLLVMSupport.a(Mutex.cpp.o): In function<br>
`llvm::sys::MutexImpl::tryacquire()':<br>
Mutex.cpp:(.text._ZN4llvm3sys9MutexImpl10tryacquireEv+0x8): undefined<br>
reference to `pthread_mutex_trylock'<br>
/usr/local/lib/libLLVMSupport.a(Process.cpp.o): In function<br>
`llvm::sys::Process::SafelyCloseFileDescriptor(int)':<br>
Process.cpp:(.text._ZN4llvm3sys7Process25SafelyCloseFileDescriptorEi+0x3f):<br>
undefined reference to `pthread_sigmask'<br>
Process.cpp:(.text._ZN4llvm3sys7Process25SafelyCloseFileDescriptorEi+0x87):<br>
undefined reference to `pthread_sigmask'<br>
Process.cpp:(.text._ZN4llvm3sys7Process25SafelyCloseFileDescriptorEi+0xa2):<br>
undefined reference to `pthread_sigmask'<br>
/usr/local/lib/libLLVMSupport.a(Process.cpp.o): In function<br>
`llvm::sys::Process::FileDescriptorHasColors(int)':<br>
Process.cpp:(.text._ZN4llvm3sys7Process23FileDescriptorHasColorsEi+0x67):<br>
undefined reference to `setupterm'<br>
Process.cpp:(.text._ZN4llvm3sys7Process23FileDescriptorHasColorsEi+0x90):<br>
undefined reference to `tigetnum'<br>
Process.cpp:(.text._ZN4llvm3sys7Process23FileDescriptorHasColorsEi+0x99):<br>
undefined reference to `set_curterm'<br>
Process.cpp:(.text._ZN4llvm3sys7Process23FileDescriptorHasColorsEi+0xa1):<br>
undefined reference to `del_curterm'<br>
/usr/local/lib/libLLVMSupport.a(RWMutex.cpp.o): In function<br>
`llvm::sys::RWMutexImpl::RWMutexImpl()':<br>
RWMutex.cpp:(.text._ZN4llvm3sys11RWMutexImplC2Ev+0x23): undefined<br>
reference to `pthread_rwlock_init'<br>
/usr/local/lib/libLLVMSupport.a(RWMutex.cpp.o): In function<br>
`llvm::sys::RWMutexImpl::~RWMutexImpl()':<br>
RWMutex.cpp:(.text._ZN4llvm3sys11RWMutexImplD2Ev+0x8): undefined<br>
reference to `pthread_rwlock_destroy'<br>
/usr/local/lib/libLLVMSupport.a(RWMutex.cpp.o): In function<br>
`llvm::sys::RWMutexImpl::reader_acquire()':<br>
RWMutex.cpp:(.text._ZN4llvm3sys11RWMutexImpl14reader_acquireEv+0x8):<br>
undefined reference to `pthread_rwlock_rdlock'<br>
/usr/local/lib/libLLVMSupport.a(RWMutex.cpp.o): In function<br>
`llvm::sys::RWMutexImpl::reader_release()':<br>
RWMutex.cpp:(.text._ZN4llvm3sys11RWMutexImpl14reader_releaseEv+0x8):<br>
undefined reference to `pthread_rwlock_unlock'<br>
/usr/local/lib/libLLVMSupport.a(RWMutex.cpp.o): In function<br>
`llvm::sys::RWMutexImpl::writer_acquire()':<br>
RWMutex.cpp:(.text._ZN4llvm3sys11RWMutexImpl14writer_acquireEv+0x8):<br>
undefined reference to `pthread_rwlock_wrlock'<br>
/usr/local/lib/libLLVMSupport.a(RWMutex.cpp.o): In function<br>
`llvm::sys::RWMutexImpl::writer_release()':<br>
RWMutex.cpp:(.text._ZN4llvm3sys11RWMutexImpl14writer_releaseEv+0x8):<br>
undefined reference to `pthread_rwlock_unlock'<br>
/usr/local/lib/libLLVMSupport.a(Threading.cpp.o): In function<br>
`llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int)':<br>
Threading.cpp:(.text._ZN4llvm22llvm_execute_on_threadEPFvPvES0_j+0x3c):<br>
undefined reference to `pthread_create'<br>
Threading.cpp:(.text._ZN4llvm22llvm_execute_on_threadEPFvPvES0_j+0x4c):<br>
undefined reference to `pthread_join'<br>
Threading.cpp:(.text._ZN4llvm22llvm_execute_on_threadEPFvPvES0_j+0x66):<br>
undefined reference to `pthread_attr_setstacksize'<br>
clang-5.0: error: linker command failed with exit code 1 (use -v to see<br>
invocation)<br>
make: *** [Makefile:14: utils/prepare-builtins] Fehler 1<br>
</blockquote></div>