All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/nettest: not available for the i586 Rust targets
@ 2026-10-11 18:57 Bogdan Radulescu
  2026-10-13  8:05 ` Thomas Petazzoni via buildroot
  2026-10-13  9:58 ` [Buildroot] [PATCH v2] package/nettest: needs SSE2 on i386 Bogdan Radulescu
  0 siblings, 2 replies; 5+ messages in thread
From: Bogdan Radulescu @ 2026-10-11 18:57 UTC (permalink / raw)
  To: buildroot

nettest depends, through rustls, quinn and rcgen, on the ring crate,
which refuses to build for 32-bit x86 targets without SSE and SSE2:

  error[E0080]: evaluation panicked: assertion failed: cfg!(target_feature = "sse") && cfg!(target_feature = "sse2")
    --> .../VENDOR/ring/src/cpu/intel.rs:26:9

Buildroot uses the i586-unknown-linux-{gnu,musl} Rust targets when
BR2_ARCH is "i586" (i586, pentium-mmx, geode, c3, winchip...), and
those targets do not enable SSE/SSE2. The i686 Rust targets enable
SSE2 by default, so ring builds fine there.

Make nettest unavailable when the Rust target architecture is i586.

Fixes: https://autobuild.buildroot.org/results/d04f770538412bee77851142ee007f2ff107e0ec
Signed-off-by: Bogdan Radulescu <bogdan@nimblex.net>
---
 package/nettest/Config.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/nettest/Config.in b/package/nettest/Config.in
index 0ec4dcdc4a..6b9eccfa7c 100644
--- a/package/nettest/Config.in
+++ b/package/nettest/Config.in
@@ -1,6 +1,8 @@
 config BR2_PACKAGE_NETTEST
 	bool "nettest"
 	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
+	# ring needs SSE/SSE2, which the i586 Rust targets lack
+	depends on BR2_PACKAGE_HOST_RUSTC_ARCH != "i586"
 	select BR2_PACKAGE_HOST_RUSTC
 	help
 	  nettest measures download and upload throughput, latency,
-- 
2.55.0

_______________________________________________
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-10-13 21:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-11 18:57 [Buildroot] [PATCH] package/nettest: not available for the i586 Rust targets Bogdan Radulescu
2026-10-13  8:05 ` Thomas Petazzoni via buildroot
2026-10-13 10:04   ` Bogdan Rădulescu
2026-10-13  9:58 ` [Buildroot] [PATCH v2] package/nettest: needs SSE2 on i386 Bogdan Radulescu
2026-10-13 21:02   ` Thomas Petazzoni via buildroot

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.