[GH-ISSUE #3990] [Other] SYCL build fails due to use of BMI2 intrinsics without -mbmi2 flag #1714

Closed
opened 2026-11-04 01:53:25 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @sruggier on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3990

I guess this relates to commit 1747c8e538.

Full build output:

-- The ASM compiler identification is IntelLLVM
-- Found assembler: /opt/intel/oneapi/compiler/2026.1/bin/icx
-- Warning: ccache not found - consider installing it for faster compilation or disable this warning with GGML_CCACHE=OFF
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- GGML_SYSTEM_ARCH: x86
-- Including CPU backend
-- x86 detected
-- Adding CPU backend variant ggml-cpu: -march=native 
-- ggml version: 0.24.0
-- ggml commit:  3cf03257f
-- STRATA SYCL tests: no python3 with numpy found - iq_parity and its fixtures are not registered
-- Configuring done (27.8s)
-- Generating done (0.1s)
-- Build files have been written to: /work/Strata/build-sycl
[23/134] Linking CXX static library ggml/src/libggml-base.a
FAILED: [code=1] CMakeFiles/strata_kernels_cpu.dir/work/Strata/src/kernels/cpu/iq_avx512.cpp.o 
/work/Strata/src/kernels/cpu/iq_avx512.cpp:478:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:478:90: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:479:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:479:94: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:486:73: error: always_inline function '_pext_u32' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:478:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:478:90: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:479:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:479:94: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:486:73: error: always_inline function '_pext_u32' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:478:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:478:90: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:479:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:479:94: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:486:73: error: always_inline function '_pext_u32' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:478:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:478:90: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:479:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
/work/Strata/src/kernels/cpu/iq_avx512.cpp:479:94: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
[42/134] Linking CXX static library libstrata_core.a
[91/134] Linking CXX static library ggml/src/libggml-cpu.a
[110/134] Linking CXX static library libstrata_kernels.a
[122/134] Linking CXX static library libstrata_spec.a
ninja: build stopped: cannot make progress due to previous errors.
BUILD EXIT 1
errors: 20
iq_avx512.cpp.o 
Originally created by @sruggier on GitHub (Oct 24, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3990 I guess this relates to commit 1747c8e538820755886ac522503ca09f2b5a07ef. Full build output: ``` -- The ASM compiler identification is IntelLLVM -- Found assembler: /opt/intel/oneapi/compiler/2026.1/bin/icx -- Warning: ccache not found - consider installing it for faster compilation or disable this warning with GGML_CCACHE=OFF -- CMAKE_SYSTEM_PROCESSOR: x86_64 -- GGML_SYSTEM_ARCH: x86 -- Including CPU backend -- x86 detected -- Adding CPU backend variant ggml-cpu: -march=native -- ggml version: 0.24.0 -- ggml commit: 3cf03257f -- STRATA SYCL tests: no python3 with numpy found - iq_parity and its fixtures are not registered -- Configuring done (27.8s) -- Generating done (0.1s) -- Build files have been written to: /work/Strata/build-sycl [23/134] Linking CXX static library ggml/src/libggml-base.a FAILED: [code=1] CMakeFiles/strata_kernels_cpu.dir/work/Strata/src/kernels/cpu/iq_avx512.cpp.o /work/Strata/src/kernels/cpu/iq_avx512.cpp:478:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:478:90: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:479:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:479:94: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:486:73: error: always_inline function '_pext_u32' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:478:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:478:90: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:479:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:479:94: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:486:73: error: always_inline function '_pext_u32' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:478:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:478:90: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:479:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:479:94: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:486:73: error: always_inline function '_pext_u32' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:478:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:478:90: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:479:37: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' /work/Strata/src/kernels/cpu/iq_avx512.cpp:479:94: error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'rows_m' that is compiled without support for 'bmi2' fatal error: too many errors emitted, stopping now [-ferror-limit=] [42/134] Linking CXX static library libstrata_core.a [91/134] Linking CXX static library ggml/src/libggml-cpu.a [110/134] Linking CXX static library libstrata_kernels.a [122/134] Linking CXX static library libstrata_spec.a ninja: build stopped: cannot make progress due to previous errors. BUILD EXIT 1 errors: 20 iq_avx512.cpp.o ```
Author
Owner

@github-actions[bot] commented on GitHub (Oct 24, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6386899801 --> @github-actions[bot] commented on GitHub (Oct 24, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 24, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6386909981 --> @github-actions[bot] commented on GitHub (Oct 24, 2026): Thanks, this follows the format now.
Author
Owner

@sruggier commented on GitHub (Oct 25, 2026):

This was fixed by commit 9551b4168d, which made the same change #4030 was proposing to introduce.

<!-- gh-comment-id:6399921414 --> @sruggier commented on GitHub (Oct 25, 2026): This was fixed by commit 9551b4168d266409ea49c1e489b98380030d883d, which made the same change #4030 was proposing to introduce.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1714
No description provided.