-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/link: undefined symbol when dynamically linking linux/arm64 -buildmode=shared #70222
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
Comments
The symbol |
@ianlancetaylor thanks for your reply. I used this command
|
That is rather old. I don't know what the problem is, and I don't know whether this would help, but how difficult would it be for you to try a newer version of GCC? The current release is GCC 14.2. |
After updating GCC to version 10.3.1, the issue disappeared. |
Sorry, it's not really feasible for us to maintain old versions of GCC to use to build those syso files. That said, we should probably try to document which version we used. In any case, this bug seems fixed, so closing. Thanks for following up. |
Oh, actually, we do document what we built the syso files with, in runtime/race/README. |
We document the version of llvm that we get the race detector code from. But that's not the compiler that was used to build it. I don't think we record that anywhere. |
Oh, bother. Thanks. |
Go version
go1.22.1 linux/arm64
Output of
go env
in your module/workspace:What did you do?
I'm trying to use the Golang/go linkshared feature on Linux/ARM64, Here is my command to run:
What did you see happen?
./main_shared: symbol lookup error: /root/go/pkg/linux_arm64_dynlink/libstd.so: undefined symbol: __aarch64_ldadd8_acq_rel
What did you expect to see?
Output the expected string
Hello, World!
The text was updated successfully, but these errors were encountered: