From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 333E2E7717D for ; Fri, 13 Dec 2024 09:23:12 +0000 (UTC) Subject: issue while adding spinnaker package to Yocto build for core-image-sato To: yocto@lists.yoctoproject.org From: rajesh.d@mindteck.com X-Originating-Location: Bengaluru, Karnataka, IN (14.142.4.2) X-Originating-Platform: Linux Chrome 131 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Fri, 13 Dec 2024 01:23:06 -0800 Message-ID: Content-Type: multipart/alternative; boundary="m3s530bDpRnruWk18gDG" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 13 Dec 2024 09:23:12 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/64441 --m3s530bDpRnruWk18gDG Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I am working on a project for the *intel-corei7-x86_64* hardware board, bui= lding the Yocto image *core-image-sato*. While trying to add the *spinnaker package* to the Yocto build, I encounter= ed the following error during the build process for *core-image-sato:* im u= sing meta-ros layer for including this spinnaker package. `user@LTB-IBE2590:~/Mindteck_Projects/Irilic/kirkstone_yocto_AIMB288E/build= $ bitbake core-image-sato Loading cache: 100 % | ####################################################= ###########################################################################= ########################################| Time: 0:00:01 Loaded 8602 entries from dependency cache. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION =3D "2.0.0" BUILD_SYS =3D "x86_64-linux" NATIVELSBSTRING =3D "universal" TARGET_SYS =3D "x86_64-poky-linux" MACHINE =3D "intel-corei7-64" DISTRO =3D "poky" DISTRO_VERSION =3D "4.0.23" TUNE_FEATURES =3D "m64 corei7" TARGET_FPU =3D "" DISTRO_NAME =3D "Poky (Yocto Project Reference Distro)" ROS_DISTRO =3D "humble" ROS_VERSION =3D "2" ROS_PYTHON_VERSION =3D "3" meta =20 meta-poky =20 meta-yocto-bsp =3D "HEAD:0bffb5eed1e8c9469b9c6e0d77f959dc9ade9c6a" meta-intel =3D "HEAD:8514c60ac1a9a17ba20b17fa176119728a91dcf9" meta-oe =20 meta-python =20 meta-multimedia =20 meta-networking =20 meta-filesystems =3D "kirkstone:4ad41baed6236d499804cbfc4f174042d84fce9= 7" meta-qt5 =3D "HEAD:644ebf220245bdc06e7696ccc90acc97a0dd2566" meta-freescale =3D "HEAD:c525e0c19bdc46d45f71873b5f286f49abb69418" meta-freescale-distro =3D "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253" meta-ros1-noetic =20 meta-ros1 =20 meta-ros-common =20 meta-ros2-humble =20 meta-ros2 =3D "kirkstone:72f70f7c1147197bd1e447c03187628b4b62a73= 8" Initialising tasks: 100 % | ###############################################= ###########################################################################= ########################################| Time: 0:00:06 Sstate summary: Wanted 1297 Local 442 Mirrors 0 Missed 855 Current 2965 ( 3= 4 % match , 79 % complete) NOTE: Executing Tasks ERROR: ament-cmake-core-native- 1.3.10 - 1 -r0 do_configure: ExecutionError= ( '/home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AIMB288E/build/tmp/w= ork/x86_64-linux/ament-cmake-core-native/1.3.10-1-r0/temp/run.do_configure.= 3890' , 1 , None , None ) ERROR: Logfile of failure stored in : /home/user/Mindteck_Projects/Irilic/k= irkstone_yocto_AIMB288E/build/tmp/work/x86_64-linux/ament-cmake-core-native= / 1.3.10 - 1 -r0/temp/log.do_configure.3890 Log data follows: | DEBUG: Executing python function extend_recipe_sysroot | NOTE: Direct dependencies are [ '/home/user/Mindteck_Projects/Irilic/kirk= stone_yocto_AIMB288E/sources/poky/meta/recipes-devtools/cmake/cmake-native_= 3.22.3.bb:do_populate_sysroot' , '/home/user/Mindteck_Projects/Irilic/kirks= tone_yocto_AIMB288E/sources/poky/meta/recipes-devtools/quilt/quilt-native_0= .67.bb:do_populate_sysroot' , 'virtual:native:/home/user/Mindteck_Projects/= Irilic/kirkstone_yocto_AIMB288E/sources/meta-ros/meta-ros-common/recipes-in= frastructure/python/python3-catkin-pkg_0.4.24.bb:do_populate_sysroot' , 'vi= rtual:native:/home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AIMB288E/s= ources/meta-ros/meta-ros2-humble/generated-recipes/ament-package/ament-pack= age_0.14.0-4.bb:do_populate_sysroot' , 'virtual:native:/home/user/Mindteck_= Projects/Irilic/kirkstone_yocto_AIMB288E/sources/poky/meta/recipes-devtools= /ninja/ninja_1.10.2.bb:do_populate_sysroot' , 'virtual:native:/home/user/Mi= ndteck_Projects/Irilic/kirkstone_yocto_AIMB288E/sources/poky/meta/recipes-d= evtools/python/python3_3.10.15.bb:do_populate_sysroot' ] | NOTE: Installed into sysroot: [] | NOTE: Skipping as already exists in sysroot: [ 'cmake-native' , 'quilt-na= tive' , 'python3-catkin-pkg-native' , 'ament-package-native' , 'ninja-nativ= e' , 'python3-native' , 'curl-native' , 'zstd-native' , 'zlib-native' , 'nc= urses-native' , 'bzip2-native' , 'xz-native' , 'libtool-native' , 'libnsl2-= native' , 'readline-native' , 'libtirpc-native' , 'openssl-native' , 'util-= linux-libuuid-native' , 'gdbm-native' , 'libffi-native' , 'sqlite3-native' = , 'python3-setuptools-native' , 'python3-importlib-metadata-native' , 're2c= -native' , 'python3-wheel-native' , 'python3-pyparsing-native' , 'python3-i= nstaller-native' , 'gettext-minimal-native' , 'texinfo-dummy-native' , 'per= l-native' , 'python3-setuptools-scm-native' , 'python3-toml-native' , 'pyth= on3-pathlib2-native' , 'python3-zipp-native' , 'python3-flit-core-native' ,= 'unzip-native' , 'make-native' , 'python3-packaging-native' , 'python3-tom= li-native' , 'python3-six-native' , 'python3-more-itertools-native' ] | DEBUG: Python function extend_recipe_sysroot finished | DEBUG: Executing shell function do_configure | -- Found Python3: /home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AIM= B288E/build/tmp/work/x86_64-linux/ament-cmake-core-native/ 1.3.10 - 1 -r0/r= ecipe-sysroot-native/usr/ bin /python3-native/python3 (found version "3.10.= 15" ) found components: Interpreter | WARNING: Package "%s" has newlines in the description | -- ament_cmake_core 1.3.10 | Traceback (most recent call last): | File "/home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AIMB288E/buil= d/tmp/work/x86_64-linux/ament-cmake-core-native/1.3.10-1-r0/git/cmake/packa= ge_templates/templates_2_cmake.py" , line 21 , in | from ament_package.templates import get_environment_hook_template_pat= h | ModuleNotFoundError: No module named 'ament_package' | CMake Error at ament_cmake_package_templates-extras.cmake: 41 (message): |=20 | execute_process(/home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AIM= B288E/build/tmp/work/x86_64-linux/ament-cmake-core-native/ 1.3.10 - 1 -r0/r= ecipe-sysroot-native/usr/ bin /python3-native/python3 | /home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AIMB288E/build/tmp/= work/x86_64-linux/ament-cmake-core-native/ 1.3.10 - 1 -r0/git/cmake/package= _templates/templates_2_cmake.py | /home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AIMB288E/build/tmp/= work/x86_64-linux/ament-cmake-core-native/ 1.3.10 - 1 -r0/build/ament_cmake= _package_templates/templates.cmake) | returned error code 1 | Call Stack (most recent call first): | CMakeLists.txt: 19 (include) |=20 |=20 | -- Configuring incomplete, errors occurred! | See also "/home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AIMB288E/bu= ild/tmp/work/x86_64-linux/ament-cmake-core-native/1.3.10-1-r0/build/CMakeFi= les/CMakeOutput.log". | WARNING: exit code 1 from a shell command. ERROR: Task (virtual:native:/home/user/Mindteck_Projects/Irilic/kirkstone_y= octo_AIMB288E/sources/meta-ros/meta-ros2-humble/generated-recipes/ament-cma= ke/ament-cmake-core_1.3.10 - 1. bb:do_configure) failed with exit code '1' NOTE: Tasks Summary: Attempted 1131 tasks of which 1126 didn 't need to be = rerun and 1 failed. Summary: 1 task failed: virtual:native:/home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AIMB288= E/sources/meta-ros/meta-ros2-humble/generated-recipes/ament-cmake/ament-cma= ke-core_1.3.10-1.bb:do_configure Summary: There was 1 ERROR message, returning a non-zero exit code. I noticed the key error is: ament-cmake-core-native- 1.3.10 - 1 -r0 do_configure: ExecutionError ModuleNotFoundError: No module named 'ament_package' =20 To resolve this, I attempted to build the ament-package using the command: bitbake ament-package =20 bitbake ament-cmake-core-native bitbake core-image-sato Afterward, I retried building core-image-sato, but the result remained unch= anged, and the error persists. 1: How can I resolve the missing ament_package module error? 2: Is there an additional step required to ensure the spinnaker package int= egrates successfully into the Yocto build? Any guidance would be greatly appreciated. Thank you in advance! --m3s530bDpRnruWk18gDG Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

I am = working on a project for the intel-corei7-x86_64 hardware board, building = the Yocto image core-image= -sato.

While= trying to add the spinnak= er package to the Yocto build, I encountered the= following error during the build process for core-image-sato: im using me= ta-ros layer for including this spinnaker package.

`user@LTB-IBE2590:~/M=
indteck_Projects/Irilic/kirkstone_yocto_AIMB288E/build$ bitbake core-image-=
sato
Loading cache: 100% |####################=
###########################################################################=
########################################################################| T=
ime: 0:00:01
Loaded 8602 entries from dependenc=
y cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           =3D "2.0.0"
BUILD_SYS            =3D "x86_64-linux"
NATIVELSBSTRING      =3D "universal"
TARGET_SYS           =3D "x86_64-poky-linux"
MACHINE              =3D "intel-corei7-64"
DISTRO               =3D "poky"
DISTRO_VERSION       =3D "4.0.23"
TUNE_FEATURES        =3D "m64 corei7"
TARGET_FPU           =3D ""
DISTRO_NAME          =3D "Poky (Yocto Project Reference Distro=
)"
ROS_DISTRO           =3D "humble"
ROS_VERSION          =3D "2"
ROS_PYTHON_VERSION   =3D "3"
meta                =20
meta-poky           =20
meta-yocto-bsp       =3D "HEAD:0bffb5eed1e8c9469b9c6e0d77f959d=
c9ade9c6a"
meta-intel           =3D "HEAD:8514c60ac1a9a17ba20b17fa1761197=
28a91dcf9"
meta-oe             =20
meta-python         =20
meta-multimedia     =20
meta-networking     =20
meta-filesystems     =3D "kirkstone:4ad41baed6236d499804cbfc4f=
174042d84fce97"
meta-qt5             =3D "HEAD:644ebf220245bdc06e7696ccc90acc9=
7a0dd2566"
meta-freescale       =3D "HEAD:c525e0c19bdc46d45f71873b5f286f4=
9abb69418"
meta-freescale-distro =3D "HEAD:d5bbb487b2816dfc74984a78b67f73=
61ce404253"
meta-ros1-noetic    =20
meta-ros1           =20
meta-ros-common     =20
meta-ros2-humble    =20
meta-ros2            =3D "kirkstone:72f70f7c1147197bd1e447c031=
87628b4b62a738"

Initialising tasks: 100% |###############=
###########################################################################=
########################################################################| T=
ime: 0:00:06
Sstate summary: Wanted 1297 Local 442 Mirrors 0 Missed 855 Current=
 2965 (34% match, 79% complete)
NOTE: Executing Tasks
ERROR: ament-cmake-core-native-1.3.10-1-r0 do_configure: ExecutionError('/=
home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AIMB288E/build/tmp/work/=
x86_64-linux/ament-cmake-core-native/1.3.10-1-r0/temp/run.do_configure.3890=
', 1, None, No=
ne)
ERROR: Logfile of failure stored in: /home/user/Mindtec=
k_Projects/Irilic/kirkstone_yocto_AIMB288E/build/tmp/work/x86_64-linux/amen=
t-cmake-core-native/1.3.10-1-r0/temp/log.do_configure.3890
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/user/Mindteck_Projects=
/Irilic/kirkstone_yocto_AIMB288E/sources/poky/meta/recipes-devtools/cmake/c=
make-native_3.22.3.bb:do_populate_sysroot', '/home/user=
/Mindteck_Projects/Irilic/kirkstone_yocto_AIMB288E/sources/poky/meta/recipe=
s-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', 'virtual:native:/home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AI=
MB288E/sources/meta-ros/meta-ros-common/recipes-infrastructure/python/pytho=
n3-catkin-pkg_0.4.24.bb:do_populate_sysroot', 'virtual:=
native:/home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AIMB288E/sources=
/meta-ros/meta-ros2-humble/generated-recipes/ament-package/ament-package_0.=
14.0-4.bb:do_populate_sysroot', 'virtual:native:/home/u=
ser/Mindteck_Projects/Irilic/kirkstone_yocto_AIMB288E/sources/poky/meta/rec=
ipes-devtools/ninja/ninja_1.10.2.bb:do_populate_sysroot', 'virtual:native:/home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AIMB=
288E/sources/poky/meta/recipes-devtools/python/python3_3.10.15.bb:do_popula=
te_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['cmake-native', 'quilt-native=
', 'python3-catkin-pkg-native', 'am=
ent-package-native', 'ninja-native', 'curl-native', 'zlib-native', 'nc=
urses-native', 'bzip2-native', 'xz-=
native', 'libtool-native', 'libnsl2=
-native', 'readline-native', 'libti=
rpc-native', 'openssl-native', 'uti=
l-linux-libuuid-native', 'gdbm-native', 'libffi-native', 'sqlite3-native', 'python3-setuptools-native', 'python3-importlib-m=
etadata-native', 're2c-native', 'py=
thon3-wheel-native', 'python3-pyparsing-native',=
 'python3-installer-native', 'gettext-mini=
mal-native', 'texinfo-dummy-native', 'python3-setuptools-scm-native'=
, 'python3-toml-native', 'python3-pathlib2=
-native', 'python3-zipp-native', 'p=
ython3-flit-core-native', 'unzip-native', 'make-native', 'python3-packaging-native'=
, 'python3-tomli-native', 'python3-six-nat=
ive', 'python3-more-itertools-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_configure
| -- Found Python3: /home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AIM=
B288E/build/tmp/work/x86_64-linux/ament-cmake-core-native/1.3=
.10-1-r0/recipe-sysroot-na=
tive/usr/bin/python3-native/python3 (found version "3.10.15") found components: Interpreter
| WARNING: Package "%s" has newlines in the description
| -- ament_cmake_core 1.3.10
| Traceback (most recent call last):
|   File "/home/user/Mindteck_Projects/Irilic/kirkstone_yocto_=
AIMB288E/build/tmp/work/x86_64-linux/ament-cmake-core-native/1.3.10-1-r0/gi=
t/cmake/package_templates/templates_2_cmake.py", line =
21, in <module>
|     from ament_package.templates import<=
/span> get_environment_hook_template_path
| ModuleNotFoundError: No module named 'ament_package'
| CMake Error at ament_cmake_package_templates-extras.cmake:4=
1 (message):
|=20
|   execute_process(/home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AIM=
B288E/build/tmp/work/x86_64-linux/ament-cmake-core-native/1.3=
.10-1-r0/recipe-sysroot-na=
tive/usr/bin/python3-native/python3
|   /home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AIMB288E/build/tmp/=
work/x86_64-linux/ament-cmake-core-native/1.3.10-1-r0/git/cmake/package_templates/templ=
ates_2_cmake.py
|   /home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AIMB288E/build/tmp/=
work/x86_64-linux/ament-cmake-core-native/1.3.10-1-r0/build/ament_cmake_package_templat=
es/templates.cmake)
|   returned error code 1
| Call Stack (most recent call first):
|   CMakeLists.txt:19 (include)
|=20
|=20
| -- Configuring incomplete, errors occurred!
| See also "/home/user/Mindteck_Projects/Irilic/kirkstone_yoct=
o_AIMB288E/build/tmp/work/x86_64-linux/ament-cmake-core-native/1.3.10-1-r0/=
build/CMakeFiles/CMakeOutput.log".
| WARNING: exit code 1 from a shel=
l command.
ERROR: Task (virtual:native:/home/user/Mindteck_Projects/Irilic/kirkstone_y=
octo_AIMB288E/sources/meta-ros/meta-ros2-humble/generated-recipes/ament-cma=
ke/ament-cmake-core_1.3.10-1.bb:do_configure) failed with exit code=
 '1'
NOTE: Tasks Summary: Attempted 1131 tasks of which 1126 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  virtual:native:/home/user/Mindteck_Projects/Irilic/kirkstone_yocto_AIMB28=
8E/sources/meta-ros/meta-ros2-humble/generated-recipes/ament-cmake/ament-cm=
ake-core_1.3.10-1.bb:do_configure
Summary: There was 1 ERROR message, returning a non-zero exit code.<=
/code>


I not= iced the key error is:

ament-cmake-core-nati=
ve-1.3.10-1-=
r0 do_configure: ExecutionError

ModuleNotFoundError: No module named 'ament_package' =
=20

To re= solve this, I attempted to build the ament-package using the command:

bitbake ament-package=
 =20
bitbake ament-cmake-core-native
bitbake core-image-sato

After= ward, I retried building core-image-sato, but the result remained unchanged= , and the error persists.

1: Ho= w can I resolve the missing ament_package module error?

2: Is= there an additional step required to ensure the spinnaker package integrat= es successfully into the Yocto build?

Any guidance wo= uld be greatly appreciated. Thank you in advance!

--m3s530bDpRnruWk18gDG--