Skip to content

intel/wov-d0i3-002: fix CI build errors - #11527

Draft
lgirdwood wants to merge 3 commits into
thesofproject:intel/wov-d0i3-002from
lgirdwood:wov-d0i3-002-build-fixes
Draft

lgirdwood wants to merge 3 commits into
thesofproject:intel/wov-d0i3-002from
lgirdwood:wov-d0i3-002-build-fixes

Conversation

@lgirdwood

Copy link
Copy Markdown
Member

Fixes the CI build failures on intel/wov-d0i3-002. They show up on every PR against this branch, e.g. #11526.

  • audio: ecns: ecns_stream_init() left unconnected-pin descriptors partly uninitialised. That triggers -Wmaybe-uninitialized in ecns_copy()/ecns_process(), which breaks all -Werror Intel builds (tgl, tgl-h, mtl, lnl, ptl, wcl).
  • zephyr: cmake: the Xtensa-only -mlongcalls/-mtext-section-literals options were guarded by ARCH STREQUAL "xtensa". But SOF sets ARCH to xtensa for every non-POSIX build, so the guard was always true and broke the aarch64 imx93 LP64 build. Guard on CONFIG_XTENSA instead.
  • audio: kpb:
    • Compile the new IPC4 output-pin scan and cross-pipeline detector prepare only for IPC4. Unconditionally they redeclare sink and break the IPC3 builds (imx8*, IPC3 fuzz).
    • Drop a variable that was only used in comp_dbg(). It broke the clang stub build.
    • Use %zu for a size_t in a log string. It broke LP64.

Build testing

These commits on top of cc693d42b, Zephyr SDK 1.0.1, with the same flags as CI (-Werror, --fatal-warnings, --warn-uninitialized). All of these pass:

  • repro-build.conf: imx8, imx8x, imx8m, imx8ulp, mtl, lnl, ptl, tgl, tgl-h, wcl, imx95, and -d lnl
  • shell_overlay.conf: tgl, mtl, lnl
  • modules.conf (llext): mtl, lnl
  • LP64: imx93_evk/mimx9352/a55
  • fuzz.sh -b stub build (IPC3, IPC4) and fuzzer build (IPC3, IPC4) with clang 21

I have not run anything on hardware. The ECNS and IPC4 KPB changes don't change behaviour, and the IPC3 KPB path goes back to what main does.

🤖 Generated with Claude Code

lrgirdwo and others added 3 commits November 23, 2026 16:02
ecns_stream_init() returned early for an unconnected pin and left the
channel count, frame size and sample format of the descriptor unset.
GCC then reports -Wmaybe-uninitialized for the mic and ref descriptors
in ecns_copy() and ecns_process(), which breaks every -Werror Intel
build of this branch.

Clear the whole descriptor before the NULL check. Users already gate
on the buffer pointer, so this does not change behaviour.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The SOF Zephyr module sets ARCH to "xtensa" for every non-POSIX
build because that selects the SOF arch headers, so the ARCH check
around -mlongcalls and -mtext-section-literals is always true. The
aarch64 imx93 LP64 build then fails with

  aarch64-zephyr-elf-gcc: error: unrecognized command-line option
  '-mtext-section-literals'

Use the Zephyr CONFIG_XTENSA Kconfig symbol, which reflects the
real target architecture.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix three build breaks in the multi-KPB WoV changes:

- The IPC4 output pin scan and the cross-pipeline detector prepare in
  kpb_prepare() were unconditional, so IPC3 builds failed with a
  redeclaration of 'sink' against the existing IPC3 sink search.
  Compile them only for IPC4, like the rest of the pin handling.
- kpb_bind() kept the sink component in a variable that is only used
  by comp_dbg(), which clang reports as unused when debug logs are
  compiled out. The sink component was already checked for NULL in
  the same loop, so pass it to the log directly.
- kpb_copy() printed the size_t copy_bytes with %u, which breaks the
  LP64 build. Use %zu.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants