[clang] [clang][modules-driver] Add dependency scan and dependency graph (PR #152770)

Mikael Holmen via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 23 07:25:30 PDT 2026


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


More information about the cfe-commits mailing list