https://sourceware.org/bugzilla/show_bug.cgi?id=28545
--- Comment #1 from John <bugs.sourceware at johnthomson dot fastmail.com.au> --- Minimum OpenWrt config example: cat <<EOF>.config CONFIG_TARGET_ipq40xx=y CONFIG_TARGET_ipq40xx_mikrotik=y CONFIG_TARGET_ipq40xx_mikrotik_DEVICE_mikrotik_hap-ac2=y CONFIG_DEVEL=y CONFIG_EXPERIMENTAL=y CONFIG_TESTING_KERNEL=y CONFIG_PACKAGE_ip-full=y EOF make defconfig make clean make package/devel/binutils/clean make package/devel/binutils/compile # /usr/lib/libiberty.a: error adding symbols: file format not recognized sudo mv /usr/lib/libiberty.a{,_moved} # /usr/lib/libz.so: file not recognized: file format not recognized sudo mv /usr/lib/libz.so{,_moved} # /usr/lib/libz.a: error adding symbols: file format not recognized sudo mv /usr/lib/libz.a{,_moved} # relink okay Not seeing this on either an ath79 or ramips mt7621 device build The ath79 device build still tries these external libraries, but skips for incompatible: skipping incompatible /usr/lib/libiberty.a when searching for -liberty /mnt/pool_ssd/code/openwrt/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/lib/gcc/mips-openwrt-linux-musl/11.2.0/../../../../mips-openwrt-linux-musl/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /mnt/pool_ssd/code/openwrt/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/lib/gcc/mips-openwrt-linux-musl/11.2.0/../../../../mips-openwrt-linux-musl/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz The previous OpenWrt package binutils version was 2.35.2, and it compiled without this issue. -- You are receiving this mail because: You are on the CC list for the bug.