Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/ament_cmake.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP3-aarch64-1791520595.603524/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/ament_cmake.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/ament_cmake-2.9.2-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/ament_cmake.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP3-aarch64-1791520595.603524/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/ament_cmake.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/ament_cmake-2.9.2-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/ament_cmake.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP3-aarch64-1791520595.603524/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/ament_cmake.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.U8AAOe + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ament_cmake-2.9.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ament_cmake-2.9.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ament_cmake-2.9.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.MTIgJV + umask 022 + cd /builddir/build/BUILD + cd ament_cmake-2.9.2 + '[' -f /opt/ros/humble/setup.sh ']' + true + export CMAKE_PREFIX_PATH=/builddir/build/BUILDROOT/ament_cmake-2.9.2-1.aarch64/opt/ros/humble + CMAKE_PREFIX_PATH=/builddir/build/BUILDROOT/ament_cmake-2.9.2-1.aarch64/opt/ros/humble + export AMENT_PREFIX_PATH=/builddir/build/BUILDROOT/ament_cmake-2.9.2-1.aarch64/opt/ros/humble + AMENT_PREFIX_PATH=/builddir/build/BUILDROOT/ament_cmake-2.9.2-1.aarch64/opt/ros/humble + export PYTHONPATH=/opt/ros/humble/lib/python3.11/site-packages + PYTHONPATH=/opt/ros/humble/lib/python3.11/site-packages + export PKG_CONFIG_PATH=/opt/ros/humble/lib/pkgconfig::/usr/lib64/pkgconfig:/usr/share/pkgconfig + PKG_CONFIG_PATH=/opt/ros/humble/lib/pkgconfig::/usr/lib64/pkgconfig:/usr/share/pkgconfig + SUBPKGS=' ament_cmake_core ament_cmake_export_definitions ament_cmake_export_dependencies ament_cmake_export_include_directories ament_cmake_export_libraries ament_cmake_export_link_flags ament_cmake_export_targets ament_cmake_gen_version_h ament_cmake_gmock ament_cmake_gtest ament_cmake_include_directories ament_cmake_libraries ament_cmake_python ament_cmake_target_dependencies ament_cmake_version ament_cmake_vendor_package ament_cmake_test ament_cmake ament_cmake_google_benchmark ament_cmake_pytest ament_cmake_auto ament_cmake_python_test ' ===== building ament_cmake_core ===== + for pkg in $SUBPKGS + echo '===== building ament_cmake_core =====' + cmake -S ament_cmake_core -B .obj/ament_cmake_core -DCMAKE_INSTALL_PREFIX=/opt/ros/humble -DCMAKE_PREFIX_PATH=/builddir/build/BUILDROOT/ament_cmake-2.9.2-1.aarch64/opt/ros/humble -DAMENT_PREFIX_PATH=/builddir/build/BUILDROOT/ament_cmake-2.9.2-1.aarch64/opt/ros/humble -DBUILD_TESTING=OFF -DTESTING=OFF -DCMAKE_SUPPRESS_REGENERATION=ON -DSETUPTOOLS_DEB_LAYOUT=OFF -UINCLUDE_INSTALL_DIR -ULIB_INSTALL_DIR -USYSCONF_INSTALL_DIR -USHARE_INSTALL_PREFIX -ULIB_SUFFIX '-DCMAKE_C_FLAGS=-O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' '-DCMAKE_CXX_FLAGS=-O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' -G 'Unix Makefiles' -- Found Python3: /usr/bin/python3 (found version "3.11.6") found components: Interpreter -- ament_cmake_core 2.9.2 Traceback (most recent call last): File "/builddir/build/BUILD/ament_cmake-2.9.2/ament_cmake_core/cmake/package_templates/templates_2_cmake.py", line 21, in from ament_package.templates import get_environment_hook_template_path ModuleNotFoundError: No module named 'ament_package' CMake Error at ament_cmake_package_templates-extras.cmake:41 (message): execute_process(/usr/bin/python3 /builddir/build/BUILD/ament_cmake-2.9.2/ament_cmake_core/cmake/package_templates/templates_2_cmake.py /builddir/build/BUILD/ament_cmake-2.9.2/.obj/ament_cmake_core/ament_cmake_package_templates/templates.cmake) returned error code 1 Call Stack (most recent call first): CMakeLists.txt:19 (include) -- Configuring incomplete, errors occurred! error: Bad exit status from /var/tmp/rpm-tmp.MTIgJV (%build) Bad exit status from /var/tmp/rpm-tmp.MTIgJV (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/ament_cmake.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/ament_cmake.spec