ycm-cmake-modules icon indicating copy to clipboard operation
ycm-cmake-modules copied to clipboard

A superbuild configured with -DNON_INTERACTIVE_BUILD:BOOL=ON can't be re-configured after the first configure

Open traversaro opened this issue 11 months ago • 1 comments

processing triggers for fontconfig (2.13.1-4.2ubuntu5) ...
-- Found Python3: /usr/bin/python3.10 (found version "3.10.12") found components: Interpreter Development Development.Module Development.Embed 
<string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
-- Found SWIG: /usr/bin/swig4.0 (found version "4.0.2") found components: python 
-- YCM found in /home/icub/projects/robotology-superbuild/build/install/share/YCM.
-- Package YARP not found. Will be downloaded and built.
-- Package yarp-ros not found. Will be downloaded and built.
-- Package yarp-devices-ros not found. Will be downloaded and built.
-- Package ICUB not found. Will be downloaded and built.
-- Package ICUBcontrib not found. Will be downloaded and built.
-- Package icub-models not found. Will be downloaded and built.
-- Package ergocub-software not found. Will be downloaded and built.
-- Package robots-configuration not found. Will be downloaded and built.
-- Package icub-firmware-build not found. Will be downloaded and built.
-- Package yarp-device-xsensmt not found. Will be downloaded and built.
-- ROBOTOLOGY_SUPERBUILD_PYTHON_INSTALL_DIR_SETUP_SH: lib/python3/dist-packages
-- The following RUNTIME packages have been found:

 * Git

-- The following OPTIONAL packages have been found:

 * OpenCV

-- The following RECOMMENDED packages have been found:

 * YCM (required version >= 0.14.0), A collection of CMake modules and utilities for YARP and friends, <https://github.com/robotology/ycm>
   Used by the build system

-- The following REQUIRED packages have been found:

 * Python3
 * SWIG

-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    ROBOTOLOGY_ENABLE_DYNAMICS_FULL


-- Build files have been written to: /home/icub/projects/robotology-superbuild/build
[  1%] Performing update step for 'YCM'
HEAD is up to date.
CMake Error at /home/icub/projects/robotology-superbuild/build/src/YCM/CMakeFiles/YCMTmp/YCM-gitupdate.cmake:157 (message):
  Failed to update submodules in:
  '/home/icub/projects/robotology-superbuild/src/YCM/YCM'


gmake[2]: *** [CMakeFiles/YCM.dir/build.make:135: src/YCM/CMakeFiles/YCMStamp/YCM-update] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:874: CMakeFiles/YCM.dir/all] Error 2
gmake: *** [Makefile:101: all] Error 2
The command '/bin/sh -c cd ${PROJECTS_DIR} &&    cd robotology-superbuild &&    sudo ./scripts/install_apt_python_dependencies.sh &&    cd build &&      cmake .         -DNON_INTERACTIVE_BUILD:BOOL=ON         -DFETCHCONTENT_QUIET:BOOL=ON         -DROBOTOLOGY_ENABLE_CORE:BOOL=ON         -DROBOTOLOGY_USES_PYTHON:BOOL=ON         -DROBOTOLOGY_ENABLE_DYNAMICS_FULL:BOOL=ON         -DROBOTOLOGY_ENABLE_ICUB_HEAD:BOOL=ON         -DROBOTOLOGY_USES_GAZEBO=OFF         -DYCM_USE_CMAKE_PROPOSED:BOOL=ON         -DFETCHCONTENT_QUIET:BOOL=ON        &&    cmake --build . -- ${CMAKE_EXTRA_OPTIONS}' returned a non-zero code: 2

traversaro avatar Jan 17 '25 15:01 traversaro

The solution is to remove the checks for git name and mail being set in https://github.com/robotology/ycm-cmake-modules/pull/472, and then eventually remove the problematic option https://github.com/robotology/ycm-cmake-modules/issues/473 .

traversaro avatar Jan 17 '25 15:01 traversaro