-
Notifications
You must be signed in to change notification settings - Fork 242
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
Android build is broken with Go 1.23 #1165
Comments
bobrofon
added a commit
to bobrofon/yggdrasil-go
that referenced
this issue
Aug 23, 2024
The 'github.com/wlynxg/anet' library depends on the '//go:linkname' liker feature [1]. However, since Go 1.23.0, the usage of '//go:linkname' has been restricted [2]. And now it's necessary to explicitly specify '-checklinkname=0' linker flag to use it. [1] https://github.com/wlynxg/anet/blob/main/README.md#how-to-build-with-go-1230-or-later [2] https://tip.golang.org/doc/go1.23#linker Resoles: yggdrasil-network#1165
bobrofon
added a commit
to bobrofon/yggdrasil-go
that referenced
this issue
Aug 23, 2024
The 'github.com/wlynxg/anet' library depends on the '//go:linkname' liker feature [1]. However, since Go 1.23.0, the usage of '//go:linkname' has been restricted [2]. And now it's necessary to explicitly specify '-checklinkname=0' linker flag to use it. [1] https://github.com/wlynxg/anet/blob/main/README.md#how-to-build-with-go-1230-or-later [2] https://tip.golang.org/doc/go1.23#linker Resolves: yggdrasil-network#1165
neilalexander
pushed a commit
that referenced
this issue
Sep 29, 2024
The `github.com/wlynxg/anet` library depends on the `//go:linkname` linker feature [1]. However, since Go 1.23.0, the usage of `//go:linkname` has been restricted [2]. And now it's necessary to explicitly specify `-checklinkname=0` linker flag to use it. [1] https://github.com/wlynxg/anet/blob/main/README.md#how-to-build-with-go-1230-or-later [2] https://tip.golang.org/doc/go1.23#linker Resolves: #1165
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In #1158 a new dependency https://github.com/wlynxg/anet was added to the project. A few days later Go 1.23.0 was released. And it was discovered that github.com/wlynxg/anet fails to build with Go 1.23 without an additional ldflag
-checklinkname=0
.More details here: https://github.com/wlynxg/anet/blob/main/README.md#how-to-build-with-go-1230-or-later
The text was updated successfully, but these errors were encountered: