Skip to content

fix(omnivoice): link fused Android inference against libm - #45

Open
lalalune wants to merge 2 commits into
eliza/kokoro-g2p-plus-gemma4from
fix/android-elizainference-libm
Open

fix(omnivoice): link fused Android inference against libm#45
lalalune wants to merge 2 commits into
eliza/kokoro-g2p-plus-gemma4from
fix/android-elizainference-libm

Conversation

@lalalune

Copy link
Copy Markdown
Member

Problem

The Android/bionic libelizainference.so linked successfully but failed at runtime with dlopen failed: cannot locate symbol "powf". Static objects folded into the final fused shared target use libm directly, and the dependency was not retained on that final target.

Fix

Link m on the final elizainference shared library for non-Apple Unix targets.

Evidence

  • Rebuilt the arm64-v8a fused library with Android NDK 29
  • llvm-readelf -d libelizainference.so now reports NEEDED: libm.so
  • Stage audit reports 68 exported eliza_inference_* symbols and bionic dependencies libm.so, libdl.so, libc.so

Parent integration: elizaOS/eliza#16652

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant