[MacPorts] #68916: cmake fails to properly identify glib version

MacPorts noreply at macports.org
Fri Dec 15 21:48:59 UTC 2023


#68916: cmake fails to properly identify glib version
------------------------+--------------------
 Reporter:  mouse07410  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  cmake
------------------------+--------------------
 MacOS Sonoma 14.2, Xcode-15.1.
 {{{
 :debug:configure CPATH='/opt/local/include'
 :debug:configure
 CPPFLAGS='-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk'
 :debug:configure CXX='/usr/bin/clang++'
 :debug:configure CXXFLAGS='-pipe -Os -DNDEBUG -I/opt/local/include
 -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk'
 :debug:configure DEVELOPER_DIR='/Library/Developer/CommandLineTools'
 :debug:configure F90FLAGS='-pipe -Os -m64'
 :debug:configure FCFLAGS='-pipe -Os -m64'
 :debug:configure FFLAGS='-pipe -Os -m64'
 :debug:configure INSTALL='/usr/bin/install -c'
 :debug:configure LDFLAGS='-L/opt/local/lib
 -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk'
 :debug:configure LIBRARY_PATH='/opt/local/lib'
 :debug:configure MACOSX_DEPLOYMENT_TARGET='14.0'
 :debug:configure OBJC='/usr/bin/clang'
 :debug:configure OBJCFLAGS='-pipe -Os -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk'
 :debug:configure OBJCXX='/usr/bin/clang++'
 :debug:configure OBJCXXFLAGS='-pipe -Os -DNDEBUG -I/opt/local/include
 -I/opt/local/include -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk'
 :debug:configure
 SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk'
 :info:configure Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libqtxdg/libqtxdg/work/build"
 && /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles"
 -DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local"
 -DCMAKE_INSTALL_NAME_DIR="/opt/local/lib"
 -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER="$CC"
 -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC"
 -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW
 -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON
 -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST
 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make
 -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules"
 -DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules"
 -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON
 -DCMAKE_INSTALL_RPATH="/opt/local/lib" -Wno-dev
 -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="14.0"
 -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk"
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libqtxdg/libqtxdg/work/libqtxdg-3.5.0
 :debug:configure system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libqtxdg/libqtxdg/work/build"
 && /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles"
 -DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local"
 -DCMAKE_INSTALL_NAME_DIR="/opt/local/lib"
 -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER="$CC"
 -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC"
 -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW
 -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON
 -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST
 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make
 -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules"
 -DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules"
 -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON
 -DCMAKE_INSTALL_RPATH="/opt/local/lib" -Wno-dev
 -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="14.0"
 -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk"
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libqtxdg/libqtxdg/work/libqtxdg-3.5.0
 :info:configure CMake Error at
 /opt/local/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230
 (message):
 :info:configure   Could NOT find GLIB (missing: GLIB_GIO_UNIX_INCLUDE_DIR)
 (found suitable
 :info:configure   version "2.78.0", minimum required is "2.41.0")
 :info:configure Call Stack (most recent call first):
 :info:configure
 /opt/local/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594
 (_FPHSA_FAILURE_MESSAGE)
 :info:configure   /opt/local/share/cmake/lxqt-build-tools/find-
 modules/FindGLIB.cmake:113 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
 :info:configure   CMakeLists.txt:26 (find_package)
 :info:configure -- Configuring incomplete, errors occurred!
 }}}

 It happens when trying to install ports {{{libqtxdg}}}, {{{rav1e}}}, and
 probably others. (Why it tries to rebuild those ports rather than pull the
 binaries from the buildbots is beyond my understanding.)

 Based on the error message, I assume the problem is either with the
 {{{cmake}}} port, or maybe with {{{glib2}}}.

 Attaching the full log, in case it helps.

-- 
Ticket URL: <https://trac.macports.org/ticket/68916>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list