Closed jofatmofn closed 2 years ago
Removed go 1.18.1 (installed with apt install command) using apt remove command and installed 1.15.4 manually. This resolved the build issue.
There's no particular reason why I chose 1.15.4, I just wanted to try-out some 1.15.* because pq-wireguard/go.mod specifies go 1.15.
Am getting the following errors when running go build.
# gvisor.dev/gvisor/pkg/sync ../go/pkg/mod/gvisor.dev/gvisor@v0.0.0-20210109011639-2fb7a49fea98/pkg/sync/rwmutex_unsafe.go:29:14: undefined: CrossGoroutineMutex ../go/pkg/mod/gvisor.dev/gvisor@v0.0.0-20210109011639-2fb7a49fea98/pkg/sync/rwmutex_unsafe.go:74:3: undefined: semacquire ../go/pkg/mod/gvisor.dev/gvisor@v0.0.0-20210109011639-2fb7a49fea98/pkg/sync/rwmutex_unsafe.go:98:4: undefined: semrelease ../go/pkg/mod/gvisor.dev/gvisor@v0.0.0-20210109011639-2fb7a49fea98/pkg/sync/rwmutex_unsafe.go:146:3: undefined: semacquire ../go/pkg/mod/gvisor.dev/gvisor@v0.0.0-20210109011639-2fb7a49fea98/pkg/sync/rwmutex_unsafe.go:171:3: undefined: semrelease ../go/pkg/mod/gvisor.dev/gvisor@v0.0.0-20210109011639-2fb7a49fea98/pkg/sync/rwmutex_unsafe.go:197:3: undefined: semrelease ../go/pkg/mod/gvisor.dev/gvisor@v0.0.0-20210109011639-2fb7a49fea98/pkg/sync/seqcount.go:87:6: undefined: canSpin ../go/pkg/mod/gvisor.dev/gvisor@v0.0.0-20210109011639-2fb7a49fea98/pkg/sync/seqcount.go:89:4: undefined: doSpin ../go/pkg/mod/gvisor.dev/gvisor@v0.0.0-20210109011639-2fb7a49fea98/pkg/sync/seqcount.go:91:4: undefined: goyield
go version go1.18.1 linux/amd64 Ubuntu 22.04.1 LTS (All latest upgrades applied)