Repository navigation
WIP: gate stacker to psm-supported targets (fixes niubash ohos cross-check) - #1855
Merged
Merged
Conversation
Refs #1836. Since #1836 made rubash depend on stacker unconditionally, every consumer cross-check also builds psm — and niubash's aarch64-unknown-linux-ohos cross-target check now fails assembling psm's src/arch/aarch_aapcs64.s (no such instruction / operand type mismatch / bad register expression): psm 0.1.32 has no OpenHarmony support anywhere (not in build.rs find_assembly's explicit rows, not in its README platform table, not in its assembly sources). Move the dependency behind a target cfg built from psm 0.1.32's own support matrix: the architectures with an assembly implementation in find_assembly (wasm32 excluded — precompiled object, README marks it unsupported), crossed with the OSes its README table / assembly cover, crossed with the environments those platforms use. The env factor is what excludes OpenHarmony: its triples are target_os = "linux" with target_env = "ohos". src/stack_growth.rs (the only stacker consumer, via ensure_stack at the two #1801 recursion hubs) gets the matching cfg split: inside the matrix it calls stacker::maybe_grow with the unchanged red-zone / segment constants; outside it invokes the closure directly, which is exactly the pre-#1801 behavior. No call site changes; no cfg anywhere else. Unblocks niubash PR #615, whose ohos check is the last red.
Member
Author
|
Gate evidence (local, build-slot, purified env, JOBS=1; logs +
OpenHarmony verification — stronger than the PR body anticipated, because the ohos std component turned out to be installable here (
The local assembler that fails on master is not the OHOS SDK's, so the local "before" is a mechanism reproduction, not the SDK's exact output; the authoritative ohos verdict remains niubash#615's CI re-run after this merges — with psm out of the graph there is nothing left for that job to assemble. |
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.
Refs #1836. Unlocks unixwin/niubash#615.
Problem
#1836 added
stackeras an unconditional dependency. niubash's CI pairs against rubash master, and itscross-target-check (aarch64-unknown-linux-ohos)job now fails inside psm 0.1.32's build: the OpenHarmony SDK assembler rejectssrc/arch/aarch_aapcs64.s(no such instruction / operand type mismatch / bad register expression). psm 0.1.32 supports OpenHarmony nowhere — no explicit row in build.rsfind_assembly, no README platform-table entry, noCFG_TARGET_OS_ohoshandling in its assembly. All other niu cross targets (android / musl / armv7 / x86_64) pass.Change (2 files, purely additive diff)
Cargo.toml:stackermoves under a[target.'cfg(...)'.dependencies]table whose expression is built from psm 0.1.32's own support matrix — architectures with an assembly implementation infind_assembly(wasm32 excluded: precompiled object, README marks it unsupported) × OSes from psm's README table / assembly sources × the target environments those platforms use. The env factor is what excludes OpenHarmony: its triples reporttarget_os = "linux"withtarget_env = "ohos"(verified viarustc --print cfg).src/stack_growth.rs: the sole stacker consumer gets the matching cfg split inside the wrapper only — inside the matrix,ensure_stackcallsstacker::maybe_growwith the unchanged [bug] executor_tests case-body test SIGSEGVs deterministically on pristine master (nested if + =~ + arith-for in case body; suspected stack overflow) #1801 constants; outside it, the closure runs directly (exactly the pre-[bug] executor_tests case-body test SIGSEGVs deterministically on pristine master (nested if + =~ + arith-for in case body; suspected stack overflow) #1801 behavior). The two recursion-hub call sites are untouched, and no cfg appears anywhere else. [bug] executor_tests case-body test SIGSEGVs deterministically on pristine master (nested if + =~ + arith-for in case body; suspected stack overflow) #1801 semantics on supported targets are unchanged.Local verification (full gate log in cluster REPORT)
cargo tree --target <T> -i stacker: present for linux-gnu / android / windows-gnu / darwin; absent for both ohos triples (control: windows-sys on linux prints the same "nothing to print", so the pruning is real).cargo build --locked, lib failure set vs baseline, [bug] executor_tests case-body test SIGSEGVs deterministically on pristine master (nested if + =~ + arith-for in case body; suspected stack overflow) #1801 pins,-D warningscheck — see follow-up comment.cargo checkitself is not claimed as run; the exclusion is proven at the dependency-graph level above, and the real ohos verdict belongs to niubash#615's CI re-run after this merges.