Unable to build meta-robot-platform

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

Unable to build meta-robot-platform

192 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

167 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @stevelarche 

Can you share commands of your building setup?

Best Regards,
Zhiming

0 Kudos
Reply

158 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

149 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @stevelarche 

Please refer this case for openssl patch issue.


Best Regards,
Zhiming

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2246816%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUnable%20to%20build%20meta-robot-platform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2246816%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EI%20followed%20the%20vSLAM%20Yocto%20build%20instructions%20from%20the%20following%20document%3A%3CBR%20%2F%3E%5B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN14240.pdf%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN14240.pdf%3C%2FA%3E%5D%3C%2FP%3E%3CP%3EHowever%2C%20the%20build%20fails%20with%20the%20following%20error%20message%3A%3C%2FP%3E%3CBLOCKQUOTE%3E%3CPRE%3EERROR%3A%20fastrtps-native-2.9.1-4-r0%20do_fetch%3A%20Fetcher%20failure%3A%20Unable%20to%20find%20revision%2024c6b48d4541230c205b5d932a5830be9727cc34%20in%20branch%20release%2Frolling%2Ffastrtps%20even%20from%20upstream%3CBR%20%2F%3EERROR%3A%20fastrtps-native-2.9.1-4-r0%20do_fetch%3A%20Bitbake%20Fetcher%20Error%3A%20FetchError('Unable%20to%20fetch%20URL%20from%20any%20source.'%2C%20'git%3A%2F%2Fgithub.com%2Fros2-gbp%2Ffastrtps-release%3Bbranch%3Drelease%2Frolling%2Ffastrtps%3Bprotocol%3Dhttps')%3CBR%20%2F%3EERROR%3A%20Logfile%20of%20failure%20stored%20in%3A%20%2FWork%2FvSLAM%2Fimx-yocto-bsp%2Fimx8mp-ai-robot-humble%2Ftmp%2Fwork%2Fx86_64-linux%2Ffastrtps-native%2F2.9.1-4-r0%2Ftemp%2Flog.do_fetch.132923%3CBR%20%2F%3EERROR%3A%20Task%20(virtual%3Anative%3A%2FWork%2FvSLAM%2Fimx-yocto-bsp%2Fsources%2Fmeta-robot-platform%2Fimx%2Fmeta-ros%2Fmeta-ros2-humble%2Fgenerated-recipes%2Ffastrtps%2Ffastrtps_2.9.1-4.bb%3Ado_fetch)%20failed%20with%20exit%20code%20'1'%3CBR%20%2F%3EWARNING%3A%20fastrtps-2.9.1-4-r0%20do_fetch%3A%20Failed%20to%20fetch%20URL%20git%3A%2F%2Fgithub.com%2Fros2-gbp%2Ffastrtps-release%3Bbranch%3Drelease%2Frolling%2Ffastrtps%3Bprotocol%3Dhttps%2C%20attempting%20MIRRORS%20if%20available%3CBR%20%2F%3EERROR%3A%20fastrtps-2.9.1-4-r0%20do_fetch%3A%20Fetcher%20failure%3A%20Unable%20to%20find%20revision%2024c6b48d4541230c205b5d932a5830be9727cc34%20in%20branch%20release%2Frolling%2Ffastrtps%20even%20from%20upstream%3CBR%20%2F%3EERROR%3A%20fastrtps-2.9.1-4-r0%20do_fetch%3A%20Bitbake%20Fetcher%20Error%3A%20FetchError('Unable%20to%20fetch%20URL%20from%20any%20source.'%2C%20'git%3A%2F%2Fgithub.com%2Fros2-gbp%2Ffastrtps-release%3Bbranch%3Drelease%2Frolling%2Ffastrtps%3Bprotocol%3Dhttps')%3CBR%20%2F%3EERROR%3A%20Logfile%20of%20failure%20stored%20in%3A%20%2FWork%2FvSLAM%2Fimx-yocto-bsp%2Fimx8mp-ai-robot-humble%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Ffastrtps%2F2.9.1-4-r0%2Ftemp%2Flog.do_fetch.176255%3CBR%20%2F%3EERROR%3A%20Task%20(%2FWork%2FvSLAM%2Fimx-yocto-bsp%2Fsources%2Fmeta-robot-platform%2Fimx%2Fmeta-ros%2Fmeta-ros2-humble%2Fgenerated-recipes%2Ffastrtps%2Ffastrtps_2.9.1-4.bb%3Ado_fetch)%20failed%20with%20exit%20code%20'1'%3CBR%20%2F%3ENOTE%3A%20Tasks%20Summary%3A%20Attempted%201123%20tasks%20of%20which%200%20didn't%20need%20to%20be%20rerun%20and%202%20failed.%3CBR%20%2F%3E%3CBR%20%2F%3ESummary%3A%202%20tasks%20failed%3A%3CBR%20%2F%3E%20%20virtual%3Anative%3A%2FWork%2FvSLAM%2Fimx-yocto-bsp%2Fsources%2Fmeta-robot-platform%2Fimx%2Fmeta-ros%2Fmeta-ros2-humble%2Fgenerated-recipes%2Ffastrtps%2Ffastrtps_2.9.1-4.bb%3Ado_fetch%3CBR%20%2F%3E%20%20%2FWork%2FvSLAM%2Fimx-yocto-bsp%2Fsources%2Fmeta-robot-platform%2Fimx%2Fmeta-ros%2Fmeta-ros2-humble%2Fgenerated-recipes%2Ffastrtps%2Ffastrtps_2.9.1-4.bb%3Ado_fetch%3CBR%20%2F%3ESummary%3A%20There%20were%2025%20WARNING%20messages.%3CBR%20%2F%3ESummary%3A%20There%20were%204%20ERROR%20messages%2C%20returning%20a%20non-zero%20exit%20code.%3C%2FPRE%3E%3C%2FBLOCKQUOTE%3E%3CBR%20%2F%3E%3CP%3EI%20found%20a%20few%20community%20posts%20from%20people%20experiencing%20the%20same%20issue%2C%20but%20none%20of%20them%20included%20a%20working%20solution.%3CBR%20%2F%3EDoes%20anyone%20know%20what%20needs%20to%20be%20modified%20or%20fixed%20to%20resolve%20this%3F%3C%2FP%3E%3CP%3EI%20am%20attaching%20the%20log%20file%20as%20well.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2248179%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Unable%20to%20build%20meta-robot-platform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2248179%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F157309%22%20target%3D%22_blank%22%3E%40stevelarche%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20refer%20this%20case%20for%20openssl%20patch%20issue.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2248058%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Unable%20to%20build%20meta-robot-platform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2248058%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CBR%20%2F%3E%3CP%3EHello%3C%2FP%3E%3CP%3EI%20followed%20the%20instructions%20exactly%20as%20described%20in%20the%20AN14240%20document.%3CBR%20%2F%3EAmong%20the%20three%20ROS%20versions%20suggested%20in%20the%20document%2C%20I%20selected%26nbsp%3B%3CSTRONG%3EROS%20Humble%3C%2FSTRONG%3E.%3CBR%20%2F%3EThe%20following%20are%20the%20commands%20I%20executed%2C%20which%20are%20identical%20to%20those%20in%20AN14240.%3C%2FP%3E%3CBR%20%2F%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CPRE%3E%24%20mkdir%20imx-yocto-bsp%3CBR%20%2F%3E%24%20cd%20imx-yocto-bsp%3CBR%20%2F%3E%24%20repo%20init%20-u%20https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-manifest%20-b%20imx-linux-kirkstone%20-m%20imx-5.15.71-2.2.0.xml%3CBR%20%2F%3E%24%20repo%20sync%3CBR%20%2F%3E%3CBR%20%2F%3E%24%20git%20clone%20-b%20imx-aibot-release_v3.3%20https%3A%2F%2Fgithub.com%2Fnxp-imx-support%2Fmeta-robot-platform.git%3CBR%20%2F%3E%24%20cp%20-dpR%20meta-robot-platform%20sources%3CBR%20%2F%3E%24%20ln%20-s%20sources%2Fmeta-robot-platform%2Fimx%2Fmeta-robot%2Ftools%2Fsetup-imx-robot.sh%20setup-imx-robot.sh%3CBR%20%2F%3E%3CBR%20%2F%3E%24%20DISTRO%3Dimx-robot-xwayland%20MACHINE%3Dimx8mp-ai-robot%20source%20setup-imx-robot.sh%20-r%20humble%20-b%20imx8mp-ai-robot-humble%3CBR%20%2F%3E%3CBR%20%2F%3E%24%20bitbake%20imx-robot-sdk%3C%2FPRE%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CDIV%3EFrom%20what%20I%20found%2C%26nbsp%3B%3CSTRONG%3Efastrtps%20has%20been%20renamed%20to%20FastDDS%3C%2FSTRONG%3E%2C%20and%20it%20seems%20that%20the%20Git%20URLs%20and%20other%20related%20components%20have%20changed.%3CBR%20%2F%3EI%20tried%20modifying%20the%20recipe%20manually%2C%20but%20doing%20so%20caused%20several%20other%20issues%20during%20the%20build.%3C%2FDIV%3E%3CDIV%3EFor%26nbsp%3B%3CSTRONG%3Ecracklib_2.9.8%3C%2FSTRONG%3E%2C%20the%20build%20fails%20because%20the%20branch%20name%20has%20changed%20from%26nbsp%3B%3CSTRONG%3Emaster%3C%2FSTRONG%3E%26nbsp%3Bto%26nbsp%3B%3CSTRONG%3Emain%3C%2FSTRONG%3E.%3C%2FDIV%3E%3CDIV%3EFor%26nbsp%3B%3CSTRONG%3EOpenSSL%203.1.0%3C%2FSTRONG%3E%2C%20the%20patch%20cannot%20be%20applied%20and%20several%20hunks%20fail%20during%20the%26nbsp%3Bdo_patch%26nbsp%3Bstep.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CPRE%3EERROR%3A%20openssl-3.1.0.imx-r0%20do_patch%3A%20Applying%20patch%20'0001-Enhance-cryptodev-s-engine-by-CAAM-public-key-crypto.patch'%20on%20target%20directory%20'%2FWork%2FvSLAM%2Fimx-yocto-bsp%2Fimx8mp-ai-robot-humble%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fopenssl%2F3.1.0.imx-r0%2Fopenssl-3.1.0.imx'%20CmdError('quilt%20--quiltrc%20%2FWork%2FvSLAM%2Fimx-yocto-bsp%2Fimx8mp-ai-robot-humble%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fopenssl%2F3.1.0.imx-r0%2Frecipe-sysroot-native%2Fetc%2Fquiltrc%20push'%2C%200%2C%20'stdout%3A%20Applying%20patch%200001-Enhance-cryptodev-s-engine-by-CAAM-public-key-crypto.patch%20patching%20file%20apps%2Fspeed.c%20%3CBR%20%2F%3Epatching%20file%20crypto%2Fec%2Fec_curve.c%20%3CBR%20%2F%3Epatching%20file%20crypto%2Fec%2Fec_key.c%20%3CBR%20%2F%3Epatching%20file%20crypto%2Fec%2Fec_local.h%20%3CBR%20%2F%3Epatching%20file%20crypto%2Fsm2%2Fsm2_crypt.c%20%3CBR%20%2F%3Epatching%20file%20crypto%2Fsm2%2Fsm2_sign.c%20%3CBR%20%2F%3Epatching%20file%20engines%2Fe_devcrypto.c%20%3CBR%20%2F%3EHunk%20%2310%20FAILED%20at%20747.%20%3CBR%20%2F%3Eunk%20%2311%20FAILED%20at%20774.%20%3CBR%20%2F%3EHunk%20%2312%20succeeded%20at%20808%20(offset%20-14%20lines).%3CBR%20%2F%3E...%3C%2FPRE%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%3EIt%20can%20be%20seen%20that%20following%20the%20environment%20setup%20exactly%20according%20to%20the%20AN14240%20guide%20leads%20to%20issues.%3CBR%20%2F%3EPlease%20take%20a%20look%20and%20advise.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EBest%20regards%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2247964%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Unable%20to%20build%20meta-robot-platform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2247964%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F157309%22%20target%3D%22_blank%22%3E%40stevelarche%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ECan%20you%20share%20commands%20of%20your%20building%20setup%3F%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E