Opened 23 months ago

Last modified 23 months ago

#65384 assigned defect

docker-machine-parallels @2.0.1: build fails, possibly due to outdated golang.org/x/sys requirement

Reported by: baburton Owned by: danchr (Dan Villiom Podlaski Christiansen)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc:
Port: docker-machine-parallels

Description

This port does not build (reproducible on both x86_64 and arm64 architectures). The build spits out several errors of the following form:

../../../../pkg/mod/golang.org/x/sys@v0.0.0-20190422165155-953cdadca894/unix/zsyscall_darwin_arm64.go:28:3: //go:linkname must refer to declared function or variable

Some googling [1] suggests that the root of the problem is that the go.lang/x/sys dependency pulls in a version of golang.org/x/sys that is too old. This is an indirect dependency, coming from golang.org/x/crypto; in turn, docker-machine-parallels hard-codes the golang.org/x/crypto dependency as a version from August 2020.

So: I am hoping that this can be fixed by updating the docker-machine-parallels go.mod to pull in a newer version of golang.org/x/crypto.

Caveat: I know nothing about the go language at all, and this is the first time I have ever looked into a go.mod or go.sum file.

I am using the latest macOS (12.4) and Xcode (13.4.1).

For reference, I've attached the full (and fairly short) build logs from both x86_64 and arm64 machines.

Thanks - Ben.

[1] See for instance: https://stackoverflow.com/questions/71507321/go-1-18-build-error-on-mac-unix-syscall-darwin-1-13-go253-golinkname-mus

Attachments (2)

log-x86_64.txt (17.6 KB) - added by baburton 23 months ago.
Build log from x86_64 machine
log-arm64.txt (17.6 KB) - added by baburton 23 months ago.
Build log from arm64 machine

Download all attachments as: .zip

Change History (3)

Changed 23 months ago by baburton

Attachment: log-x86_64.txt added

Build log from x86_64 machine

Changed 23 months ago by baburton

Attachment: log-arm64.txt added

Build log from arm64 machine

comment:1 Changed 23 months ago by jmroot (Joshua Root)

Owner: set to danchr
Status: newassigned
Note: See TracTickets for help on using tickets.