Hi,
I've been trying to build current devel/lldb but without success, and
based on https://releng.netbsd.org/bulktracker/devel/lldb I'm not the
only one. In fact it looks like the only successful recent builds are
on MacOS.
As per my initial bug report, the build fails with this CMake error:
[...]
-- Performing Test Terminfo_LINKABLE
-- Performing Test Terminfo_LINKABLE - Failed
-- Could NOT find Terminfo (missing: Terminfo_LINKABLE)
[...]
CMake Error at
/scratch/pkg/devel/lldb/work/.buildlink/lib/cmake/llvm/LLVMExports.cmake:64
(set_target_properties):
The link interface of target "LLVMSupport" contains:
Terminfo::terminfo
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Call Stack (most recent call first):
/scratch/pkg/devel/lldb/work/.buildlink/lib/cmake/llvm/LLVMConfig.cmake:344
(include)
cmake/modules/LLDBStandalone.cmake:9 (find_package)
CMakeLists.txt:37 (include)
I added this line to devel/lldb/Makefile
CMAKE_ARGS+= --debug-trycompile
and had a look at the CMakeConfigureLog.yaml file left behind:
-
kind: "try_compile-v1"
backtrace:
- "/pkg/share/cmake-3.28/Modules/Internal/CheckSourceCompiles.cmake:101
(try_compile)"
- "/pkg/share/cmake-3.28/Modules/CheckCSourceCompiles.cmake:52
(cmake_check_source_compiles)"
- "/scratch/pkg/devel/lldb/work/.buildlink/lib/cmake/llvm/FindTerminfo.cmake:21
(check_c_source_compiles)"
- "/scratch/pkg/devel/lldb/work/.buildlink/lib/cmake/llvm/LLVMConfig.cmake:263
(find_package)"
- "cmake/modules/LLDBStandalone.cmake:9 (find_package)"
- "CMakeLists.txt:37 (include)"
checks:
- "Performing Test Terminfo_LINKABLE"
directories:
source:
"/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-Mi5pE3"
binary:
"/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-Mi5pE3"
cmakeVariables:
CMAKE_C_FLAGS: "-O2 -I/usr/include/readline -I/usr/include
-I/pkg/include -I/pkg/include/ncurses -I/pkg/include/lua-5.3
-I/pkg/include/python3.10"
CMAKE_C_FLAGS_DEBUG: "-g"
CMAKE_EXE_LINKER_FLAGS: "-Wl,-zrelro -L/usr/lib -Wl,-R/usr/lib
-L/pkg/lib -Wl,-R/pkg/lib"
CMAKE_MODULE_PATH:
"/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake;/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake/modules;/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/../cmake/Modules;/scratch/pkg/devel/lldb/work/.buildlink/lib/cmake/llvm"
buildResult:
variable: "Terminfo_LINKABLE"
cached: true
stdout: |
Change Dir:
'/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-Mi5pE3'
Run Build Command(s): /pkg/bin/cmake -E env VERBOSE=1
/pkg/bin/gmake -f Makefile cmTC_627fa/fast
make -f CMakeFiles/cmTC_627fa.dir/build.make
CMakeFiles/cmTC_627fa.dir/build
Building C object CMakeFiles/cmTC_627fa.dir/src.c.o
/scratch/pkg/devel/lldb/work/.cwrapper/bin/cc
-DTerminfo_LINKABLE -O2 -I/usr/include/readline -I/usr/include
-I/pkg/include -I/pkg/include/ncurses -I/pkg/include/lua-5.3
-I/pkg/include/python3.10 -o CMakeFiles/cmTC_627fa.dir/src.c.o -c
/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-Mi5pE3/src.c
Linking C executable cmTC_627fa
/pkg/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_627fa.dir/link.txt --verbose=1
/scratch/pkg/devel/lldb/work/.cwrapper/bin/cc -O2
-I/usr/include/readline -I/usr/include -I/pkg/include
-I/pkg/include/ncurses -I/pkg/include/lua-5.3
-I/pkg/include/python3.10 -Wl,-zrelro -L/usr/lib -Wl,-R/usr/lib
-L/pkg/lib -Wl,-R/pkg/lib CMakeFiles/cmTC_627fa.dir/src.c.o -o
cmTC_627fa /usr/lib/libterminfo.so
ld: CMakeFiles/cmTC_627fa.dir/src.c.o: in function `main':
src.c:(.text.startup+0x7): undefined reference to `setupterm'
*** Error code 1
Stop.
make[1]: stopped in
/scratch/pkg/devel/lldb/work/lldb-16.0.6.src/cmake-pkgsrc-build/CMakeFiles/CMakeScratch/TryCompile-Mi5pE3
gmake: *** [Makefile:127: cmTC_627fa/fast] Error 1
exitCode: 2
Manually running 'gcc src.c.o /usr/lib/libterminfo.so' works just fine
so I'm not sure why this fails.
Anyone know what's going on and how to fix this?
Cheers,
--
Malte Dehling
Attachment:
signature.asc
Description: PGP signature