golang/go

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

Closed this issue · 3 comments

@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.

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

Change https://golang.org/cl/289149 mentions this issue: [release-branch.go1.15] runtime/cgo: fix Android build with NDK 22

Closed by merging c3e1c38 to release-branch.go1.15.