New comment by kotajacob on void-packages repository https://github.com/void-linux/void-packages/pull/36716#issuecomment-1100765735 Comment: The thing causing the build to fail on arm is generating shell completions. The `hut` package doesn't ship with completion scripts; you're meant to run `hut completion bash > hut.bash` to generate the script. There are two issues with this: 1. It seems like you need to set `build_helper=qemu` and run `hut` with `vtargetrun` in the post install stage rather than trying to run hut itself normally. Otherwise I don't think crosscompiles will work. 2. On arm (or maybe just crossbuilds in general) it seems like the binary for hut is not located in `$GOPATH/bin/hut` after compiling, but instead in `$GOPATH/bin/linux_arm64/hut`. Number 1 seems to work fine with `vtargetrun`, but for number 2 I'm not sure the best way to handle this. I was thinking I could do something like `hutbin=$(find $GOPATH/bin -type f)` to get the `hut` binary path, but that throws a weird error message: ``` => hut-0.1.0_1: running pre-install hook: 98-fixup-gir-path ... ln: /destdir/aarch64-linux-gnu/hut-0.1.0/usr/aarch64-linux-gnu/usr/..: cannot overwrite directory => ERROR: hut-0.1.0_1: pre-install_98-fixup-gir-path: 'ln -sf ".." "${PKGDESTDIR}/usr/${XBPS_CROSS_TRIPLET}/usr"' exited with 1 => ERROR: in hook() at common/hooks/pre-install/98-fixup-gir-path.sh:9 => ERROR: in run_func() at common/xbps-src/shutils/common.sh:21 => ERROR: in run_pkg_hooks() at common/xbps-src/shutils/common.sh:245 => ERROR: in run_step() at common/xbps-src/shutils/common.sh:43 => ERROR: in main() at common/xbps-src/libexec/xbps-src-doinstall.sh:37 ``` Another option would be a switch statement for the arm architectures, but both of these seem hacky and not ideal. Maybe there's a simple environment variable that points to the binary you just installed or something? Will look into this further when I get some more time. Just wanted to update with the current progress.