pkgsrc-Bugs archive

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

pkg/57879: devel/cmake build failure (hangs while loading initial cache file?)



>Number:         57879
>Category:       pkg
>Synopsis:       devel/cmake build failure (hangs while loading initial cache file?)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 26 03:05:00 +0000 2024
>Originator:     Ian Leroux
>Release:        pkgsrc current updated 2024-01-25 (or anytime in January)
>Organization:
>Environment:
NetBSD marsupilami 10.99.10 NetBSD 10.99.10 (GENERIC) #3: Fri Oct 20 07:37:24 EDT 2023  idleroux@marsupilami:/build/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
Attempts to build devel/cmake version 3.28.1 consistently hang. I've tried building both as root and as an unprivileged user. I initially encountered this problem with pkg_rolling-replace, but can reproduce it starting from an empty /usr/pkg. The last two lines of output before the hang seem to show successful linking of the (bootstrap?) cmake executable and an attempt to load the initial cache file:

c++ -Wl,-zrelro -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lexecinfo -O2 -I/usr/include -I/usr/pkg/include -D_NETBSD_SOURCE         -DCMAKE_BOOTSTRAP    -DCMake_HAVE_CXX_MAKE_UNIQUE=1   -I/build/pkgsrc/devel/cmake/work/cmake-3.28.1/Bootstrap.cmk   -I/build/pkgsrc/devel/cmake/work/cmake-3.28.1/Source   -I/build/pkgsrc/devel/cmake/work/cmake-3.28.1/Source/LexerParser   -I/build/pkgsrc/devel/cmake/work/cmake-3.28.1/Utilities/std   -I/build/pkgsrc/devel/cmake/work/cmake-3.28.1/Utilities  <... many object files ...>  -lkvm -luv -lrhash -lcrypto -o cmake
loading initial cache file /build/pkgsrc/devel/cmake/work/cmake-3.28.1/Bootstrap.cmk/InitialCacheFlags.cmake

No further progress is made after those lines print. top(1) shows a cmake process that isn't doing much:

 5628 idleroux  82    0    25M 8480K kqueue/0    0:00  0.00%  0.00% cmake

The initial cache file exists and its contents are:

$ cat work/cmake-3.28.1/Bootstrap.cmk/InitialCacheFlags.cmake

# Generated by /build/pkgsrc/devel/cmake/work/cmake-3.28.1/bootstrap
# Default cmake settings.  These may be overridden any settings below.
set (CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build.") # not FORCE to preserve defaults specified elsewhere
set (CMAKE_INSTALL_PREFIX "/usr/pkg" CACHE PATH "Install path prefix, prepended onto install directories." FORCE)
set (CMAKE_DOC_DIR "/share/doc/cmake-3.28" CACHE PATH "Install location for documentation (relative to prefix)." FORCE)
set (CMAKE_MAN_DIR "/man" CACHE PATH "Install location for man pages (relative to prefix)." FORCE)
set (CMAKE_BIN_DIR "" CACHE PATH "Install location for binaries (relative to prefix)." FORCE)
set (CMAKE_DATA_DIR "" CACHE PATH "Install location for data (relative to prefix)." FORCE)
set (CMAKE_XDGDATA_DIR "" CACHE PATH "Install location for XDG specific files (relative to prefix)." FORCE)


set (CMake_ENABLE_DEBUGGER 0 CACHE BOOL "Enable CMake debugger support" FORCE)



>How-To-Repeat:
cd /usr/pkgsrc/devel/cmake
make package
>Fix:
None found yet.



Home | Main Index | Thread Index | Old Index