ros / meta-ros

OpenEmbedded Layers for ROS 1 and ROS 2
MIT License
387 stars 253 forks source link

Failed to compile: zstd-vendor #1202

Open henaiguo opened 2 months ago

henaiguo commented 2 months ago
ERROR: zstd-vendor-0.15.11-1-r0 do_patch: Applying patch '0001-CMakeLists.txt-prevent-building-zstd-with-ExternalPr.patch' on target directory '/home/drill/workspace/system/yocto/poky/build/tmp-glibc/work/corei7-64-oe-linux/zstd-vendor/0.15.11-1-r0/git'
CmdError('quilt --quiltrc /home/drill/workspace/system/yocto/poky/build/tmp-glibc/work/corei7-64-oe-linux/zstd-vendor/0.15.11-1-r0/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch 0001-CMakeLists.txt-prevent-building-zstd-with-ExternalPr.patch
patching file CMakeLists.txt
patching file cmake_minimum_required_2.8.12.patch
patching file no_internal_headers.patch
Hunk #1 FAILED at 1.
Not deleting file no_internal_headers.patch as content differs from patch
1 out of 1 hunk FAILED -- rejects in file no_internal_headers.patch
Patch 0001-CMakeLists.txt-prevent-building-zstd-with-ExternalPr.patch does not apply (enforce with -f)

stderr: ')
ERROR: Logfile of failure stored in: /home/drill/workspace/system/yocto/poky/build/tmp-glibc/work/corei7-64-oe-linux/zstd-vendor/0.15.11-1-r0/temp/log.do_patch.38705
ERROR: Task (/home/drill/workspace/system/yocto/meta/meta-ros/meta-ros2-humble/generated-recipes/rosbag2/zstd-vendor_0.15.11-1.bb:do_patch) failed with exit code '1'
System: ubuntu 22.04
branch: kirkstone

I noticed a similar issue before, but I still failed to compile using the latest code under the kirstone branch

henaiguo commented 2 months ago

Build Configuration: BB_VERSION = "2.0.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "ubuntu-22.04" TARGET_SYS = "x86_64-oe-linux" MACHINE = "intel-corei7-64" DISTRO = "ros2" DISTRO_VERSION = "2.humble.2024-06-20.3-0" TUNE_FEATURES = "m64 corei7" TARGET_FPU = "" DISTRO_NAME = "Robot Operating System 2 (ROS 2) with OpenEmbedded Linux" ROS_DISTRO = "humble" ROS_VERSION = "2" ROS_PYTHON_VERSION = "3" meta
meta-poky
meta-yocto-bsp = "kirkstone:93ef091fb2be38866a41bf87088625fbdfb69027" meta-intel = "kirkstone:bb7c7b0f448ab6541ab42a316dfeff1f7726252f" meta-oe
meta-python
meta-perl = "kirkstone:52ecd66835dcfd8b4e55c9cb6325908ccea6a4e7" meta-qt5 = "kirkstone:644ebf220245bdc06e7696ccc90acc97a0dd2566" meta-ros-common
meta-ros2
meta-ros2-humble = "kirkstone:b4db6314bae1c78498158e267200a9c15a739cad"

jiaxshi commented 2 months ago

Hi I met the same error, you can refer to #1198

henaiguo commented 2 months ago

@jiaxshi 感谢回复(我直接中文了) 我是初次接触yocto以及meta-ros 我注意到kirkstone分支下的ros2bag中关于zstd-vendor的只有一个文件zstd-vendor_0.15.11-1.bb,结合 https://github.com/ros/meta-ros/pull/1198 中的内容,是手动将zstd-vendor_0.15.11-1.bb删除即可吗?

jiaxshi commented 2 months ago

@jiaxshi 感谢回复(我直接中文了) 我是初次接触yocto以及meta-ros 我注意到kirkstone分支下的ros2bag中关于zstd-vendor的只有一个文件zstd-vendor_0.15.11-1.bb,结合 #1198 中的内容,是手动将zstd-vendor_0.15.11-1.bb删除即可吗?

delete meta-ros2-humble/recipes-bbappends/rosbag2/zstd-vendor*

grahas commented 6 days ago

🔥 Thank you, this fixed it for me