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 problem (caused by kryptology) #291

Closed
aeharvlee opened this issue Mar 24, 2022 · 2 comments
Closed

Build problem (caused by kryptology) #291

aeharvlee opened this issue Mar 24, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@aeharvlee
Copy link

aeharvlee commented Mar 24, 2022

Describe the bug
When I try to build rosetta-cli from source, there is a build problem like below.
Please take a look.

go build ./...                                       
# github.com/coinbase/kryptology/pkg/core/curves/native/bls12-381
../../../go/pkg/mod/github.com/coinbase/[email protected]/pkg/core/curves/native/bls12-381/field_element.go:180:2: undefined: neg
../../../go/pkg/mod/github.com/coinbase/[email protected]/pkg/core/curves/native/bls12-381/fp.go:53:2: undefined: mul
../../../go/pkg/mod/github.com/coinbase/[email protected]/pkg/core/curves/native/bls12-381/fp.go:54:2: undefined: add
../../../go/pkg/mod/github.com/coinbase/[email protected]/pkg/core/curves/native/bls12-381/fp.go:98:2: undefined: mul
../../../go/pkg/mod/github.com/coinbase/[email protected]/pkg/core/curves/native/bls12-381/fp.go:102:2: undefined: mul
../../../go/pkg/mod/github.com/coinbase/[email protected]/pkg/core/curves/native/bls12-381/fp.go:109:3: undefined: mul
../../../go/pkg/mod/github.com/coinbase/[email protected]/pkg/core/curves/native/bls12-381/fp.go:110:3: undefined: mul
../../../go/pkg/mod/github.com/coinbase/[email protected]/pkg/core/curves/native/bls12-381/fp.go:123:2: undefined: square
../../../go/pkg/mod/github.com/coinbase/[email protected]/pkg/core/curves/native/bls12-381/fp2.go:75:2: undefined: add
../../../go/pkg/mod/github.com/coinbase/[email protected]/pkg/core/curves/native/bls12-381/fp2.go:76:2: undefined: add
../../../go/pkg/mod/github.com/coinbase/[email protected]/pkg/core/curves/native/bls12-381/fp2.go:76:2: too many errors

To Reproduce

  1. git clone this project
  2. run make build or make deps or make install .

Expected behavior
Must be build successfully.

Additional context

  • OS: macOS 12.3
  • Go version: go1.17.7 darwin/arm64
  • Source code version of rosetta-cli: 18013bd

BTW, Build on Latest tag v0.7.3 works

@shrimalmadhur
Copy link
Contributor

Hello @aeharvlee - I just merged the fix in #284 - this should help you build from from source. Let me know if that doesn't work.

@shrimalmadhur shrimalmadhur self-assigned this Mar 25, 2022
@aeharvlee
Copy link
Author

@shrimalmadhur

I checked it and building is done successfully :)
Thanks for your response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants