Opened 2 years ago
Last modified 2 years ago
#66003 assigned defect
wireguard-go does not install: net/netip missing
Reported by: | heinrichrebehn | Owned by: | cardi (calvin ardi) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | wireguard-go |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
port install wireguard-go:
:info:build go: downloading golang.org/x/sys v0.0.0-20220315194320-039c03cc5b86 :info:build go: downloading golang.org/x/net v0.0.0-20220225172249-27dd8689420f :info:build go: downloading golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd :info:build conn/bind_std.go:11:2: package net/netip is not in GOROOT (/opt/local/lib/go/src/net/netip) :info:build make[1]: *** [wireguard-go] Error 1 :info:build make: *** [generate-version-and-build] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_wireguard-go/wireguard-go/work/wireguard-go-0.0.20220316' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_wireguard-go/wireguard-go/work/wireguard-go-0.0.20220316" && /usr/bin/make -j1 -w :info:build Exit code: 2
MacOS 10.12.5, port version 2.7.2
Trying to install net/netip yields: Error: Port net/netip not found
Attachments (1)
Change History (4)
Changed 2 years ago by heinrichrebehn
comment:1 Changed 2 years ago by jmroot (Joshua Root)
Description: | modified (diff) |
---|---|
Owner: | set to cardi |
Port: | wireguard-go added |
Status: | new → assigned |
comment:2 Changed 2 years ago by cardi (calvin ardi)
It looks like you're running go
version 1.17.13: https://trac.macports.org/attachment/ticket/66003/main.log#L85
The net/netip package requires go
version 1.18 or higher.
Can you try upgrading go
by running sudo port upgrade go
and then see if wireguard-go
builds and installs successfully?
comment:3 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|
The go port is programmed to use go 1.17 on older versions of macOS, such as the one the user is using.
https://github.com/macports/macports-ports/blob/master/lang/go/Portfile#L18-L25
Tons of go ports fail to build every day on the older OS versions on the buildbot because of this. Would be great to fix it, for example by upgrading go to a newer version on older systems, but the comment in the go port says that's not possible, but it doesn't say why.
Logfile