[Bug 1190681] New: Zig fails to build because of "Could NOT find lld (missing: LLD_LIBRARIES LLD_INCLUDE_DIRS) "
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681
Bug ID: 1190681
Summary: Zig fails to build because of "Could NOT find lld
(missing: LLD_LIBRARIES LLD_INCLUDE_DIRS) "
Classification: openSUSE
Product: openSUSE Tumbleweed
Version: Current
Hardware: Other
OS: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Development
Assignee: screening-team-bugs@suse.de
Reporter: socvirnyl.estela@gmail.com
QA Contact: qa-bugs@suse.de
Found By: ---
Blocker: ---
Greetings! I have a few problems building zig in openSUSE Tumbleweed.
**What I want to do**
I want to successfully build zig in openSUSE Tumbleweed with llvm, clang, and
lld provided by the distro's repositories.
**Expected Outcome**
Builds successfully
**Actual Outcome**
Failed to build
**What I did**
In `~/local/zig-0.8.1`, I use the following commands based on how others build
zig:
```sh
cmake -G Ninja -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=$(llvm-config --prefix) \
-DZIG_PREFER_CLANG_CPP_DYLIB=ON .
```
```sh
ninja -C build
ninja: Entering directory `build'
[19/164] Building CXX object CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o
FAILED: CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o
/usr/bin/c++ -I/home/uncomfy/local/zig-0.8.1/deps/SoftFloat-3e/source/include
-I/home/uncomfy/local/zig-0.8.1 -I/home/uncomfy/local/zig-0.8.1/build
-I/home/uncomfy/local/zig-0.8.1/src -I/home/uncomfy/local/zig-0.8.1/src/stage1
-std=c++14 -DZIG_LINK_MODE=Dynamic -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE
-fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Werror=type-limits
-Wno-missing-braces -Wno-comment -MD -MT
CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o -MF
CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o.d -o
CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o -c
/home/uncomfy/local/zig-0.8.1/src/zig_llvm.cpp
/home/uncomfy/local/zig-0.8.1/src/zig_llvm.cpp:67:10: fatal error:
lld/Common/Driver.h: No such file or directory
67 | #include
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681
William Brown
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681
Soc Virnyl Estela
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681
Roman Lebedev
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681#c1
Aaron Puchert
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681#c2
--- Comment #2 from Aaron Puchert
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681#c3
--- Comment #3 from Soc Virnyl Estela
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681#c4
Aaron Puchert
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681#c5
--- Comment #5 from Aaron Puchert
Hello Aaron Puchert. I did some digging around the patch you have before and successfully built zig-0.9.1.
Good to hear! If you still have it working, would you mind submitting it into a devel repository (devel:tools:compiler might be a good candidate) and perhaps even Factory? You're not the first to run into this issue, and if it's in the repository other people could use it and don't have to run into the same issues. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681#c6
--- Comment #6 from Soc Virnyl Estela
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681#c7
--- Comment #7 from Aaron Puchert
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681
Ilja Sidoroff
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681#c8
Soc Virnyl Estela
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681
http://bugzilla.opensuse.org/show_bug.cgi?id=1190681#c9
--- Comment #9 from Aaron Puchert
participants (1)
-
bugzilla_noreply@suse.com