https://sourceware.org/bugzilla/show_bug.cgi?id=28040
--- Comment #2 from Timm Bäder <tbaeder at redhat dot com> --- On Fedora 34, in a fresh LLVM checkout on the main branch, I can reproduce this via: CC=clang CXX=clang++ cmake ../llvm -GNinja -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_ENABLE_LTO=ON The build eventually fails with: /usr/bin/ld: cannot find lib/libLLVMSupport.a: Too many open files /usr/bin/ld: cannot find lib/libLLVMTarget.a: Too many open files /usr/bin/ld: cannot find -lpthread /usr/bin/ld: cannot find lib/libLLVMAArch64Desc.a: Too many open files /usr/bin/ld: cannot find lib/libLLVMAArch64Info.a: Too many open files /usr/bin/ld: cannot find lib/libLLVMAArch64Utils.a: Too many open files etc. I'm not sure what's different to your cmake invocation though. -- You are receiving this mail because: You are on the CC list for the bug.