mikaelholmen wrote:

> Is `pthread` installed and availabe on your system?
> 
> ```shell
> ldconfig -p | grep pthread
> ```
```
        libpthread.so.0 (libc6,x86-64, OS ABI: Linux 3.2.0) => 
/lib64/libpthread.so.0
        libpthread.so.0 (libc6, OS ABI: Linux 3.2.0) => /lib/libpthread.so.0
        libpthread.so (libc6,x86-64, OS ABI: Linux 3.2.0) => 
/lib64/libpthread.so
        libpthread.so (libc6, OS ABI: Linux 3.2.0) => /lib/libpthread.so
        liblttng-ust-pthread-wrapper.so.0 (libc6,x86-64) => 
/lib64/liblttng-ust-pthread-wrapper.so.0
        libevent_pthreads-2.1.so.6 (libc6,x86-64) => 
/lib64/libevent_pthreads-2.1.so.6
```
I see that in our failing build we explicitly set
```--gcc-toolchain```
because 
```we need a more modern stdlibc++ compared to the one found on the system.```
but maybe that messes something up then. Non-shared libs builds work though.

If I add
```
${LLVM_PTHREAD_LIB}
```
in LINK_LIBS in clang/lib/Driver/CMakeLists.txt the shared libs build links 
succesfully.

But if noone else see any problems maybe this is a downstream 
configuration/build setup issue then.



https://github.com/llvm/llvm-project/pull/152770
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to