Get lld-devel package to compile zig lang compiler

I’m trying to compile zig lang compiler from master branch.

And get error saying

Make Error in CMakeLists.txt:
  Found relative path while evaluating include directories of "zigcpp":

    "LLD_INCLUDE_DIRS-NOTFOUND"

CMake Error in CMakeLists.txt:
  Found relative path while evaluating include directories of "zig-wasm2c":

    "LLD_INCLUDE_DIRS-NOTFOUND"



CMake Error in CMakeLists.txt:
  Found relative path while evaluating include directories of "zig1":

    "LLD_INCLUDE_DIRS-NOTFOUND"

CMake Error in CMakeLists.txt:
  Found relative path while evaluating include directories of "zig2":

    "LLD_INCLUDE_DIRS-NOTFOUND"

This is where it is defined zig/cmake/Findlld.cmake at master · ziglang/zig · GitHub

find_path(LLD_INCLUDE_DIRS NAMES lld/Common/Driver.h
    HINTS ${LLVM_INCLUDE_DIRS}
    PATHS
        /usr/lib/llvm-16/include
        /usr/local/llvm160/include
        /usr/local/llvm16/include
        /usr/local/opt/llvm@16/include
        /opt/homebrew/opt/llvm@16/include
        /mingw64/include)

How can I get these files? Cant find package lld-devel (also these files doesnt exist in llvm-devel)

It does not look like LLD is packaged for openSUSE. There is user project with LLD, but it is not for Tumbleweed.

If you need it, you may consider contributing by packaging it for openSUSE.

lld itself is packaged and supplied by official packages. But somehow not lld-devel (header files) or liblld to use it as development dependency.

I think it’s somehow official package (llvm repo ) should be tuned. But don’t know how.

Indeed.

# These are only available as static libraries, which we don't ship.
rm -rf %{buildroot}%{_includedir}/{clang-tidy,lld}
rm -rf %{buildroot}%{_libdir}/cmake/lld/

If you have valid use case you may consider bug report on https://bugzilla.opensuse.org/

Thanks! Valid reason is to support zig language https://ziglang.org (master branch and 0.11.0 when will be released). It requires these header files.

Now Tumbleweed supports 0.10.0 version and it seems doesn’t require these files.