Open vaultec81 opened 6 days ago
I'm inclined to believe that this is a Windows-specific problem with Go compiler. Did you try different versions? Both latest 1.23.3 and something pre-1.23? I've tried a minimalist snippet that calls blst.Uniq and it works fine with 1.23.3 and 1.21.5... As in
package main
import (
"fmt"
blst "github.com/supranational/blst/bindings/go"
)
func main() {
x := []blst.Message{[]byte("hello"), []byte("world")}
fmt.Println(blst.Uniq(x))
}
Another possibility is interference with your antivirus. Race conditions introduced by its activity are not unheard of, nor the possibility that it has aversion to the whatever you try to do. For example I had .dll-s generated by Go compiler removed...
Getting the same error message when attempting to compile a Go project on Linux 5.15 Tried go versions 1.21.8, 1.22.8, 1.22.9 and 1.23.3
Tried running the small program above with blst versions 0.13.11 and 0.13.3 and getting the same error
# github.com/supranational/blst/bindings/go
../go/pkg/mod/github.com/supranational/blst@v0.3.13/bindings/go/rb_tree.go:130:18: undefined: Message
When running go test with my codebase. Platform: go version go1.23.1 windows/amd64 (windows 11) Confirmed working on Linux and Mac osx.