mbox series

[0/3] Fix Rust self-test failures on PowerPC

Message ID 20251027102900.65173-1-peter.tatrai.ext@siemens.com
Headers show
Series Fix Rust self-test failures on PowerPC | expand

Message

P. Tatrai Oct. 27, 2025, 10:28 a.m. UTC
From: Peter Tatrai <peter.tatrai.ext@siemens.com>

This patch series fixes oe-selftest -r rust.RustSelfTestSystemEmulated.test_rust
failures on the PowerPC (qemuppc) target.

The root cause was missing zlib and zstd compression library dependencies
required by Rust's internal LLVM component. Without these libraries, the
Rust compiler build fails with linker errors for undefined references to
compression functions (compress2, uncompress, ZSTD_decompress, etc.).

The fix involves three changes:

1. Add build-time and runtime dependencies for zlib/zstd to the Rust recipe
   and pass linker flags via the target wrapper mechanism

2. Fix rust-common.bbclass to properly handle multi-flag WRAPPER_TARGET_EXTRALD
   values (this is a general improvement for all Rust recipes)

3. Add runtime packages to the test image and strip debug symbols from test
   binaries to work within PowerPC mac99's 768MB RAM limitation

After these changes, the Rust self-tests pass successfully on PowerPC. 

Peter Tatrai (3):
  rust: add missing zlib and zstd dependencies
  oeqa/selftest/rust: add zlib and libzstd runtime packages
  oeqa/selftest/rust: strip debug symbols from test binaries

 meta/classes-recipe/rust-common.bbclass   | 2 +-
 meta/lib/oeqa/selftest/cases/rust.py      | 5 ++++-
 meta/recipes-devtools/rust/rust_1.90.0.bb | 5 +++++
 3 files changed, 10 insertions(+), 2 deletions(-)