Make Linux runtime bundles resolve sibling libraries - #52
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and fix
Published Linux LiteRT-LM runtime loading can fail with
libwebgpu_dawn.sonot found, including CPU requests that preload companions. The sampler carries Bazel build-tree RUNPATHs and Dawn has no SONAME, so loading absolute companion paths does not reliably resolve dependencies.Stage the complete Linux prebuilt inventory, including dlopen-only accelerators, and normalize the packaged Dawn SONAME and all Linux RUNPATHs to sibling lookup via
$ORIGIN. Perform this before model smoke hashes are recorded. Install patchelf in Linux build and qualification jobs. Source files and non-Linux packaging are unchanged.Validation
cd70b1c6d75b380e910ff45e6bbc3b63695b97d7against current main8174e0e868d3c40999cab23a7078ca36eab6190d: no blocking findings, zero unresolved threads, zero known PR-caused P1 regressions. No release or downstream pin changes in this PR.Related to #47 and leehack/llamadart#510. Do not close desktop GPU qualification until Windows and rebuilt-artifact validation complete.
The host ELF identity is preserved: broad SONAME rewriting reproduced a profiling shutdown crash, while the narrowed correction passed a same-input load/shutdown control. Read-only staged Bazel files are temporarily made owner-writable and their permissions restored in finally.