This is a multilib build, where for abi_x86_32 the wrong pkg-config binary is chosen. Checking for function "strndup" : YES Found pkg-config: /usr/bin/x86_64-pc-linux-gnu-pkg-config (0.29.2) Run-time dependency expat found: YES 2.2.10 instead of i686-pc-linux-gnu-pkg-config. Therefore the package tries to link against the 64-bit expat library. This happened during a @world update Reproducible: Always emerge --info and build log as attachments.
Created attachment 682900 [details] wayland-scanner-1.18.92:20210114-172258.log build log
Created attachment 682903 [details] emerge-info-wayland-scanner.txt output of emerge --info wayland-scanner
WARNING: Unknown options: "needs_exe_wrapper, pkg_config_libdir" Please emerge --sync and try again, should be fixed by commit: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f4d1f24fe31a5ac37cf3e3c32833e4d4e9e09d7
Thanks, it's working.