Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/crucible: disable cgo to fix 32-bit build failures
@ 2025-12-27 21:22 Fabio Estevam
  2026-01-06 21:07 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 5+ messages in thread
From: Fabio Estevam @ 2025-12-27 21:22 UTC (permalink / raw)
  To: buildroot; +Cc: Fabio Estevam

The Buildroot autobuilder fails when building crucible on 32-bit
architectures (notably i386) due to unresolved _cgo_* symbols during
linking.

Crucible does not require cgo, and building it with CGO_ENABLED=0
avoids toolchain and linker issues while producing a fully functional
binary.

Disable cgo explicitly to ensure reliable builds across all supported
architectures.

Fixes:

https://autobuild.buildroot.org/results/0b59fb382f7a1d9c3644da71e7bd53b6a19418ce/build-end.log

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 package/crucible/crucible.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/crucible/crucible.mk b/package/crucible/crucible.mk
index 9b34cc52d950..6f6d1dfab94b 100644
--- a/package/crucible/crucible.mk
+++ b/package/crucible/crucible.mk
@@ -10,4 +10,7 @@ CRUCIBLE_LICENSE = BSD-3-Clause
 CRUCIBLE_LICENSE_FILES = LICENSE
 CRUCIBLE_GOMOD = ./cmd/crucible
 
+# Disable cgo to avoid toolchain/linker issues on 32-bit architectures
+CRUCIBLE_GO_ENV = CGO_ENABLED=0
+
 $(eval $(golang-package))
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-02-14 13:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-27 21:22 [Buildroot] [PATCH] package/crucible: disable cgo to fix 32-bit build failures Fabio Estevam
2026-01-06 21:07 ` Thomas Petazzoni via buildroot
2026-01-07  0:42   ` Christian Stewart via buildroot
2026-01-07  2:06   ` Fabio Estevam
2026-02-14 13:31     ` Fabio Estevam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox