https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: net-p2p/syncthing-1.27.4 fails to compile. Discovered on: x86 (internal ref: tinderbox_x86) System: GCC-14-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-14) Info about the issue: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Created attachment 888518 [details] build.log build log and emerge --info
Apparently since 1.22 Go is more picky about which linking method to use. Could someone from the x86 arch team check if passing CGO_ENABLED=1 to 'go build' in src_compile() addresses the issue, please?
(In reply to Marek Szuba from comment #2) > Apparently since 1.22 Go is more picky about which linking method to use. > > Could someone from the x86 arch team check if passing CGO_ENABLED=1 to 'go > build' in src_compile() addresses the issue, please? Indeed this fixes it for me on x86. WORK=/var/tmp/portage/net-p2p/syncthing-1.27.8/temp/go-build740085155 -buildmode=pie requires external (cgo) linking, but cgo is not enabled exit status 1 exit status 1 * ERROR: net-p2p/syncthing-1.27.8::gentoo failed (compile phase): * build failed ... -> >>> Emerging (1 of 1) net-p2p/syncthing-1.27.8::gentoo >>> Installing (1 of 1) net-p2p/syncthing-1.27.8::gentoo >>> Completed (1 of 1) net-p2p/syncthing-1.27.8::gentoo
Affects arm as well; still present in 1.27.6.
Created attachment 901689 [details] build.log and emerge --info (arm)
If I do CGO_ENABLED=1 emerge-command-here syncthing builds succesfully.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc2c165b2fc8c367bae0254fa51f0ae50d9b254e commit cc2c165b2fc8c367bae0254fa51f0ae50d9b254e Author: Marc Schiffbauer <mschiff@gentoo.org> AuthorDate: 2024-09-29 19:16:22 +0000 Commit: Marc Schiffbauer <mschiff@gentoo.org> CommitDate: 2024-09-29 19:16:43 +0000 net-p2p/syncthing: add 1.27.12 Closes: https://bugs.gentoo.org/927793 Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org> net-p2p/syncthing/Manifest | 1 + net-p2p/syncthing/syncthing-1.27.12.ebuild | 114 +++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+)