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: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Marc Schiffbauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-25 11:47 UTC by Agostino Sarubbo
Modified: 2024-08-30 15:45 UTC (History)
7 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)