[GH-ISSUE #11935] loongarch64: ggml-cpu-quants.c:2508:31: error: incompatible types when initializing type '__m128i' using type 'int' on Alpine Linux #69981

Open
opened 2026-05-04 19:58:42 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @OTLabs on GitHub (Aug 16, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11935

What is the issue?

I get following error while building ollama 0.11.4 package for Alpine Linux loongarch64, https://gitlab.alpinelinux.org/otlabs/aports/-/jobs/1975187#L327

Relevant log output

ggml-cpu-quants.c: In function 'ggml_vec_dot_q4_0_q8_0':
ggml-cpu-quants.c:2508:31: error: incompatible types when initializing type '__m128i' using type 'int'
 2508 |         const __m128i i32_0 = mul_sum_i8_pairs(bx_0, by_0);
      |                               ^~~~~~~~~~~~~~~~
ggml-cpu-quants.c:2513:31: error: incompatible types when initializing type '__m128i' using type 'int'
 2513 |         const __m128i i32_1 = mul_sum_i8_pairs(bx_1, by_1);
      |                               ^~~~~~~~~~~~~~~~
ggml-cpu-quants.c:2526:31: error: incompatible types when initializing type '__m128i' using type 'int'
 2526 |         const __m128i i32_2 = mul_sum_i8_pairs(bx_2, by_2);
      |                               ^~~~~~~~~~~~~~~~
ggml-cpu-quants.c:2531:31: error: incompatible types when initializing type '__m128i' using type 'int'
 2531 |         const __m128i i32_3 = mul_sum_i8_pairs(bx_3, by_3);
      |                               ^~~~~~~~~~~~~~~~

OS

Linux

GPU

No response

CPU

Other

Ollama version

0.11.4

Originally created by @OTLabs on GitHub (Aug 16, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11935 ### What is the issue? I get following error while building ollama 0.11.4 package for Alpine Linux loongarch64, https://gitlab.alpinelinux.org/otlabs/aports/-/jobs/1975187#L327 ### Relevant log output ```shell ggml-cpu-quants.c: In function 'ggml_vec_dot_q4_0_q8_0': ggml-cpu-quants.c:2508:31: error: incompatible types when initializing type '__m128i' using type 'int' 2508 | const __m128i i32_0 = mul_sum_i8_pairs(bx_0, by_0); | ^~~~~~~~~~~~~~~~ ggml-cpu-quants.c:2513:31: error: incompatible types when initializing type '__m128i' using type 'int' 2513 | const __m128i i32_1 = mul_sum_i8_pairs(bx_1, by_1); | ^~~~~~~~~~~~~~~~ ggml-cpu-quants.c:2526:31: error: incompatible types when initializing type '__m128i' using type 'int' 2526 | const __m128i i32_2 = mul_sum_i8_pairs(bx_2, by_2); | ^~~~~~~~~~~~~~~~ ggml-cpu-quants.c:2531:31: error: incompatible types when initializing type '__m128i' using type 'int' 2531 | const __m128i i32_3 = mul_sum_i8_pairs(bx_3, by_3); | ^~~~~~~~~~~~~~~~ ``` ### OS Linux ### GPU _No response_ ### CPU Other ### Ollama version 0.11.4
GiteaMirror added the bug label 2026-05-04 19:58:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#69981