FISCO-BCOS / go-sdk

golang SDK of FISCO BCOS
Apache License 2.0
73 stars 58 forks source link

go bulid abigen时报错 #284

Open dyyyyy-1 opened 2 months ago

dyyyyy-1 commented 2 months ago

dy1@dy1:~/fisco/go-sdk$ go build ./cmd/abigen

github.com/FISCO-BCOS/go-sdk/cmd/abigen

link: github.com/fjl/memsize: invalid reference to runtime.stopTheWorld

yishuiwang commented 3 weeks ago

参考https://github.com/fjl/memsize 主页

NOTE: As of Go 1.23, memsize no longer works because of a restriction added by the Go toolchain. The Go 1.23 compiler no longer allows access to runtime symbols via go:linkname, which prevents memsize from accessing the Stop-the-World functionality of the Go runtime.

If your program depends on memsize, you can disable the restriction when building your program:

go build -ldflags=-checklinkname=0