imx-docker build fails looking for "lz4c pzstd zstd" (HOSTTOOLS)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

imx-docker build fails looking for "lz4c pzstd zstd" (HOSTTOOLS)

跳至解决方案
17,196 次查看
nmdemarco
Contributor I

In attempting to build per `imx-docker` using both Dockerfile-Ubuntu-18.04 and Dockerfile-Ubuntu-20.04.

IMX_RELEASE=imx-5.15.32-2.0.0

MACHINE="imx8mpevk"
DISTRO="fsl-imx-xwayland"
IMAGES="imx-image-core"

REMOTE="https://source.codeaurora.org/external/imx/imx-manifest"
BRANCH="imx-linux-kirkstone"

Both Ubuntu-18.04 and Ubuntu-20.04 containers report:

ERROR: The following required tools (as specified by HOSTTOOLS) appear to be unavailable in PATH, please install them in order to proceed:
lz4c pzstd zstd

This error is reported in https://github.com/crops/poky-container/issues/67 and fixed in: https://github.com/crops/yocto-dockerfiles/pull/57

I'm relatively new to Yocto, trying to find & follow an imx build guide that works, so I can start to experiment & deviate from it.

My target machine is actually a 'cgtqmx', an imx6 board, but I'm starting with anything I can get to build.

What am I doing wrong?

 

 

0 项奖励
回复
1 解答
17,187 次查看
khang_letruong
Senior Contributor III
2 回复数
17,188 次查看
khang_letruong
Senior Contributor III
17,179 次查看
nmdemarco
Contributor I

To summarize the answer contained in the URL:

Upgrade to Yocto honister 3.4

Yocto Honister (release 3.4, fall 2021), introduces breaking changes mostly related to the syntax. You can take a look at the official migration guide.

The following errors and fixes have appeared while attempting to update a meta-layer to the current release.


Error message:

ERROR: The following required tools (as specified by HOSTTOOLS) appear to be unavailable in PATH, please install them in order to proceed:
 lz4c pzstd zstd

Explanation: The list of build-host prerequisites has changed, so you must install the missing packages, preferably using the distribution’s package manager. In my case, I’m using Ubuntu 18.04 LTS.

Fix for Ubuntu Bionic or older:

sudo apt-get install zstd liblz4-tool

Fix for Ubuntu Focal or newer:

sudo apt-get install zstd lz4

 

0 项奖励
回复