On Tuesday, June 11, 2024 at 9:23:19 PM UTC+8 Hongyi Zhao wrote:

On Ubuntu 22.04.4 LTS, I tried to compile the latest GitHub version of 
apptainer using the guidance [here](
https://github.com/apptainer/apptainer/blob/main/INSTALL.md), but failed at 
the `make` step:

```shell
$ go version
go version devel go1.23-62711d61e5 Thu May 23 03:44:19 2024 +0000 
linux/amd64
$ sudo apt-get install -y     build-essential     libseccomp-dev     
pkg-config     uidmap     squashfs-tools     fakeroot     cryptsetup     
tzdata     curl wget git

$ cd "/home/werner/Public/repo/github.com/apptainer/apptainer.git" 
$ proxychains-ng-country-control go mod download
$ ./mconfig
$ cd builddir
$ make
 GEN GO DEP /home/werner/Public/repo/
github.com/apptainer/apptainer.git/builddir/starter.deps
 GEN GO DEP /home/werner/Public/repo/
github.com/apptainer/apptainer.git/builddir/apptainer.deps
 GEN GO DEP /home/werner/Public/repo/
github.com/apptainer/apptainer.git/builddir/starter.deps
 GO apptainer
    [+] GO_TAGS "containers_image_openpgp sylog oci_engine apptainer_engine 
fakeroot_engine apparmor selinux seccomp"
package github.com/apptainer/apptainer/cmd/apptainer
imports github.com/apptainer/apptainer/cmd/internal/cli
imports github.com/apptainer/apptainer/internal/app/apptainer
imports github.com/apptainer/apptainer/internal/pkg/runtime/engine/oci
imports 
github.com/apptainer/apptainer/internal/pkg/runtime/engine/config/starter: 
build constraints exclude all Go files in /home/werner/Public/repo/
github.com/apptainer/apptainer.git/internal/pkg/runtime/engine/config/starter
make: *** [Makefile:181: apptainer] Error 1
```

Any tips for fixing this problem? See here [1] for the related discussion.


I found that the issue was due to using the self-compiled latest git commit 
version of Go. Switching to the latest stable version of Go solved the 
problem.


[1] https://github.com/apptainer/apptainer/issues/2265

Regards,
Zhao

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/2f1f787b-0150-4add-8206-b5d2b149aeffn%40googlegroups.com.

Reply via email to