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`. 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.