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

x/mobile/cmd/gomobile: gomobile build on simple program returns "ld: error: duplicate symbol: x_cgo_inittls" [1.15 backport] #43406

gopherbot opened this issue Dec 28, 2020 · 1 comment


Copy link

@gopherbot gopherbot commented Dec 28, 2020

@ianlancetaylor requested issue #42655 to be considered for backport to the next 1.15 minor release.

@gopherbot Please open backport issues

Although this was filed against x/mobile, the fix is to runtime/cgo in the standard library. This is caused by a change in the default behavior of the C compiler. Anybody using an older release of Go with a new C compiler will run into this problem. Since the fix is small and safe, we should backport it.

Copy link

@dmitshur dmitshur commented Dec 30, 2020

The rationale sounds good. Approving (for 1.15 and 1.14 both).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.