Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927793 - net-p2p/syncthing-1.27.6 fails to compile on x86, arm: -buildmode=pie requires external (cgo) linking, but cgo is not enabled
Summary: net-p2p/syncthing-1.27.6 fails to compile on x86, arm: -buildmode=pie require...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Marc Schiffbauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-25 11:47 UTC by Agostino Sarubbo
Modified: 2024-09-29 19:17 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,183.29 KB, text/plain)
2024-03-25 11:47 UTC, Agostino Sarubbo
Details
build.log and emerge --info (arm) (file_927793.txt,150.22 KB, text/plain)
2024-08-30 15:45 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-03-25 11:47:23 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2024-03-25 11:47:24 UTC
Created attachment 888518 [details]
build.log

build log and emerge --info
Comment 2 Marek Szuba (RETIRED) archtester gentoo-dev 2024-03-28 14:25:28 UTC
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?
Comment 3 Joonas Niilola gentoo-dev 2024-06-30 06:57:49 UTC
(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
Comment 4 matoro archtester 2024-08-30 15:44:26 UTC
Affects arm as well; still present in 1.27.6.
Comment 5 matoro archtester 2024-08-30 15:45:13 UTC
Created attachment 901689 [details]
build.log and emerge --info (arm)
Comment 6 edgeman 2024-09-29 16:18:25 UTC
If I do
CGO_ENABLED=1 emerge-command-here
syncthing builds succesfully.
Comment 7 Larry the Git Cow gentoo-dev 2024-09-29 19:17:15 UTC
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(+)