FS#69408 - [go]: Please backport Android NDK r22 fix

Attached to Project: Community Packages
Opened by Syrone Wong (wongsyrone) - Friday, 22 January 2021, 23:35 GMT
Last edited by Morten Linderud (Foxboron) - Thursday, 04 February 2021, 23:05 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Morten Linderud (Foxboron)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When compiling CGO source file, Android NDK r22 complains `"ld: error: duplicate symbol: x_cgo_inittls"`, the upstream bug report is here:
https://github.com/golang/go/issues/42655.

The corresponding bugfix is https://github.com/golang/go/commit/1d78139128d6d839d7da0aeb10b3e51b6c7c0749, but it doesn't been picked to release branches.

Please backport the fix for Android NDK r22

Additional info:
* package version(s)
go: 2:1.15.7-1
android-ndk(AUR): r22-2
* config and/or log files etc.
Not applicable
* link to upstream bug report, if any
https://github.com/golang/go/issues/42655

Steps to reproduce:

Just compile a simple CGO program.
This task depends upon

Closed by  Morten Linderud (Foxboron)
Thursday, 04 February 2021, 23:05 GMT
Reason for closing:  Fixed
Additional comments about closing:  2:1.15.8-1
Comment by Syrone Wong (wongsyrone) - Friday, 22 January 2021, 23:40 GMT
Android NDK r21 works fine without the upstream golang fix, while it's annoying to patch golang sources every time when it gets update, it would be better if golang package maintainers can backport the fix for ordinary users who using NDK r22 and above.

Loading...