[MacPorts] #67716: wormhole-william @1.0.6: //go:linkname must refer to declared function or variable (was: wormhole-william 1.0.6 build error on Mac OS M1)
MacPorts
noreply at macports.org
Tue Jul 4 10:16:05 UTC 2023
#67716: wormhole-william @1.0.6: //go:linkname must refer to declared function or
variable
-------------------------------+-------------------------
Reporter: jrabinow | Owner: jasperweiss
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: wormhole-william |
-------------------------------+-------------------------
Changes (by ryandesign):
* cc: herbygillot (added)
* version: => 2.8.1
Comment:
The errors in the log start with:
{{{
:info:build # github.com/fatih/color/vendor/golang.org/x/sys/unix
:info:build
../../fatih/color/vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go:25:3:
//go:linkname must refer to declared function or variable
}}}
It's not just your system. We [https://build.macports.org/builders/ports-
13_x86_64-builder/builds/39619/steps/install-port/logs/stdio see it on a
build machine too]. I think something must have changed in the go
ecosystem since wormhole-william was updated to 1.0.6 but there is no
newer version of wormhole-william that we could update to yet.
[https://stackoverflow.com/questions/71507321/go-1-18-build-error-on-mac-
unix-syscall-darwin-1-13-go253-golinkname-mus This post] suggests go 1.18
and later are what caused the problem; fatih/color's vendored x/sys
dependency would need to be updated to a newer version that is compatible
with go 1.18 and later.
This port uses fatih/color 1.10.0. The
[https://github.com/fatih/color/releases/tag/v1.15.0 release notes for
fatih/color 1.15.0] say x/sys was updated to 0.6.0 in that version so that
may resolve the problem, however x/sys 0.9.0 is available today; I don't
know in which version of x/sys the go 1.18 incompatibility was resolved.
And I don't know if we can just update wormhole-william's fatih/color
dependency without disturbing the rest of wormhole-william; I'm not
familiar with how go works. Herby has done a lot of work on the go ports
in MacPorts so I'm Cc'ing him for possible input.
wormhole-william does not list fatih/color in [https://github.com/psanford
/wormhole-william/blob/v1.0.6/go.mod its dependencies] so I guess it is an
indirect dependency but I don't know of what.
--
Ticket URL: <https://trac.macports.org/ticket/67716#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list