pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

RE: pkg/58045: devel/lldb fails to build



The following reply was made to PR pkg/58045; it has been noted by GNATS.

From: Malte Dehling <mdehling%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: pkgsrc-bugs%netbsd.org@localhost
Subject: RE: pkg/58045: devel/lldb fails to build
Date: Tue, 19 Mar 2024 12:39:12 -0700

 --000000000000fcaa27061408a058
 Content-Type: text/plain; charset="UTF-8"
 
 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
 
 --000000000000fcaa27061408a058
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Disposition: attachment; filename="signature.asc"
 Content-Transfer-Encoding: base64
 X-Attachment-Id: 4d40b44f3a3f2723_0.1
 
 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KCmlRSXpCQUFCQ0FBZEZpRUVva3ZsOUFOMEFo
 T05jQXdlSzhMazZxS3dkMFFGQW1YNTZlOEFDZ2tRSzhMazZxS3cKZDBSMjRRLy9Wb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