New comment by manfredu on void-packages repository https://github.com/void-linux/void-packages/pull/21674#issuecomment-778036712 Comment: > You need to identify the message `checking loader paths for Qt libs` and which binary `configure` actually tries to run there. > > Then you can either patch configure to get this information in some way which does not require running a target binary, or you can add `build_helper="qemu"` and try to patch configure to run that `somebinary` with `qemu-${XBPS_TARGET_QEMU_MACHINE}-static somebinary ...`. @pullmoll It fails with "loader cannot find Qt library" when cross-compiling in the following part of configure: ``` OCPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$QT_INC" OLIBS="$LIBS" LIBS="$LIBS $QT_LIBS" OLDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -Wl,-rpath,$($QMAKE -query QT_INSTALL_LIBS)" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { return strcmp(QT_VERSION_STR, qVersion()) != 0; } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : ... else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "loader cannot find Qt library See \`config.log' for more details" "$LINENO" 5; } LDFLAGS="$OLDFLAGS" fi ``` For the time being I have disabled cross-compiling. Any other suggestion? I'm still checking why one test is failing with i686 only...