-
Notifications
You must be signed in to change notification settings - Fork 348
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 is going to lock down future uses of linkname
#637
Comments
Thanks much, we will investigate that |
The issue has already manifested when trying to build with Go 1.23 rc1 in homebrew: |
Hi. bytedance/sonic is widely used enough that we want to keep it working without changes, although of course we would be happy to see these linknames cleaned up in the future. We tried to allowlist all the symbols that bytedance/sonic needed. It looks like maybe we missed a couple? If you can identify the set of names we missed and file an issue in golang/go, I'd appreciate it. Thank you! |
@rsc Thx. After we manually move and copy some codes, the Go 1.23 compiler can build now - .#662. |
Thanks very much for the Go 1.23 fixes @AsterDY. We did not see the prof things you were changing via assembly. In general the linknames that we have added for Go 1.23 will be left alone and not changed in the future, now that they are documented in our code base as being depended on by other projects. So ideally you should not need to update sonic again for Go 1.24 or future releases. Or at least you should not need to update them quite so often. |
BTW, is it possible to build sonic on Go1.23.rc2? @rsc |
this issue could be closed now~ |
I think we can wait for #688 to ensure having a full support. |
* WIP: (may git squash!) feat: 1. init distance by weakening params / results 2. goimports + group (std + third party + current project) * fix: arrow direction of 'weaken results' (WR) * fix: 1. arrow direction of 'weaken results' (WR), 'weaken params' (WP); 2. Anonymize when building sigGraph * feat: 1. Distance->DistanceWithCache => avg latency (200x same distance query) -60%; 2. (WP) distance 2->3 => query func(string)int, Atoi rank 17->4. * feat: FloydWarshall; offline calc script * feat: 1. parallel Floyd-Warshall; 2. Floyd-Warshall output dump to / load from file. * tmp * v0.0.4 * upgrade hertz to avoid bytedance/sonic#637 * floyd.json -> sigGraph.json * NewHooglyRanker functional options * HooglyRanker -> SigGraphRanker * remove deadcode; polish webpage and testcase * tailor tailor.py
As is shown in golang/go#67401, Golang is going to lock down future uses of
linkname
and add sonic to the hall of shame due to the huge amounts oflinkname
use.So maybe we need a
-ldflags=-checklinkname=0
to make the compiling stage happy on Go 1.23. Or we can make a huge change to avoid usinglinkname
.Related CL:
The text was updated successfully, but these errors were encountered: