https://bugzilla.redhat.com/show_bug.cgi?id=1912706
--- Comment #9 from Stephen Kitt steve@sk2.org --- To build with clang 11, change the cmake invocation to
%cmake \ -DLLVM_CONFIG_EXE=%{_bindir}/llvm-config-11-%{__isa_bits} \ -DLLVM_INCLUDE_DIRS=%{_libdir}/llvm11/include \ -DLLVM_LIBRARIES=%{_libdir}/llvm11/lib \ -DCLANG_INCLUDE_DIRS=%{_libdir}/include/clang \ -DCLANG_LIBRARIES=%{_libdir}/llvm11/lib \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DZIG_PREFER_CLANG_CPP_DYLIB=ON \ -DZIG_VERSION:STRING="%{version}"
and the build requires to
BuildRequires: llvm11-devel BuildRequires: clang11-devel
The overall build fails because the lld11 libraries aren’t available.