Skip to content

Host tests link again: a stub for the present's screen shape (t_nro, t_symbols) - #1454

Closed
lunks wants to merge 1 commit into
seedds:mainfrom
lunks:pr/host-tests-link
Closed

lunks wants to merge 1 commit into
seedds:mainfrom
lunks:pr/host-tests-link

Conversation

@lunks

@lunks lunks commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

What and why

2202d610 made dm/host/loader.c call mtl_present_screen (in nvn_mtl.m). t_nro.c and t_symbols.c include loader.c without linking nvn_mtl.m, so both stopped linking:

Undefined symbols for architecture arm64: "_mtl_present_screen", referenced from: _dm_fps_state_apply in t_nro-….o

The Sanitizers (ASan, UBSan and TSan …) job of the tests workflow runs them and fails on every pull request since (for example #1307). Each test gets the same no-op stub the other host tests already have for the present. #1444 carries the same two lines among its changes; this takes them alone so the check is green for everyone.

Checked

  • Tests: make -C dm/host/tests GAME=040074A01BF12000 build/t_nro build/t_symbols, then both run: OK. The ASan build itself was not run here.
  • Games run: none. Devices and OS: M5 Pro, macOS 26.

Docs

  • No game files, keys or data extracted from a game in the change or the attachments

…from loader.c since 2202d61

2202d61 made dm/host/loader.c call mtl_present_screen (nvn_mtl.m). t_nro.c and t_symbols.c include loader.c without linking nvn_mtl.m, so both stopped linking (Undefined symbols _mtl_present_screen) and the Sanitizers job of the tests workflow fails on every pull request. Each gets the same no-op stub the other host tests already have for the present.

Checked: make -C dm/host/tests GAME=040074A01BF12000 build/t_nro build/t_symbols, then both run: OK.
@github-actions github-actions Bot added the host The Horizon host: SVCs, services, threads, memory (dm/host) label Nov 6, 2026
lunks added a commit to lunks/nxnative that referenced this pull request Nov 6, 2026
dm/host/tests/Makefile: main's run line (t_net_eventfd first) with t_vi_display kept. t_vi_display needs a stub of mtl_present_layer, called from hle_vi.c since 2202d61, as t_nro and t_symbols needed one for mtl_present_screen (seedds#1454).

Checked: make -C dm/host/tests GAME=040074A01BF12000 build/t_vi_display, then it runs.
@lunks

lunks commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Main has the same two stubs now (2eb7182), so this is covered; closing. Thanks.

@lunks lunks closed this Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

host The Horizon host: SVCs, services, threads, memory (dm/host)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant