All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Revert "package/pkg-cargo.mk: fix building cargo packages on 32bit arm"
@ 2026-12-02 11:22 Fengwei Tan
  2026-12-04  8:21 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Fengwei Tan @ 2026-12-02 11:22 UTC (permalink / raw)
  To: buildroot; +Cc: Fengwei Tan, Moritz Bitsch

This reverts commit f439f7c60b3734d3920c32aee027c2cb73621682.

The workaround was added because Rust compiler-builtins defined the ARM
__sync_* intrinsics with strong linkage, causing multiple definition
errors against libgcc's linux-atomic.o when linking 32-bit ARM cargo
packages.

Upstream fixed this by marking all intrinsics with weak linkage [1],
which landed in Rust 1.82.0. Since Buildroot now uses Rust 1.99.1,
this workaround is no longer needed.

[1] https://github.com/rust-lang/compiler-builtins/commit/ab63499685c2c0122a75291afe8316f67b9349c2

Signed-off-by: Fengwei Tan <tfx2001@outlook.com>
---
 package/pkg-cargo.mk | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/package/pkg-cargo.mk b/package/pkg-cargo.mk
index 47a6353f2592..af8d925e17c6 100644
--- a/package/pkg-cargo.mk
+++ b/package/pkg-cargo.mk
@@ -153,15 +153,6 @@ PKG_CARGO_ENV += \
 	CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS="false"
 endif
 
-#
-# This is a workaround for https://github.com/rust-lang/compiler-builtins/issues/420
-# and should be removed when fixed upstream
-#
-ifeq ($(NORMALIZED_ARCH),arm)
-	PKG_CARGO_ENV += \
-		CARGO_TARGET_$(call UPPERCASE,$(RUSTC_TARGET_NAME))_RUSTFLAGS="-Clink-arg=-Wl,--allow-multiple-definition"
-endif
-
 HOST_PKG_CARGO_ENV = \
 	$(PKG_COMMON_CARGO_ENV) \
 	RUSTFLAGS="$(addprefix -C link-args=,$(HOST_LDFLAGS))"

---
base-commit: 5f9c26e49f8dfccc79520547ee3eb5c73a85541c
change-id: 20261202-revert-multi-def-workaround-f0bbca1655a3

Best regards,
--  
Fengwei Tan <tfx2001@outlook.com>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2026-12-04  8:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 11:22 [Buildroot] [PATCH] Revert "package/pkg-cargo.mk: fix building cargo packages on 32bit arm" Fengwei Tan
2026-12-04  8:21 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.