Skip to content

WIP: gate stacker to psm-supported targets (fixes niubash ohos cross-check) - #1855

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/stacker-ohos-target-gate
Oct 27, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/stacker-ohos-target-gate

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Refs #1836. Unlocks unixwin/niubash#615.

Problem

#1836 added stacker as an unconditional dependency. niubash's CI pairs against rubash master, and its cross-target-check (aarch64-unknown-linux-ohos) job now fails inside psm 0.1.32's build: the OpenHarmony SDK assembler rejects src/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.rs find_assembly, no README platform-table entry, no CFG_TARGET_OS_ohos handling in its assembly. All other niu cross targets (android / musl / armv7 / x86_64) pass.

Change (2 files, purely additive diff)

Local verification (full gate log in cluster REPORT)

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.
@caomengxuan666

Copy link
Copy Markdown
Member Author

Gate evidence (local, build-slot, purified env, JOBS=1; logs + .done markers in the cluster dir):

OpenHarmony verification — stronger than the PR body anticipated, because the ohos std component turned out to be installable here (rustup target add aarch64-unknown-linux-ohos):

  • Before (pristine master 9e71b690, control worktree): cargo check --locked --lib --target aarch64-unknown-linux-ohos fails rc=101 inside psm 0.1.32, with the same assembler errors at the same aarch_aapcs64.s lines as the niubash CI log (36: no such instruction; 48/61: operand mismatch; 74: bad register expression).
  • After (this branch): the same command passes rc=0 — cargo tree --target aarch64-unknown-linux-ohos -i stacker prints "nothing to print" (stacker/psm are not in the target's graph at all), while linux-gnu / android / windows-gnu / darwin still resolve stacker as before.

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.

@caomengxuan666
caomengxuan666 marked this pull request as ready for review October 27, 2026 10:26
@caomengxuan666
caomengxuan666 merged commit ab2372f into master Oct 27, 2026
9 of 11 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/stacker-ohos-target-gate branch October 30, 2026 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant