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

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

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

Jump to solution
7,628 Views
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 Kudos
1 Solution
2 Replies
7,611 Views
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 Kudos