Skip to content

Build error with v1.2.4 #1667

@shiziwen

Description

@shiziwen

Hi, when I build v1.2.4 using 'make geth', I got the following errors:

env GO111MODULE=on go run build/ci.go install ./cmd/geth
>>> /usr/lib/golang/bin/go build -ldflags -X main.gitCommit=3c5f54fc805994b0b60b50dbd59e4424df25f17a -X main.gitDate= -extldflags -Wl,-z,stack-size=0x800000 -trimpath -v -o /data/codes/bsc/build/bin/geth ./cmd/geth
github.com/supranational/blst/bindings/go
# github.com/supranational/blst/bindings/go
/home/java-tron/go/pkg/mod/github.com/supranational/blst@v0.3.8-0.20220526154634-513d2456b344/bindings/go/blst.go: In function 'go_pairing_init':
/home/java-tron/go/pkg/mod/github.com/supranational/blst@v0.3.8-0.20220526154634-513d2456b344/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];
          ^
/home/java-tron/go/pkg/mod/github.com/supranational/blst@v0.3.8-0.20220526154634-513d2456b344/bindings/go/blst.go:44:10: note: use option -std=c99 or -std=gnu99 to compile your code
util.go:46: exit status 2
exit status 1
make: *** [geth] Error 1

My go version is go version go1.19.6 linux/amd64

and I can build v1.1.22 successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions