-
Notifications
You must be signed in to change notification settings - Fork 25
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
Compilation issue due to bls dependency #20
Comments
Hmm, looks like a file in herumi is missing. How are you including dependencies? Herumi has a Go repo that provides prebuilt binaries that get linked in. Something may be going wrong there. Can you build zrnt on your system with the regular git clone and go get? Let's confirm if it's build setup, or a broken dependency. |
I just create a fuzz.go file: package fuzz
import (
"bytes"
)
import (
"github.com/protolambda/zrnt/eth2/phase0"
"github.com/protolambda/zssz"
)
func Fuzz(data []byte) int {
var state phase0.BeaconState
reader := bytes.NewReader(data)
if err := zssz.Decode(reader, uint64(len(data)), &state, phase0.BeaconStateSSZ); err != nil {
return 0
}
ffstate := phase0.NewFullFeaturedState(&state)
ffstate.LoadPrecomputedData()
ffstate.CurrentProposer()
return 1
} Nothing fancy here. Regarding command line: git clone --recursive https://github.com/protolambda/zrnt
cd zrnt
go get -tags preset_mainnet ./...
cp ../../fuzz.go .
go-fuzz-build -tags "preset_mainnet" . |
I've run into similar while upgrading I have yet to confirm whether |
Yes, with |
A dodgy workaround can apparently involve adding empty And relevant comment: And perhaps an alternative tooling solution: |
By all means, go ahead. Herumi was pretty welcoming to my earlier PRs to herumi-BLS to improve the build system. If adding dummy go files helps vendoring, then you can make it work. |
Is this still a problem, I am not sure if I missed some information in other channels? |
+1 to close |
All good for me ;) Thanks @protolambda |
Hi,
I tried to compile zrnt with go-fuzz but when i got this issue:
Is it possible to provide a way (like build flags) to switch bls library from herumi to another one?
Or do you know which command line can fix this issue?
thx,
The text was updated successfully, but these errors were encountered: