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

Build fails on MacOS #480

Closed
Zytekaron opened this issue Feb 6, 2023 · 4 comments
Closed

Build fails on MacOS #480

Zytekaron opened this issue Feb 6, 2023 · 4 comments

Comments

@Zytekaron
Copy link
Contributor

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/sys@v0.0.0-20190124100055-b90733256f2e/cpu/cpu_arm64.go:39:22: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/sys@v0.0.0-20190124100055-b90733256f2e/cpu/cpu_arm64.go:40:25: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/sys@v0.0.0-20190124100055-b90733256f2e/cpu/cpu_arm64.go:41:27: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/sys@v0.0.0-20190124100055-b90733256f2e/cpu/cpu_arm64.go:42:23: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/sys@v0.0.0-20190124100055-b90733256f2e/cpu/cpu_arm64.go:43:25: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/sys@v0.0.0-20190124100055-b90733256f2e/cpu/cpu_arm64.go:44:24: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/sys@v0.0.0-20190124100055-b90733256f2e/cpu/cpu_arm64.go:45:24: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/sys@v0.0.0-20190124100055-b90733256f2e/cpu/cpu_arm64.go:46:25: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/sys@v0.0.0-20190124100055-b90733256f2e/cpu/cpu_arm64.go:47:27: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/sys@v0.0.0-20190124100055-b90733256f2e/cpu/cpu_arm64.go:48:24: undefined: HWCap
/Users/z/sdk/go1.19.5/pkg/mod/golang.org/x/sys@v0.0.0-20190124100055-b90733256f2e/cpu/cpu_arm64.go:48:24: too many errors
@ineiti
Copy link
Member

ineiti commented Feb 8, 2023

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

@Zytekaron
Copy link
Contributor Author

should I just branch off master?

@ineiti
Copy link
Member

ineiti commented Feb 8, 2023

Yes, please. That is the latest version.

Zytekaron added a commit to Zytekaron/kyber that referenced this issue Feb 8, 2023
update to v0.5.0 to fix build failure on macos
dedis#480
AnomalRoil pushed a commit that referenced this issue Mar 18, 2024
* update version for golang.org/x/sys

update to v0.5.0 to fix build failure on macos
#480

* update other dependency versions

github.com/stretchr/testify v1.8.1
golang.org/x/crypto v0.5.0

---------

Co-authored-by: jbsv <90860471+jbsv@users.noreply.github.com>
Co-authored-by: pierluca <pierluca@users.noreply.github.com>
@AnomalRoil
Copy link
Contributor

Solved by #481 and #504

K1li4nL pushed a commit that referenced this issue May 16, 2024
* update version for golang.org/x/sys

update to v0.5.0 to fix build failure on macos
#480

* update other dependency versions

github.com/stretchr/testify v1.8.1
golang.org/x/crypto v0.5.0

---------

Co-authored-by: jbsv <90860471+jbsv@users.noreply.github.com>
Co-authored-by: pierluca <pierluca@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants