kyber icon indicating copy to clipboard operation
kyber copied to clipboard

Build fails on MacOS

Open Zytekaron opened this issue 3 years ago • 3 comments

HW: M1 Pro on MacBook Pro 16" (2021) OS: macOS Ventura (13.2) Go: 1.19.5

Here's a related issue from 2019, and it was resolved, so updating the package version for golang.org/x/sys should suffice.

package main

// either import fails; go.dedis.ch/kyber/v3/suites depends on golang.org/x/sys/cpu
import _ "golang.org/x/sys/cpu"
import _ "go.dedis.ch/kyber/v3/suites"

results in

% go run main.go
# golang.org/x/sys/cpu
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/[email protected]/cpu/cpu_arm64.go:39:22: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/[email protected]/cpu/cpu_arm64.go:40:25: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/[email protected]/cpu/cpu_arm64.go:41:27: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/[email protected]/cpu/cpu_arm64.go:42:23: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/[email protected]/cpu/cpu_arm64.go:43:25: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/[email protected]/cpu/cpu_arm64.go:44:24: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/[email protected]/cpu/cpu_arm64.go:45:24: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/[email protected]/cpu/cpu_arm64.go:46:25: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/[email protected]/cpu/cpu_arm64.go:47:27: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/[email protected]/cpu/cpu_arm64.go:48:24: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/[email protected]/cpu/cpu_arm64.go:48:24: too many errors

Zytekaron avatar Feb 06 '23 00:02 Zytekaron

Hi @Zytekaron - thanks for the issue. Would you be able to create a PR for this issue, please?

ineiti avatar Feb 08 '23 07:02 ineiti

should I just branch off master?

Zytekaron avatar Feb 08 '23 14:02 Zytekaron

Yes, please. That is the latest version.

ineiti avatar Feb 08 '23 16:02 ineiti

Solved by #481 and #504

AnomalRoil avatar Apr 02 '24 09:04 AnomalRoil