New comment by snwnde on void-packages repository https://github.com/void-linux/void-packages/pull/42592#issuecomment-1457061551 Comment: Caution and tweaks for cross compilation. - The configuration script `./mconf` needs host go to run. - `./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. - We can remove that block to proceed and get a Makefile. A Makefile target called `codegen` again needs host go to run, - Cross compilation with `cgo` requires specifying `-extld` in go `ldflags`. This does not solve all the problems, and I am unwilling to go down the rabbit hole. If someone is interested in that, this [template file](https://github.com/void-linux/void-packages/blob/c8dd70d14db7ec7f48988c10b87e89d9b0349004/srcpkgs/singularity/template) is a good start. @classabbyamp Could we make this an x86-64 only package? Given that binaries released by upstream are also only in this architecture (https://github.com/sylabs/singularity/releases). If a native build for aarch64 can be tested, this can also be included.