You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/root/go/pkg/mod/github.com/supranational/blst@v0.3.11/bindings/go/blst.go: In function 'go_pairing_init':
/root/go/pkg/mod/github.com/supranational/blst@v0.3.11/bindings/go/blst.go:44:10: error: 'for' loop initial declarations are only allowed in C99 mode
// for(size_t i = 0; i < DST_len; i++) dst[i] = DST[i];
^
/root/go/pkg/mod/github.com/supranational/blst@v0.3.11/bindings/go/blst.go:44:10: note: use option -std=c99 or -std=gnu99 to compile your code
^Csignal: interrupt
make: *** [geth] Error 1
###if not use-std=c99###
go run build/ci.go install ./cmd/geth
/root/go/pkg/mod/github.com/supranational/blst@v0.3.11/bindings/go/blst.go: In function 'go_pairing_init':
/root/go/pkg/mod/github.com/supranational/blst@v0.3.11/bindings/go/blst.go:44:10: error: 'for' loop initial declarations are only allowed in C99 mode
// for(size_t i = 0; i < DST_len; i++) dst[i] = DST[i];
^
/root/go/pkg/mod/github.com/supranational/blst@v0.3.11/bindings/go/blst.go:44:10: note: use option -std=c99 or -std=gnu99 to compile your code
The text was updated successfully, but these errors were encountered:
please try to add the following environment variables and build again:
export CGO_CFLAGS="-O -D__BLST_PORTABLE__"
export CGO_CFLAGS_ALLOW="-O -D__BLST_PORTABLE__"
[root@192 bsc]# go version
go version go1.21.5 linux/amd64
###make geth find errors####
[root@192 bsc]# make geth
go run build/ci.go install ./cmd/geth -std=c99
github.com/supranational/blst/bindings/go
/root/go/pkg/mod/github.com/supranational/blst@v0.3.11/bindings/go/blst.go: In function 'go_pairing_init':
/root/go/pkg/mod/github.com/supranational/blst@v0.3.11/bindings/go/blst.go:44:10: error: 'for' loop initial declarations are only allowed in C99 mode
// for(size_t i = 0; i < DST_len; i++) dst[i] = DST[i];
^
/root/go/pkg/mod/github.com/supranational/blst@v0.3.11/bindings/go/blst.go:44:10: note: use option -std=c99 or -std=gnu99 to compile your code
^Csignal: interrupt
make: *** [geth] Error 1
###if not use-std=c99###
go run build/ci.go install ./cmd/geth
github.com/supranational/blst/bindings/go
/root/go/pkg/mod/github.com/supranational/blst@v0.3.11/bindings/go/blst.go: In function 'go_pairing_init':
/root/go/pkg/mod/github.com/supranational/blst@v0.3.11/bindings/go/blst.go:44:10: error: 'for' loop initial declarations are only allowed in C99 mode
// for(size_t i = 0; i < DST_len; i++) dst[i] = DST[i];
^
/root/go/pkg/mod/github.com/supranational/blst@v0.3.11/bindings/go/blst.go:44:10: note: use option -std=c99 or -std=gnu99 to compile your code
The text was updated successfully, but these errors were encountered: