Summary: | dev-lang/go-1.22.0: Various Go packages fail to build with "-buildmode=pie requires external (cgo) linking, but cgo is not enabled | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | William Hubbs <williamh> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | hlein, lukasstraub2, sam, zmedico |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://github.com/golang/go/issues/47949 https://bugs.gentoo.org/show_bug.cgi?id=917577 http://github.com/golang/go/issues/64875 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Agostino Sarubbo
2024-02-15 11:06:51 UTC
Created attachment 885018 [details]
build.log
build log and emerge --info
*** Bug 924630 has been marked as a duplicate of this bug. *** *** Bug 924629 has been marked as a duplicate of this bug. *** I can hit this with syncthing-1.27.2 with dev-lang/go-1.22.0, but downgrading Go to dev-lang/go-1.21.7, it builds fine. (In reply to Sam James from comment #4) > I can hit this with syncthing-1.27.2 with dev-lang/go-1.22.0, but > downgrading Go to dev-lang/go-1.21.7, it builds fine. At first, this looked like https://github.com/golang/go/issues/47949, but it doesn't make sense by itself given it's a regression and that linked bug isn't. Are you sure this is only affects x86? This comment on github suggests that it is an issue with CGO_ENABLED=0 and -buildmode=pie being incompatible and go-1.22 intentionally breaks the build in this case: github.com/golang/go/issues/64875#issuecomment-1974786520 (In reply to lukasstraub2 from comment #6) > Are you sure this is only affects x86? This comment on github suggests that > it is an issue with CGO_ENABLED=0 and -buildmode=pie being incompatible and > go-1.22 intentionally breaks the build in this case: > github.com/golang/go/issues/64875#issuecomment-1974786520 Yeah, I've seen it on amd64 too. I hope to look at this over the weekend even though it's.. gross. |