Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go bulid abigen时报错 #284

Open
dyyyyy-1 opened this issue Sep 4, 2024 · 1 comment
Open

go bulid abigen时报错 #284

dyyyyy-1 opened this issue Sep 4, 2024 · 1 comment

Comments

@dyyyyy-1
Copy link

dyyyyy-1 commented Sep 4, 2024

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
Copy link

参考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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants