Opened 8 months ago

Closed 4 months ago

#68275 closed defect (fixed)

colima @0.5.5_0: build constraints exclude all Go files

Reported by: breun (Nils Breunese) Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma arm64 Cc: rkrenzis (Ryan A. Krenzischek)
Port: colima

Description

When I try to install to install colima on macOS 14 arm64, I get the following error:

❯ sudo port install colima
--->  Computing dependencies for colima
--->  Fetching archive for colima
--->  Attempting to fetch colima-0.5.5_0.darwin_23.arm64.tbz2 from https://packages.macports.org/colima
--->  Attempting to fetch colima-0.5.5_0.darwin_23.arm64.tbz2 from https://ema.uk.packages.macports.org/colima
--->  Attempting to fetch colima-0.5.5_0.darwin_23.arm64.tbz2 from https://nue.de.packages.macports.org/colima
--->  Building colima
Error: Failed to build colima: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_colima/colima/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port colima failed
❯ tail -n 14 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_colima/colima/main.log
:info:build 	imports gvisor.dev/gvisor/pkg/gohacks: build constraints exclude all Go files in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_colima/colima/work/gopath/pkg/mod/gvisor.dev/gvisor@v0.0.0-20221229220220-8d9dc83e3b96/pkg/gohacks
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_colima/colima/work/gopath/src/github.com/abiosoft/colima" && /opt/local/bin/go build -ldflags " -X github.com/abiosoft/colima/config.appVersion=v0.5.5 -X github.com/abiosoft/colima/config.revision= " ./cmd/colima 
:info:build Exit code: 1
:error:build Failed to build colima: command execution failed
:debug:build Error code: CHILDSTATUS 79170 1
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_colima/colima/main.log for details.

Attachments (1)

main.log (1.9 MB) - added by rkrenzis (Ryan A. Krenzischek) 8 months ago.
Output from failed build of colima

Download all attachments as: .zip

Change History (10)

comment:1 Changed 8 months ago by reneeotten (Renee Otten)

please add the main.log file mentioned in the error message to this ticket

comment:2 Changed 8 months ago by rkrenzis (Ryan A. Krenzischek)

Cc: rkrenzis added

comment:3 Changed 8 months ago by rkrenzis (Ryan A. Krenzischek)

Having the same issue, uploading main.log as requested.

Changed 8 months ago by rkrenzis (Ryan A. Krenzischek)

Attachment: main.log added

Output from failed build of colima

comment:4 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sonoma arm64 added
Summary: Installing colima @0.5.5_0 fails on macOS 14 arm64colima @0.5.5_0: build constraints exclude all Go files

The error in Ryan's log is:

package github.com/abiosoft/colima/cmd/colima
	imports github.com/abiosoft/colima/cmd
	imports github.com/abiosoft/colima/app
	imports github.com/abiosoft/colima/environment/vm/lima
	imports github.com/abiosoft/colima/daemon
	imports github.com/abiosoft/colima/daemon/process/gvproxy
	imports github.com/containers/gvisor-tap-vsock/pkg/virtualnetwork
	imports github.com/containers/gvisor-tap-vsock/pkg/services/dhcp
	imports github.com/containers/gvisor-tap-vsock/pkg/tap
	imports gvisor.dev/gvisor/pkg/tcpip/stack
	imports gvisor.dev/gvisor/pkg/sync/locking
	imports gvisor.dev/gvisor/pkg/gohacks: build constraints exclude all Go files in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_colima/colima/work/gopath/pkg/mod/gvisor.dev/gvisor@v0.0.0-20221229220220-8d9dc83e3b96/pkg/gohacks
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_colima/colima/work/gopath/src/github.com/abiosoft/colima" && /opt/local/bin/go build -ldflags " -X github.com/abiosoft/colima/config.appVersion=v0.5.5 -X github.com/abiosoft/colima/config.revision= " ./cmd/colima 
Exit code: 1

comment:5 Changed 8 months ago by esafak (Emre Şafak)

This was fixed at colima in Aug but unfortunately no releases have been issued since May. I just sent an email requesting one.

https://github.com/abiosoft/colima/pull/768#issuecomment-1676127981

Last edited 8 months ago by esafak (Emre Şafak) (previous) (diff)

comment:6 Changed 8 months ago by esafak (Emre Şafak)

comment:7 Changed 8 months ago by rkrenzis (Ryan A. Krenzischek)

Thank you @esafak and @herbygillot!

comment:8 Changed 4 months ago by halostatue (Austin Ziegler)

This should be closed as the mentioned pull request was merged and there are several 0.6.x releases since.

comment:9 Changed 4 months ago by herbygillot (Herby Gillot)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.