* [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
* [Buildroot] [v1, 2/2] DEVELOPERS: move aichat to maintainer entry
2026-06-17 16:13 [Buildroot] [v1, 1/2] package/aichat: require SSE2 on i386 target Alexander Shirokov
@ 2026-06-17 16:13 ` 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:01 ` Thomas Petazzoni via buildroot
2 siblings, 1 reply; 6+ messages in thread
From: Alexander Shirokov @ 2026-06-17 16:13 UTC (permalink / raw)
To: buildroot; +Cc: Alexander Shirokov
Signed-off-by: Alexander Shirokov <shirokovalexs@gmail.com>
---
DEVELOPERS | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/DEVELOPERS b/DEVELOPERS
index d591c62805..61a7fc4104 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -87,6 +87,7 @@ N: Aleksandr Makarov <aleksandr.o.makarov@gmail.com>
F: package/cpp-httplib/
N: Alexander Shirokov <shirokovalexs@gmail.com>
+F: package/aichat/
F: package/broot/
F: package/kibi/
F: package/nnn/
@@ -131,9 +132,6 @@ F: package/openpgm/
N: Aleksandr Makarov <aleksandr.o.makarov@gmail.com>
F: package/libest/
-N: Alexander Shirokov <shirokovalexs@gmail.com>
-F: package/aichat/
-
N: Alexander Sverdlin <alexander.sverdlin@gmail.com>
F: package/mini-snmpd/
--
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
* [Buildroot] [v1,1/2] package/aichat: require SSE2 on i386 target
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-06-18 9:29 ` Alexander Shirokov
2026-10-13 8:03 ` [Buildroot] [v1, 1/2] " Thomas Petazzoni via buildroot
2026-10-13 8:01 ` Thomas Petazzoni via buildroot
2 siblings, 1 reply; 6+ messages in thread
From: Alexander Shirokov @ 2026-06-18 9:29 UTC (permalink / raw)
To: buildroot; +Cc: shirokovalexs
Hi All,
Just a brief note: while I started with the simplest fix (disabling the
package), the root cause may lie in a different area.
As I can see, the broot package is now failing as well. It appears to be related
to SSE too (at least according to the function names).
For example [1]:
error[E0425]: cannot find function `defilter_avg_sse2_inner` in this scope
--> /home/thomas/autobuild/instance-1/output-1/build/broot-1.55.0/VENDOR/zune-png/src/filters/sse4.rs:332:9
|
213 | / unsafe fn de_filter_paeth_sse41_inner<const SIZE: usize>(
214 | | prev_row: &[u8], raw: &[u8], current: &mut [u8]
215 | | ) {
216 | | let zero = _mm_setzero_si128();
... |
266 | | }
| |_- similarly named function `de_filter_paeth_sse41_inner` defined here
...
332 | defilter_avg_sse2_inner::<SIZE>(prev_row, raw, current);
| ^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `de_filter_paeth_sse41_inner`
I'll investigate more carefully to avoid having to fix or work around the issue
in each package individually.
I'm also sure that if this is a common problem, it will affect other Rust
packages as well.
If you have any thoughts or ideas, feel free to share.
Thank you
[1] https://autobuild.buildroot.org/results/156abd4e214e230d36426fd407a7edb030fe0f31/build-end.log
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [v1, 2/2] DEVELOPERS: move aichat to maintainer entry
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
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-10-13 8:00 UTC (permalink / raw)
To: Alexander Shirokov; +Cc: buildroot
On Wed, Jun 17, 2026 at 06:13:12PM +0200, Alexander Shirokov wrote:
> Signed-off-by: Alexander Shirokov <shirokovalexs@gmail.com>
Applied to master, thanks!
Best regards,
Thomas Petazzoni
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [v1, 1/2] package/aichat: require SSE2 on i386 target
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-06-18 9:29 ` [Buildroot] [v1,1/2] package/aichat: require SSE2 on i386 target Alexander Shirokov
@ 2026-10-13 8:01 ` Thomas Petazzoni via buildroot
2 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-10-13 8:01 UTC (permalink / raw)
To: Alexander Shirokov; +Cc: buildroot
Hello,
On Wed, Jun 17, 2026 at 06:13:11PM +0200, Alexander Shirokov wrote:
> 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>
Could you trace back which version of aichat first started exposing
the problem? We need to understand if our LTS branches are affected or
not. Adding a Fixes: tag pointing to the Buildroot commit who
introduced the issue is best, like this:
Fixes: <commit hash> ("<commit title>")
Thanks a lot!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [v1, 1/2] package/aichat: require SSE2 on i386 target
2026-06-18 9:29 ` [Buildroot] [v1,1/2] package/aichat: require SSE2 on i386 target Alexander Shirokov
@ 2026-10-13 8:03 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-10-13 8:03 UTC (permalink / raw)
To: Alexander Shirokov; +Cc: buildroot
Hello,
On Thu, Jun 18, 2026 at 11:29:26AM +0200, Alexander Shirokov wrote:
> Hi All,
>
> Just a brief note: while I started with the simplest fix (disabling the
> package), the root cause may lie in a different area.
>
> As I can see, the broot package is now failing as well. It appears to be related
> to SSE too (at least according to the function names).
>
> For example [1]:
>
> error[E0425]: cannot find function `defilter_avg_sse2_inner` in this scope
> --> /home/thomas/autobuild/instance-1/output-1/build/broot-1.55.0/VENDOR/zune-png/src/filters/sse4.rs:332:9
That's from a different crate, right? So it's a different problem from
the ring create requiring SSE2.
> I'll investigate more carefully to avoid having to fix or work around the issue
> in each package individually.
Did you come to any conclusion regarding this?
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [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