Fail to compile zlib for 32-bit ARM
Ah, after a lot of searching and debugging, finally found the cause.
Some old config file was setting FULL_OPTIMIZATION:pn-zlib and added flags that caused the failure below.
M.
Quoted 28 lines · Mike Looijmans via lists.openembedded.org
Using current OE wrynose branch on Ubuntu 22 LTS.
Everything appears fine until it gets to compiling "gzip", which fails with the cryptic error trace below. Searching leads me to this page which has almost identical output (apart from the version), but there's apparently no navigation from there to whatever the solution must have been:
https://errors.yoctoproject.org/Errors/Details/852396/
I suspect the real issue is that somehow the ARM compiler dislikes whatever gzit is feeding it. However, it's such a common embedded platform that I can't imagine that I'd be the only one in the world to bump against this.
The error I get now is:
DEBUG: Executing python function
extend_recipe_sysroot
NOTE: Direct dependencies are ['/.../oe-core/meta/recipes-core/glibc/glibc_2.43.bb:do_populate_sysroot', '/.../oe-core/meta/recipes-devtools/gcc/gcc-cross_15.3.bb:do_populate_sysroot', '/.../oe-core/meta/recipes-devtools/gcc/gcc-runtime_15.3.bb:do_populate_sysroot', '/.../oe-core/meta/recipes-devtools/quilt/quilt-native_0.69.bb:do_populate_sysroot', 'virtual:native:/.../oe-core/meta/recipes-devtools/patch/patch_2.8.bb:do_populate_sysroot', 'virtual:native:/.../oe-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot']NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['gettext-minimal-native', 'glibc', 'binutils-cross-arm', 'gcc-cross-arm', 'gcc-runtime', 'libgcc', 'libtool-native', 'm4-native', 'quilt-native', 'texinfo-dummy-native', 'linux-libc-headers', 'zlib-native', 'flex-native', 'gnu-config-native', 'patch-native', 'pseudo-native', 'xz-native', 'zstd-native', 'attr-native', 'gmp-native', 'libmpc-native', 'mpfr-native', 'sqlite3-native']
DEBUG: Python functionextend_recipe_sysrootfinished
DEBUG: Executing shell functiondo_configure
Compiler error reporting is too harsh for /.../build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/zlib/1.3.2/sources/zlib-1.3.2/configure (perhaps remove -Werror).
** /.../build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/zlib/1.3.2/sources/zlib-1.3.2/configure aborting.
WARNING: /.../build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/zlib/1.3.2/temp/run.do_configure.817951:133 exit 1 from 'LDCONFIG=true /.../build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/zlib/1.3.2/sources/zlib-1.3.2/configure
--prefix=/usr --shared --libdir=/usr/lib --uname=GNU'
WARNING: Backtrace (BB generated script):
#1:do_configure, /.../build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/zlib/1.3.2/temp/run.do_configure.817951, line 133
#2: main, /.../build/tmp/work/cortexa9t2hf-neon-oe-linux-gnueabi/zlib/1.3.2/temp/run.do_configure.817951, line 137
~