Unable to build meta-robot-platform

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to build meta-robot-platform

1,235 Views
stevelarche
Contributor I

Hello


I followed the vSLAM Yocto build instructions from the following document:
[https://www.nxp.com/docs/en/application-note/AN14240.pdf]

However, the build fails with the following error message:

ERROR: fastrtps-native-2.9.1-4-r0 do_fetch: Fetcher failure: Unable to find revision 24c6b48d4541230c205b5d932a5830be9727cc34 in branch release/rolling/fastrtps even from upstream
ERROR: fastrtps-native-2.9.1-4-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/ros2-gbp/fastrtps-release;branch=release/rolling/fastrtps;protocol=https')
ERROR: Logfile of failure stored in: /Work/vSLAM/imx-yocto-bsp/imx8mp-ai-robot-humble/tmp/work/x86_64-linux/fastrtps-native/2.9.1-4-r0/temp/log.do_fetch.132923
ERROR: Task (virtual:native:/Work/vSLAM/imx-yocto-bsp/sources/meta-robot-platform/imx/meta-ros/meta-ros2-humble/generated-recipes/fastrtps/fastrtps_2.9.1-4.bb:do_fetch) failed with exit code '1'
WARNING: fastrtps-2.9.1-4-r0 do_fetch: Failed to fetch URL git://github.com/ros2-gbp/fastrtps-release;branch=release/rolling/fastrtps;protocol=https, attempting MIRRORS if available
ERROR: fastrtps-2.9.1-4-r0 do_fetch: Fetcher failure: Unable to find revision 24c6b48d4541230c205b5d932a5830be9727cc34 in branch release/rolling/fastrtps even from upstream
ERROR: fastrtps-2.9.1-4-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/ros2-gbp/fastrtps-release;branch=release/rolling/fastrtps;protocol=https')
ERROR: Logfile of failure stored in: /Work/vSLAM/imx-yocto-bsp/imx8mp-ai-robot-humble/tmp/work/armv8a-poky-linux/fastrtps/2.9.1-4-r0/temp/log.do_fetch.176255
ERROR: Task (/Work/vSLAM/imx-yocto-bsp/sources/meta-robot-platform/imx/meta-ros/meta-ros2-humble/generated-recipes/fastrtps/fastrtps_2.9.1-4.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1123 tasks of which 0 didn't need to be rerun and 2 failed.

Summary: 2 tasks failed:
virtual:native:/Work/vSLAM/imx-yocto-bsp/sources/meta-robot-platform/imx/meta-ros/meta-ros2-humble/generated-recipes/fastrtps/fastrtps_2.9.1-4.bb:do_fetch
/Work/vSLAM/imx-yocto-bsp/sources/meta-robot-platform/imx/meta-ros/meta-ros2-humble/generated-recipes/fastrtps/fastrtps_2.9.1-4.bb:do_fetch
Summary: There were 25 WARNING messages.
Summary: There were 4 ERROR messages, returning a non-zero exit code.

 

I found a few community posts from people experiencing the same issue, but none of them included a working solution.
Does anyone know what needs to be modified or fixed to resolve this?

I am attaching the log file as well.

 

Tags (1)
0 Kudos
Reply
3 Replies

1,210 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @stevelarche 

Can you share commands of your building setup?

Best Regards,
Zhiming

0 Kudos
Reply

1,201 Views
stevelarche
Contributor I

 

Hello

I followed the instructions exactly as described in the AN14240 document.
Among the three ROS versions suggested in the document, I selected ROS Humble.
The following are the commands I executed, which are identical to those in AN14240.

 

 
$ mkdir imx-yocto-bsp
$ cd imx-yocto-bsp
$ repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-kirkstone -m imx-5.15.71-2.2.0.xml
$ repo sync

$ git clone -b imx-aibot-release_v3.3 https://github.com/nxp-imx-support/meta-robot-platform.git
$ cp -dpR meta-robot-platform sources
$ ln -s sources/meta-robot-platform/imx/meta-robot/tools/setup-imx-robot.sh setup-imx-robot.sh

$ DISTRO=imx-robot-xwayland MACHINE=imx8mp-ai-robot source setup-imx-robot.sh -r humble -b imx8mp-ai-robot-humble

$ bitbake imx-robot-sdk
 
From what I found, fastrtps has been renamed to FastDDS, and it seems that the Git URLs and other related components have changed.
I tried modifying the recipe manually, but doing so caused several other issues during the build.
For cracklib_2.9.8, the build fails because the branch name has changed from master to main.
For OpenSSL 3.1.0, the patch cannot be applied and several hunks fail during the do_patch step.
 
 
 
ERROR: openssl-3.1.0.imx-r0 do_patch: Applying patch '0001-Enhance-cryptodev-s-engine-by-CAAM-public-key-crypto.patch' on target directory '/Work/vSLAM/imx-yocto-bsp/imx8mp-ai-robot-humble/tmp/work/armv8a-poky-linux/openssl/3.1.0.imx-r0/openssl-3.1.0.imx' CmdError('quilt --quiltrc /Work/vSLAM/imx-yocto-bsp/imx8mp-ai-robot-humble/tmp/work/armv8a-poky-linux/openssl/3.1.0.imx-r0/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch 0001-Enhance-cryptodev-s-engine-by-CAAM-public-key-crypto.patch patching file apps/speed.c 
patching file crypto/ec/ec_curve.c
patching file crypto/ec/ec_key.c
patching file crypto/ec/ec_local.h
patching file crypto/sm2/sm2_crypt.c
patching file crypto/sm2/sm2_sign.c
patching file engines/e_devcrypto.c
Hunk #10 FAILED at 747.
unk #11 FAILED at 774.
Hunk #12 succeeded at 808 (offset -14 lines).
...
 
It can be seen that following the environment setup exactly according to the AN14240 guide leads to issues.
Please take a look and advise.
 
Best regards
 
0 Kudos
Reply

1,192 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @stevelarche 

Please refer this case for openssl patch issue.


Best Regards,
Zhiming

0 Kudos
Reply