New comment by snwnde on void-packages repository https://github.com/void-linux/void-packages/pull/42592#issuecomment-1457061551 Comment: Several difficulties with cross compilation. - The configuration script `./mconf` tries to build and run some test codes. While building can be done with another architecture, the execution is not possible AFAIK. See [this line](https://github.com/sylabs/singularity/blob/47809b518ec412896fe668cbb3674a6bed6e4548/mlocal/checks/project-post.chk#L202). We have to remove this block from the check script. - If we remove that block, we get this error message, ``` make: Entering directory '/builddir/singularity-3.11.0/builddir' GEN GO DEP /builddir/singularity-3.11.0/builddir/starter.d GEN GO DEP /builddir/singularity-3.11.0/builddir/singularity.d GEN /builddir/singularity-3.11.0/scripts/go-generate GO singularity [+] GO_TAGS "containers_image_openpgp exclude_graphdriver_btrfs exclude_graphdriver_devicemapper sylog singularity_engine fakeroot_engine apparmor selinux seccomp" # runtime/cgo aarch64-linux-gnu-gcc: error: unrecognized command-line option '-m64' make: *** [Makefile:178: singularity] Error 1 ``` This option doesn't exist for [gcc on aarch64](https://gcc.gnu.org/onlinedocs/gcc/AArch64-Options.html) and this could be a bug from Singularity's compilation script. Could we make this an x86-64 only package?