You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Since 7.34.0 a host with C++ and ObjC fails to link: two rust_eh_personality copies (LibTrueHD + LibDovi) exceed compact unwind's three personality routines #752
Since 7.34.0 a host app that links C++ and Objective-C code of its own no longer links. The cause seems to be LibTrueHD joining LibDovi: both are Rust static libraries, and each brings its own copy of rust_eh_personality.
What happens
Moving Syravo from 7.33.2 to 7.35.1 (FFmpegBuild 3.7.1, LibTrueHD 2.2.0, LibDovi 2.1.0) resolves fine and everything compiles. Linking the app binary then fails:
ld: Too many personality routines for compact unwind to encode. Found routines:
'_rust_eh_personality'
'_rust_eh_personality'
'___objc_personality_v0'
'___gxx_personality_v0'
Move one or more unique personality routine users to a separate dynamic library.
Compact unwind can encode at most three personality routines per image. The two Rust copies can't be merged, because each static library carries its own. With the host's Objective-C and C++ routines that makes four.
Affected: iOS Simulator (x86_64 slice), tvOS Simulator (arm64) and macOS (arm64), all failing the same way. Every tag from 7.34.0 on links LibTrueHD, so 7.34.0, 7.34.1, 7.35.0 and 7.35.1 are all affected. 7.33.2 links fine.
Toolchain: Xcode 27.1 (27A9275), ld-27037.1.
Host: an app target that has C++ through its own dependencies (KSCrash, among others) besides Objective-C/Swift. A host without C++ probably stays at three routines and never sees this, which may be why the engine's own builds pass.
Workaround we did not want to ship
OTHER_LDFLAGS = -Wl,-no_compact_unwind makes it link; we checked this for tvOS from the command line only. It drops compact unwind for the whole binary, though, so we'd rather not ship that, and we are staying on 7.33.2 for now.
Possible fixes on your side
Ship one of the two Rust libraries (LibTrueHD or LibDovi) as a dynamic framework, so its personality routine lives in a separate image, as the linker suggests.
Or build both crates into a single Rust static library, so there is only one rust_eh_personality.
Possibly also panic = "abort" in the release profile of both crates, if that keeps the personality routine out of the archive. We haven't verified this.
Happy to test a candidate build against Syravo on all four platforms.
Thanks for the precise report, the linker output pointed straight at it.
Cause. LibTrueHD's build prelinks its static library so that only the C API stays global, which keeps it from clashing with LibDovi's std symbols. That step had also made rust_eh_personality local. A local copy avoids the duplicate symbol, but the linker still counts it as a second personality routine in the image. With LibDovi's copy and your Objective-C and C++ routines that made four. Sodalite and AetherPlayer carry no C++, so they stayed at three, which is why this never surfaced here.
Fix: LibTrueHD 2.2.1 exports rust_eh_personality as a weak definition, so the linker keeps one copy (LibDovi's strong one when both are present) and every Rust frame in the app shares it. Panics still never leave LibTrueHD: every exported function catches them, and truehd_atmos_selftest() confirms the catch in the final link.
Verified with LibDovi 2.1.0 plus an Objective-C and C++ host: 2.2.0 fails with exactly your error for tvOS, the tvOS simulator, iOS and the iOS simulator (x86_64), and 2.2.1 links on all four in both link orders. LibTrueHD's harness/verify.sh now carries that link as a regression check. Decoder output is unchanged (bit-exact against truehdd).
How to pick it up. It is a patch release, and engine tags from 7.34.1 on pin LibTrueHD with .upToNextMinor(from: "2.2.0"), so a package update on 7.35.1 is enough, no engine release needed: File > Packages > Update to Latest Package Versions, or xcodebuild -resolvePackageDependencies after removing LibTrueHD from your Package.resolved. 7.34.0 pins 2.1.x and stays affected. Engine main already resolves 2.2.1 (fca9a00), so the next engine release carries it as well.
Your offer to test is very welcome: I'll keep this open until Syravo links on all four platforms without -no_compact_unwind.
Syravo on AetherEngine 7.35.1 now resolves LibTrueHD 2.2.1 next to LibDovi 2.1.0 and links without -no_compact_unwind on every target we ship:
iOS (device + simulator)
tvOS (device + simulator)
macOS (arm64)
visionOS (simulator)
One note for anyone else picking it up: Xcode kept the 2.2.0 checkout in DerivedData's SourcePackages even after LibTrueHD was removed from Package.resolved, so resolution kept landing on 2.2.0 until that cache was cleared. After that it resolved 2.2.1 as expected.
Fine to close from our end. Thanks for the quick turnaround and the regression check in harness/verify.sh.
Thanks for testing on all six targets, and for the DerivedData note. That stale SourcePackages checkout is an easy trap, so it is good to have it written down here for the next person who hits it (File > Packages > Reset Package Caches clears it from inside Xcode as well).
The fix also ships in 7.36.0, which resolves LibTrueHD 2.2.1 or later out of the box. Closing as fixed.
Activity
chore(deps): LibTrueHD 2.2.1, rust_eh_personality exported weak (#752)
superuser404notfound commentedon Oct 13, 2026
Thanks for the precise report, the linker output pointed straight at it.
Cause. LibTrueHD's build prelinks its static library so that only the C API stays global, which keeps it from clashing with LibDovi's std symbols. That step had also made
rust_eh_personalitylocal. A local copy avoids the duplicate symbol, but the linker still counts it as a second personality routine in the image. With LibDovi's copy and your Objective-C and C++ routines that made four. Sodalite and AetherPlayer carry no C++, so they stayed at three, which is why this never surfaced here.Fix: LibTrueHD 2.2.1 exports
rust_eh_personalityas a weak definition, so the linker keeps one copy (LibDovi's strong one when both are present) and every Rust frame in the app shares it. Panics still never leave LibTrueHD: every exported function catches them, andtruehd_atmos_selftest()confirms the catch in the final link.Verified with LibDovi 2.1.0 plus an Objective-C and C++ host: 2.2.0 fails with exactly your error for tvOS, the tvOS simulator, iOS and the iOS simulator (x86_64), and 2.2.1 links on all four in both link orders. LibTrueHD's
harness/verify.shnow carries that link as a regression check. Decoder output is unchanged (bit-exact against truehdd).How to pick it up. It is a patch release, and engine tags from 7.34.1 on pin LibTrueHD with
.upToNextMinor(from: "2.2.0"), so a package update on 7.35.1 is enough, no engine release needed: File > Packages > Update to Latest Package Versions, orxcodebuild -resolvePackageDependenciesafter removing LibTrueHD from yourPackage.resolved. 7.34.0 pins 2.1.x and stays affected. Enginemainalready resolves 2.2.1 (fca9a00), so the next engine release carries it as well.Your offer to test is very welcome: I'll keep this open until Syravo links on all four platforms without
-no_compact_unwind.tschuegy commentedon Oct 13, 2026
Thanks, Vincent — confirmed fixed on our side.
Syravo on AetherEngine 7.35.1 now resolves LibTrueHD 2.2.1 next to LibDovi 2.1.0 and links without
-no_compact_unwindon every target we ship:One note for anyone else picking it up: Xcode kept the 2.2.0 checkout in DerivedData's
SourcePackageseven after LibTrueHD was removed fromPackage.resolved, so resolution kept landing on 2.2.0 until that cache was cleared. After that it resolved 2.2.1 as expected.Fine to close from our end. Thanks for the quick turnaround and the regression check in
harness/verify.sh.chore(deps): LibDTSX 1.0.1 from superuser404notfound (#752, #755)
superuser404notfound commentedon Oct 14, 2026
Thanks for testing on all six targets, and for the DerivedData note. That stale
SourcePackagescheckout is an easy trap, so it is good to have it written down here for the next person who hits it (File > Packages > Reset Package Caches clears it from inside Xcode as well).The fix also ships in 7.36.0, which resolves LibTrueHD 2.2.1 or later out of the box. Closing as fixed.