New comment by newbluemoon on void-packages repository https://github.com/void-linux/void-packages/pull/21561#issuecomment-629774844 Comment: It seems that the host-built tools to generate some header files are not found. By moving them into the `build` directory they’re magically found again. With following changes a cross-build was successful: ``` diff --git a/srcpkgs/mariadb/template b/srcpkgs/mariadb/template index c0c44217b7..b87e35e49e 100644 --- a/srcpkgs/mariadb/template +++ b/srcpkgs/mariadb/template @@ -53,11 +53,11 @@ pre_configure() { pre_build() { if [ "$CROSS_BUILD" ]; then - cp bin.host/comp_err ${wrksrc}/extra - cp bin.host/comp_sql ${wrksrc}/scripts - cp bin.host/gen_lex_hash ${wrksrc}/sql - cp bin.host/gen_lex_token ${wrksrc}/sql - export PATH=${PATH}:${wrksrc}/extra:${wrksrc}/scripts:${wrksrc}/sql + cp bin.host/comp_err ${wrksrc}/build/extra + cp bin.host/comp_sql ${wrksrc}/build/scripts + cp bin.host/gen_lex_hash ${wrksrc}/build/sql + cp bin.host/gen_lex_token ${wrksrc}/build/sql + export PATH=${PATH}:${wrksrc}/build/extra:${wrksrc}/build/scripts:${wrksrc}/build/sql fi export LD_LIBRARY_PATH=${wrksrc}/build/storage/tokudb/ft-index/portability case "$XBPS_TARGET_MACHINE" in ```