Created attachment 4900 [details] build/tmp-glibc/work/x86_64-linux/file-native/5.41-r0/temp/log.do_configure.748204 Preconditions/Environment ------------------------- - using GCC 11.3.0 from the extended SDK 4.0.3 (http://downloads.yoctoproject.org/releases/yocto/yocto-4.0.3/buildtools/x86_64-buildtools-extended-nativesdk-standalone-4.0.3.sh) - bitbake version 2.0.0 (rev. b8fd6f5d9959d27176ea016c249cf6d35ac8ba03) - openembedded-core rev. 92f122e0c1a7589bec3b628474548aad7fe159b4 on branch kirkstone - no additional layers, no modifications, just a clean build - xz (XZ Utils) 5.2.4 (installed on the host) - liblzma 5.2.4 (installed on the host) - OS: Ubuntu 20.04.5 LTS Triggering Action/Cause ----------------------- - bitbake core-image-minimal Expectation ----------- - openembedded-core (without modifications or additions) should be able to build without issues using the tools from the corresponding (extended) SDK Actual Result ------------- - output: ERROR: Task (virtual:native:/scratch/mvollweiler/yocto-4.0.3/openembedded-core/meta/recipes-devtools/file/file_5.41.bb:do_configure) failed with exit code '1' - in the log file (attached to this report): checking for lzma_stream_decoder in -llzma... no configure: error: xzlib support requested but not found - this error is thrown in configure.ac of the file package (https://github.com/file/file/blob/master/configure.ac) Reproducibility --------------- - under the preconditions described above this behaviour occured always and also on different machines (with the same OS) in the same way - using GCC installed on the host, i.e. gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, works fine (builds without failure)
Created attachment 4901 [details] build/tmp-glibc/work/x86_64-linux/file-native/5.41-r0/build/config.log
Thank you for reporting this. Seems like I was able to (partially) reproduce this issue. Can you please confirm that liblzma-dev and libbz2-dev are both installed on your build machine?
the problem is configure script doesn't check for lzma/bz2 in the sdk but tries to use host version instead.
Thank you for investigating that issue. I can confirm that liblzma-dev and libbz2-dev are installed on the build machine. liblzma-dev version: 5.2.4-1ubuntu1.1 libbz2-dev version: 1.0.8-2
move to unassigned. feel free to take back if you have time.
Check if this happens on master. Probably just have to add dependencies but I haven't looked closely.
Kirkstone is no longer maintained