Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [v1, 1/2] package/aichat: require SSE2 on i386 target
@ 2026-06-17 16:13 Alexander Shirokov
  2026-06-17 16:13 ` [Buildroot] [v1, 2/2] DEVELOPERS: move aichat to maintainer entry Alexander Shirokov
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alexander Shirokov @ 2026-06-17 16:13 UTC (permalink / raw)
  To: buildroot; +Cc: Alexander Shirokov

The ring crate enforces SSE/SSE2 availability on x86 at compile time,
leading to build failures on targets where they are not supported.

Add a new dependency to avoid selecting aichat on such targets.

The failure was reported by autobuild [1]:

    error[E0080]: evaluation panicked: assertion failed: cfg!(target_feature = "sse") && cfg!(target_feature = "sse2")
    --> /home/autobuild/autobuild/instance-38/output-1/build/aichat-0.30.0/VENDOR/ring/src/cpu/intel.rs:26:9
       |
    26 |         assert!(cfg!(target_feature = "sse") && cfg!(target_feature = "sse2"));
       |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    evaluation of `cpu::intel::abi_assumptions::_ASSUMES_SSE2` failed here

[1] https://autobuild.buildroot.org/results/c38a21c80490d5012c5b7bd926e778b406b5f26a/build-end.log

Signed-off-by: Alexander Shirokov <shirokovalexs@gmail.com>
---
 package/aichat/Config.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/aichat/Config.in b/package/aichat/Config.in
index e1bd177076..f828f4b1c3 100644
--- a/package/aichat/Config.in
+++ b/package/aichat/Config.in
@@ -1,6 +1,8 @@
 config BR2_PACKAGE_AICHAT
 	bool "aichat"
 	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
+	# i386: needs SSE2 for `ring` crate
+	depends on !(BR2_i386 && !BR2_X86_CPU_HAS_SSE2)
 	select BR2_PACKAGE_HOST_RUSTC
 	help
 	  AIChat helps seamlessly integrate different LLM models,
-- 
2.54.0

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

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

end of thread, other threads:[~2026-10-13 17:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-17 16:13 [Buildroot] [v1, 1/2] package/aichat: require SSE2 on i386 target Alexander Shirokov
2026-06-17 16:13 ` [Buildroot] [v1, 2/2] DEVELOPERS: move aichat to maintainer entry Alexander Shirokov
2026-10-13  8:00   ` Thomas Petazzoni via buildroot
2026-06-18  9:29 ` [Buildroot] [v1,1/2] package/aichat: require SSE2 on i386 target Alexander Shirokov
2026-10-13  8:03   ` [Buildroot] [v1, 1/2] " Thomas Petazzoni via buildroot
2026-10-13  8:01 ` Thomas Petazzoni via buildroot

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