Wind River Support Network

HomeDefectsLIN1021-10543
Fixed

LIN1021-10543 : cmake-native: Fail to build when setup with extended tools

Created: Jul 25, 2024    Updated: Nov 25, 2024
Resolved Date: Aug 7, 2024
Found In Version: 10.21.20.23
Fix Version: 10.21.20.24
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Build & Config

Description

1, setup.sh --machine qemuarm64 --distro wrlinux --buildtools-type extended --dl-layers
2,  . environment-setup-x86_64-wrlinuxsdk-linux
3,  . oe-init-build-env build
4, bitbake cmake-native

| /test/build/tmp-glibc/work/x86_64-linux/cmake-native/3.19.5-r0/cmake-3.19.5/Utilities/cm3p/zstd.h:8:12: fatal error: zstd.h: No such file or directory
| 8 | # include <zstd.h> // IWYU pragma: export
| |^~~~~~~~
| compilation terminated.

Steps to Reproduce

Clone as usual, then:

{{$ ./wrlinux-x/setup.sh --machine qemuarm64 --distro wrlinux --buildtools-type extended --dl-layers}}
{{$ . environment-setup-x86_64-wrlinuxsdk-linux}}
{{$ . oe-init-build-env}}
{{$ bitbake cmake-native}}

Note that the build will succeed if you have the host version of zstd installed, but this is not a requirement and since we are using the extended build tools we should not be using host packages for this (it is not for other compression types).
Live chat
Online