Fixed
Created: Jun 12, 2023
Updated: Jun 26, 2023
Resolved Date: Jun 19, 2023
Previous ID: LINCCM-21674
Found In Version: 10.22.33.9
Fix Version: 10.22.33.10
Severity: Standard
Applicable for: Wind River Linux LTS 22
Component/s: Userspace
Customer discovered an error message in LTS22 build tree that pops up in a few places (unzip/zip log.do_compile files), but doesn't actually halt the build.
Both the "zip" and "unzip" recipes have a "unix/configure" script that runs during the do_compile bitbake stage. As with many configure scripts, these create short programs, compile them, and run them to determine if certain features are supported by the compiler.
I'll attach these two configure scripts for reference. The unzip configure script has three sections that write and compile a short program called conftest. Then it runs conftest, but gets the following error:
./conftest: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./conftest)
Likewise, the zip configure script has two sections where running conftest produces a similar error. Interestingly, these failures don't stop the compilation process. The configure script simply interprets the errors as the compiler not supporting the feature it is trying to test for. The end result is that zip and unzip are built without support for "large zip files".
This has been reproduced on an Ubuntu 18.04 x86-64, which has glibc 2.27. LTS22 builds glibc 2.35. Something about these configure tests seems to be pull in symbols that require at least glibc 2.34, so when that gets run on ubuntu 18.04 build host, it can't find the symbols it needs.
./wrlinux-x/setup.sh --distros wrlinux --machines intel-x86-64 --templates feature/busybox,feature/installer-support --dl-layers --accept-eula yes
source environment-setup-x86_64-wrlinuxsdk-linux
source oe-init-build-env
bitbake wrlinux-image-small
or
bitbake zip
bitbake unzip
{{}}