help2man stage fails when cross-compiling with meson
I am trying to build for aarch64 arm architecture. I have configured meson via a cross file to compile the binaries for aarch64, which I can see is being detected correctly during the meson setup
stage:
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: aarch64
Host machine cpu: aarch64
Target machine cpu family: aarch64
Target machine cpu: aarch64
All compilation, including some sanity checks that are done by generating an executable in the build machine's architecture and running it. However, at the end of the build, help2man is run on some binaries (qmicli and qmi-firmware-update in my case), but these fail because these two binaries were built with arm architecture and the build system is x86_64.
file qmicli
gives:
qmicli: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[xxHash]=07547fa2c059e07b, stripped
and this file can be run on the aarch64 target machine, so it is not malformed.