| Issue |
181617
|
| Summary |
clang: undefined reference to `llvm::SMTSolver::dump() const'
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
0-wiz-0
|
I was asked to test https://github.com/llvm/llvm-project/issues/181586 on the latest release candidate. For building lldb, llvm and clang need to be installed, but the build of clang fails for me on NetBSD 11.99.5/x86_64:
```
[100%] Built target libclang
ld: ../../lib/libclangStaticAnalyzerCore.a(SMTConstraintManager.cpp.o): in function `clang::ento::SMTConstraintManager::dump() const':
SMTConstraintManager.cpp:(.text._ZNK5clang4ento20SMTConstraintManager4dumpEv[_ZNK5clang4ento20SMTConstraintManager4dumpEv]+0x20): undefined reference to `llvm::SMTSolver::dump() const'
gmake[2]: *** [tools/driver/CMakeFiles/clang.dir/build.make:402: bin/clang-22] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:17633: tools/driver/CMakeFiles/clang.dir/all] Error 2
```
I just did:
```
# unpack sources
# mkdir llvm/build
# cd llvm/build
# cmake ..
# gmake -j10
# gmake install
# mkdir ../../clang/build
# cd ../../clang/build
# cmake -DLLVM_INCLUDE_TESTS=OFF ..
# gmake -j10
```
I had to put `LD_LIBRARY_PATH=/usr/pkg/lib` in the environment, since the build of llvm doesn't include its rpath in the llvm-tblgen binary, leading to:
```
/usr/local/bin/llvm-tblgen: Shared object "libzstd.so.1" not found
```
Worth another issue?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs