Bug 14909

Summary: file_5.41.bb:do_configure error with GCC 11.3.0 from SDK 4.0.3
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Marcel Vollweiler <marcel>
Component: oe-core otherAssignee: New Comer Bugs <newcomer>
Status: RESOLVED OBSOLETE QA Contact:
Severity: normal    
Priority: Medium+ CC: mathieu.dubois-briand, randy.macleod, steve
Version: 4.0.11   
Target Milestone: 4.0.35   
Hardware: x86   
OS: x86_64   
Whiteboard: NEWCOMER
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
build/tmp-glibc/work/x86_64-linux/file-native/5.41-r0/temp/log.do_configure.748204
none
build/tmp-glibc/work/x86_64-linux/file-native/5.41-r0/build/config.log none

Description Marcel Vollweiler 2022-09-02 06:52:06 UTC
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)
Comment 1 Marcel Vollweiler 2022-09-02 06:54:58 UTC
Created attachment 4901 [details]
build/tmp-glibc/work/x86_64-linux/file-native/5.41-r0/build/config.log
Comment 2 Pavel Zhukov 2022-09-13 15:31:56 UTC
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?
Comment 3 Pavel Zhukov 2022-09-13 15:35:10 UTC
the problem is configure script doesn't check for lzma/bz2 in the sdk but tries to use host version instead.
Comment 4 Marcel Vollweiler 2022-09-14 08:39:51 UTC
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
Comment 5 Randy MacLeod 2024-10-31 15:07:00 UTC
move to unassigned. feel free to take back if you have time.
Comment 6 Randy MacLeod 2026-03-25 23:46:55 UTC
Check if this happens on master.
Probably just have to add dependencies but I haven't looked closely.
Comment 7 Mathieu Dubois-Briand 2026-04-30 15:00:42 UTC
Kirkstone is no longer maintained