* [Buildroot] [PATCH 1/1] package/go: decrease debug level for CGO linking
@ 2026-08-17 6:30 yann.morin
2026-08-17 17:50 ` Julien Olivain via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: yann.morin @ 2026-08-17 6:30 UTC (permalink / raw)
To: buildroot; +Cc: yann.morin, Christian Stewart, Thomas Perale
From: "Yann E. MORIN" <yann.morin@orange.com>
Workaround an upstream issue that arises when packages are build with
gdb -g3 debug level:
https://github.com/golang/go/issues/77436
This has been fixed upstream, but is not released yet, so add a comment
stating when to remove the workaround.
Fixes:
https://autobuild.buildroot.org/results/97cd9c2586a0cc2a16cdb2a75dae1836feb5ffc3/
(and probably a lot more...)
Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
Cc: Christian Stewart <christian@aperture.us>
Cc: Thomas Perale <thomas.perale@mind.be>
---
package/go/go.mk | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/package/go/go.mk b/package/go/go.mk
index a64d7538f8..265d3aa880 100644
--- a/package/go/go.mk
+++ b/package/go/go.mk
@@ -4,6 +4,9 @@
#
################################################################################
+# When bumping this to 1.27 (or beyond), remove the workaround for
+# upstream issue https://github.com/golang/go/issues/77436, below
+# (i.e. revert the commit adding these lines).
GO_VERSION = 1.26.5
HOST_GO_GOPATH = $(HOST_DIR)/share/go-path
@@ -75,11 +78,14 @@ HOST_GO_TARGET_ENV = \
$(if $(GO_GOARM),GOARM=$(GO_GOARM)) \
CC="$(TARGET_CC)" \
CXX="$(TARGET_CXX)" \
- CGO_CFLAGS="$(TARGET_CFLAGS)" \
- CGO_CXXFLAGS="$(TARGET_CXXFLAGS)" \
CGO_LDFLAGS="$(TARGET_LDFLAGS)" \
GOTOOLDIR="$(HOST_GO_TOOLDIR)"
+# Workaround for https://github.com/golang/go/issues/77436
+HOST_GO_TARGET_ENV += \
+ CGO_CFLAGS="$(subst -g3,-g2,$(TARGET_CFLAGS))" \
+ CGO_CXXFLAGS="$(subst -g3,-g2,$(TARGET_CXXFLAGS))"
+
# Allow packages to use cgo support if it is available for the target. They
# will need the toolchain for cgo support; for convenence, include that
# dependency here.
--
2.43.0
____________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/go: decrease debug level for CGO linking
2026-08-17 6:30 [Buildroot] [PATCH 1/1] package/go: decrease debug level for CGO linking yann.morin
@ 2026-08-17 17:50 ` Julien Olivain via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Julien Olivain via buildroot @ 2026-08-17 17:50 UTC (permalink / raw)
To: yann.morin; +Cc: buildroot, Christian Stewart, Thomas Perale
On 17/08/2026 08:30, yann.morin@orange.com wrote:
> From: "Yann E. MORIN" <yann.morin@orange.com>
>
> Workaround an upstream issue that arises when packages are build with
> gdb -g3 debug level:
> https://github.com/golang/go/issues/77436
>
> This has been fixed upstream, but is not released yet, so add a comment
> stating when to remove the workaround.
>
> Fixes:
>
> https://autobuild.buildroot.org/results/97cd9c2586a0cc2a16cdb2a75dae1836feb5ffc3/
> (and probably a lot more...)
>
> Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
> Cc: Christian Stewart <christian@aperture.us>
> Cc: Thomas Perale <thomas.perale@mind.be>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-17 17:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-17 6:30 [Buildroot] [PATCH 1/1] package/go: decrease debug level for CGO linking yann.morin
2026-08-17 17:50 ` Julien Olivain via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox