New comment by newbluemoon on void-packages repository https://github.com/void-linux/void-packages/pull/32153#issuecomment-886462033 Comment: > any idea how to fix cross build? You just got `hostmakedepends` and `makedepends` mixed up. ;) It has to be the other way around: ``` hostmakedepends="perl-ExtUtils-PkgConfig" makedepends="gd-devel" ``` Then native and cross builds finish just fine.