Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syscall: undefined: syscall.SIOCADDRT on OSX #43553

Closed
andig opened this issue Jan 6, 2021 · 1 comment
Closed

syscall: undefined: syscall.SIOCADDRT on OSX #43553

andig opened this issue Jan 6, 2021 · 1 comment

Comments

@andig
Copy link
Contributor

andig commented Jan 6, 2021

What version of Go are you using (go version)?

$ go version
go version go1.15.6 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/andig/Library/Caches/go-build"
GOENV="/Users/andig/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/andig/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/andig/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.15.6/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.15.6/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/andig/htdocs/gokrazy/tools/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/73/89ycv7qn51j4kbm04jsz9b840000gn/T/go-build954882536=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

go get github.com/gokrazy/gokrazy

What did you expect to see?

Compile ok

What did you see instead?

Compiling gokrazy fails:

❯ go get github.com/gokrazy/gokrazy
go: golang.org/x/sys upgrade => v0.0.0-20210105210732-16f7687f5001
go: github.com/gokrazy/internal upgrade => v0.0.0-20201230135541-e2046189e529
# github.com/gokrazy/gokrazy/internal/iface
../../go/pkg/mod/github.com/gokrazy/gokrazy@v0.0.0-20210104142720-5a84eb5921dd/internal/iface/iface.go:108:68: undefined: syscall.SIOCADDRT
../../go/pkg/mod/github.com/gokrazy/gokrazy@v0.0.0-20210104142720-5a84eb5921dd/internal/iface/iface.go:122:68: undefined: syscall.SIOCDELRT

May be related to #43494?

@andig
Copy link
Contributor Author

andig commented Jan 6, 2021

Update: I can do

❯ go get github.com/gokrazy/tools/cmd/gokr-packer   

though which has the following go.mod and hence should show the same problem:

module github.com/gokrazy/tools

go 1.14

require (
    github.com/gokrazy/gokrazy v0.0.0-20200626095651-fc121e1383ba
    github.com/gokrazy/internal v0.0.0-20200626090505-539bb61868de
    golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a
    golang.org/x/sys v0.0.0-20200523222454-059865788121
)

Closed as invalid

@andig andig closed this as completed Jan 6, 2021
@golang golang locked and limited conversation to collaborators Jan 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants