Repository navigation
pack: every packaged ELF gets RUNPATH $ORIGIN only - #3294
Merged
Merged
Conversation
pack_localize kept absolute RUNPATH entries outside the build tree, 'since HRX needs TheRock anyway'. The ones it kept are TheRock's LLVM runtime dirs (/opt/rocm-therock/.../_rocm_sdk_core/lib/llvm/lib/...), which exist on the build host only: on the installed v2026.47 appliance neither path exists, and the release check's payload-runpath row failed 40 entries for it. Everything those dirs could provide is copied beside the library already (PACK_BUNDLE_LIBS: libomp), and pack_unresolved_needed refuses a package whose NEEDED no longer resolves without LD_LIBRARY_PATH. Measured: the v2026.47 hrx/llama tree rewritten to $ORIGIN only (26 files) runs Qwen3.8-27B UD-Q4_K_XL on the box's HRX0 with the release llama-bench (pp512 481.7, tg64 12.09 tok/s; the shipped tree gives 505 +/- 13 / 12.19). Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
enabled auto-merge (squash)
November 22, 2026 07:36
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
6 of 12 tasks
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.
Part of #3287 (release-check row 3 of 5,
payload-runpath).Why:
pack_localizekept absolute RUNPATH entries outside the build tree ("HRX needs TheRock anyway"). The entries it kept are TheRock's LLVM runtime dirs (/opt/rocm-therock/lib/python3.14/site-packages/_rocm_sdk_core/lib/llvm/lib/...), which exist on the build host only. On the installed v2026.47 appliance neither path exists, andpayload-runpathfailed 40 entries (15 libraries plus their symlinks) for it.Change:
patchelf --set-rpath '$ORIGIN'for every localized ELF. What those dirs could provide is already copied beside each library (PACK_BUNDLE_LIBS: libomp), andpack_unresolved_needed(plain ldd, noLD_LIBRARY_PATH) still refuses a package whose NEEDED no longer resolves.Measured on the hardware: the v2026.47
hrx/llamatree rewritten to$ORIGINonly (26 files, 0 non-$ORIGIN entries left), copied to the installed appliance, runs Qwen3.8-27B UD-Q4_K_XL on HRX0 with the releasellama-bench: pp512 481.7, tg64 12.09 tok/s (shipped tree: 505 ± 13 / 12.19), no load errors.🤖 Generated with Claude Code