Open dyyyyy-1 opened 2 months 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
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