85c0d23 · amd+igpu on Hidden tester · try 2 build-base
The tester's app sends its newest lines with each heartbeat, home folders, user and host names taken out, the last 64 KB kept.
Last line .
Cloning Longshot into <data>/longshot
Making the agent's own Python in <data>/python (the system's python3 lacks Longshot's modules)
Python 3.12.16: downloading from github.com
Python 3.12.16: unpacking into <data>/python
Installing main's requirements.txt into it (the file pins versions, not hashes)
Collecting lz4==4.4.5 (from -r <data>/longshot/requirements.txt (line 6))
Downloading lz4-4.4.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (3.8 kB)
Collecting numpy==2.5.4 (from -r <data>/longshot/requirements.txt (line 7))
Downloading numpy-2.5.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (6.6 kB)
Collecting capstone==5.0.9 (from -r <data>/longshot/requirements.txt (line 8))
Downloading capstone-5.0.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.3 kB)
Collecting unicorn==2.1.4 (from -r <data>/longshot/requirements.txt (line 9))
Downloading unicorn-2.1.4-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.2 kB)
Collecting zstandard==0.25.0 (from -r <data>/longshot/requirements.txt (line 10))
Downloading zstandard-0.25.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (3.3 kB)
Collecting fonttools==4.68.0 (from -r <data>/longshot/nx2/prompt_requirements.txt (line 5))
Downloading fonttools-4.68.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (139 kB)
Collecting pillow==13.0.0 (from -r <data>/longshot/nx2/prompt_requirements.txt (line 6))
Downloading pillow-13.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (9.1 kB)
Collecting astc-encoder-py==0.1.12 (from -r <data>/longshot/nx2/prompt_requirements.txt (line 7))
Downloading astc_encoder_py-0.1.12-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.6 kB)
Collecting archspec==0.2.7 (from -r <data>/longshot/nx2/prompt_requirements.txt (line 8))
Downloading archspec-0.2.7-py3-none-any.whl.metadata (4.4 kB)
Collecting texture2ddecoder==1.0.6 (from -r <data>/longshot/nx2/prompt_requirements.txt (line 9))
Downloading texture2ddecoder-1.0.6-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (8.3 kB)
Downloading lz4-4.4.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 6.1 MB/s 0:00:00
Downloading numpy-2.5.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.7/16.7 MB 6.4 MB/s 0:00:02
Downloading capstone-5.0.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 5.7 MB/s 0:00:00
Downloading unicorn-2.1.4-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.4/16.4 MB 5.6 MB/s 0:00:02
Downloading zstandard-0.25.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (5.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.5/5.5 MB 5.6 MB/s 0:00:01
Downloading fonttools-4.68.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (5.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.4/5.4 MB 5.1 MB/s 0:00:01
Downloading pillow-13.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.1/7.1 MB 5.9 MB/s 0:00:01
Downloading astc_encoder_py-0.1.12-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 5.7 MB/s 0:00:00
Downloading archspec-0.2.7-py3-none-any.whl (87 kB)
Downloading texture2ddecoder-1.0.6-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (399 kB)
Installing collected packages: zstandard, unicorn, texture2ddecoder, pillow, numpy, lz4, fonttools, capstone, archspec, astc-encoder-py
Successfully installed archspec-0.2.7 astc-encoder-py-0.1.12 capstone-5.0.9 fonttools-4.68.0 lz4-4.4.5 numpy-2.5.4 pillow-13.0.0 texture2ddecoder-1.0.6 unicorn-2.1.4 zstandard-0.25.0
Fetching the build tools (tools.lock), outside the sandbox
Downloading the build tools (1 of 5, emsdk, 134 MB) 0%
Downloading the build tools (1 of 5, emsdk, 134 MB) 17%
Downloading the build tools (1 of 5, emsdk, 134 MB) 33%
Downloading the build tools (1 of 5, emsdk, 134 MB) 49%
Downloading the build tools (1 of 5, emsdk, 134 MB) 65%
Unpacking emsdk 83%
Downloading the build tools (2 of 5, ffmpeg, 9 MB) 83%
Unpacking ffmpeg 88%
Downloading the build tools (3 of 5, sdl2, 0 MB) 88%
Unpacking sdl2 89%
Downloading the build tools (4 of 5, sysroot, 15 MB) 89%
Unpacking sysroot 98%
Downloading the build tools (5 of 5, cpm, 2 MB) 98%
Unpacking cpm 100%
The build tools are ready 100%
export EMSDK=<data>/tools/longshot/builder/toolchains/dev/usr/lib/longshot/emsdk
export LONGSHOT_FFMPEG=<data>/tools/longshot/builder/toolchains/dev/usr/lib/longshot/ffmpeg
export LONGSHOT_SDL2=<data>/tools/longshot/builder/toolchains/dev/usr/lib/longshot/sdl2/libSDL2-2.0.so.0
export LONGSHOT_SYSROOT=<data>/tools/longshot/builder/toolchains/dev/usr/lib/longshot/sysroot
export RX_CPM=<data>/tools/longshot/builder/toolchains/dev/usr/share/longshot/cpm
Reading your .nup once to know it again (its SHA-256)
Building Longshot's ZBIC reader (third_party/zbic) for the .nup, outside the sandbox
Reading your .nup into the data folder, once (Longshot's nx2/nup.py, in the sandbox)
<game files>: 25.62 GB, 2 titles, 1199 dirs, 372587 files
title 0: 0400486024dec000 v65536 exefs 5 files (main 29840183, main.npdm 1828, rtld 10521, sdk 7834834, subsdk0 533397) romfs 185994 files, 26.23 GB
title 1: 0400486024dec800 v131072 exefs 5 files (main 29953289, main.npdm 1828, rtld 10524, sdk 7833714, subsdk0 533396) romfs 186583 files, 26.24 GB
extracting title 1 (v131072) to <game files>/85b08e81a2a08612f88de1063c8581fe.part (152 GB free)
1559.8 MiB written (10218 files completed)
3722.0 MiB written (17852 files completed)
5361.2 MiB written (25156 files completed)
6708.3 MiB written (37736 files completed)
7648.8 MiB written (60233 files completed)
8787.1 MiB written (85597 files completed)
10786.0 MiB written (111350 files completed)
12865.9 MiB written (130305 files completed)
14993.9 MiB written (149433 files completed)
16906.3 MiB written (159409 files completed)
18644.2 MiB written (163823 files completed)
20349.1 MiB written (169957 files completed)
22116.2 MiB written (172205 files completed)
23891.3 MiB written (174543 files completed)
done: 186588 files written, 26.27 GB
main: ZBIC -> plain NSO
damaged game files given a stand-in: 0
the main base: /usr/bin/nice -n 10 <data>/python/bin/python3 -I <data>/longshot/scripts/dev_packs.py base <data>/bases/main --romfs <game files>/85b08e81a2a08612f88de1063c8581fe/romfs --exefs <game files>/85b08e81a2a0861
+ <data>/python/bin/python3 -I nx2/make_game.py --romfs <game files>/85b08e81a2a08612f88de1063c8581fe/romfs --exefs <game files>/85b08e81a2a08612f88de1063c8581fe/exefs --work <data>/bases/main/work --out <data>/bases/m
build: the game is built for this PC's CPU (znver4_znver4_f001bee9bc)
Linux build prerequisites: OK
@@stage read Reading your game files
rtld not ZBIC, kept
main not ZBIC, kept
subsdk0 not ZBIC, kept
sdk not ZBIC, kept
@@progress 0.000
the game's name: none (Longshot), its icon: none
the hot list: the committed assets/profiles/hot_funcs.txt
@@stage lift Translating the game to PC code
host/ defines 3 imp_ functions for symbols no module has (unused):
_ZN2nn2os11SystemEventC2ENS0_14EventClearModeEb
_ZN2nn2os11SystemEventD2Ev
_ZN2nn5audio29SetVoiceBiquadFilterParameterEPNS0_9VoiceTypeEiRKNS0_21BiquadFilterParameterE
standalone: 563 HLE functions in host/, 189 OS-facing imports stubbed
image: rtld@0x80000000+0x20000, main@0x80020000+0x4ea0000, subsdk0@0x84ec0000+0xe0000, sdk@0x84fa0000+0x1080000; 295178 entries, 0 trampolines (0 unresolved non-weak imports) (3s)
ADR / ADRP+ADD code addresses outside the 284387 unwind-covered functions: 14083, 79 of them new entries
entry hooks: 6 of 6 (memcpy sdk+0x78f020, memmove sdk+0x78f040, memset sdk+0x78f300, strlen sdk+0x7a7d40, memcmp sdk+0x7bd280, strcmp sdk+0x7bd380)
widescreen: 18 of 18 sites
field of view: gameplay lens hooked
shadow resolution: sun cascades hooked
dlss jitter: 3 of 3 sites
locals: 16 functions with spliced code kept in the context
locals: 26 functions entered above their first block kept in the context
locals: 68 functions that hold an address the patches name kept in the context
locals: 207258 functions no play session ran kept in the context (nx2/ran_funcs.txt)
discovered 294518 functions (27s)
@@progress 0.190
building liba64emit.so
module functions complete leaf instructions untranslated BLR BR(not table)
main 249484 100.00% 87939 15379565 0 166923 10691
sdk 43487 100.00% 23553 2131585 0 15068 12288
subsdk0 1503 100.00% 789 132606 0 774 543
rtld 44 100.00% 19 2370 0 26 6
all 294518 100.00% 112300 17646126 0 182791 23528
undefined encodings reached (UDF, unallocated: trap, as on the hardware): 18526 sites
translated instructions: 100.0000% of 17646126 (shared tails counted once per function)
lift: coverage in 15.2s (42s)
@@progress 0.289
jump tables 1475 (bounded 1385, bounded by function 58, ADR table 1), BR without a table 0, PLT stubs 9917
jump tables whose table register is reused before the br: 7
hot functions (A64_HOT_FUNCS): 680 of 680 listed found, in code_hot.c
fast float regions (A64_FASTFP=1): 10958, 148033 float ops in them
lift: emit and write (2 processes) in 86.6s (129s)
@@progress 0.691
chunks: code_013.c (24 MB, cost 49 MB) in 3 parts
chunks: code_021.c (24 MB, cost 91 MB) in 4 parts
chunks: code_022.c (24 MB, cost 107 MB) in 4 parts
chunks: code_023.c (24 MB, cost 148 MB) in 3 parts
lift: big chunks split in 1.7s (130s)
@@progress 0.762
chunks: 67, boundaries from sizes (saved)
oot_patches: the zstd stream decode's host hook in code_000.c
oot_patches: 1 frame counter(s) with the step's whole frames in code_000.c
oot_patches: a moving floor's carry above 60 fps in code_000.c
oot_patches: the menus' focus hook in code_001.c
oot_patches: heap-full retries of the OptimizeChangeBank allocations in code_002.c
oot_patches: 1 frame counter(s) with the step's whole frames in code_002.c
oot_patches: the sound job at 60 Hz above 60 fps in code_002.c
oot_patches: movement speed in code_003.c
oot_patches: player flight rotation in code_004.c
oot_patches: the scene buffer's format for native HDR in code_004.c
oot_patches: camera speed at 2 function(s) in code_004.c
oot_patches: the frame's time at 1 step divide(s) in code_004.c
oot_patches: 1 frame counter(s) with the step's whole frames in code_004.c
oot_patches: dynamic resolution switch in code_005.c
oot_patches: the texture heap's compaction asked for through the host in code_005.c
oot_patches: movement speed in code_006.c
oot_patches: text speed scale and text size in code_007.c
oot_patches: the Voice Language option followed after option.sav is read in code_007.c
oot_patches: 1 frame counter(s) with the step's whole frames in code_007.c
oot_patches: save request trace in code_008.c
oot_patches: the opening skip at 1 function(s) in code_009.c
oot_patches: the opening skip at 1 function(s) in code_010.c
oot_patches: the text boxes' draw hook in code_015.c
oot_patches: the text boxes' layout hook in code_015.c
oot_patches: the glyphs' hook in code_017.c
oot_patches: the cloth's time below 60 fps in code_021.c
oot_patches: the saved steering rate above 60 fps in code_029.c
oot_patches: the ocarina note wait in code_031.c
oot_patches: a horse's jump blend above 60 fps in code_034.c
oot_patches: camera speed at 2 function(s) in code_036.c
oot_patches: the fixed path's scale in code_038.c
oot_patches: 3 frame counter(s) with the step's whole frames in code_039.c
oot_patches: the song playbacks' note flag once a note above 60 fps in code_039.c
oot_patches: the solver steps rounded up above 60 fps in code_044.c
oot_patches: a moving floor's carry above 60 fps in code_044.c
oot_patches: the opening skip at 1 function(s) in code_046.c
oot_patches: the frame's time at 1 step divide(s) in code_046.c
oot_patches: the movie's frame count by the frames' time in code_047.c
oot_patches: the menus' update hook in code_hot.c
oot_patches: the zstd whole-buffer decode's host hook in code_hot.c
oot_patches: 2 animation clock(s) with whole frames for a loop of one frame in code_hot.c
oot_patches: the drawn time of a loop of one frame by its start in code_hot.c
oot_patches: player heart protection in code_hot.c
oot_patches: player flight in code_hot.c
oot_patches: native mouse camera in code_hot.c
oot_patches: disable camera centering switch in code_hot.c
oot_patches: free camera in code_hot.c
oot_patches: the music manager's whole step above 60 fps in code_hot.c
oot_patches: the music manager's change flags kept above 60 fps in code_hot.c
oot_patches: the job barriers' sleeps and mask ORs through the host in code_hot.c
oot_patches: the cloth's solves above 60 fps in code_hot.c
oot_patches: a moving floor's carry above 60 fps in code_hot.c
oot_patches: Link's driven body's target above 60 fps in code_hot.c
lift: patches (2 processes) in 12.5s (143s)
@@progress 0.802
oot_patches: output size in code_008.c
oot_patches: output size in code_010.c
oot_patches: output size in code_012.c
oot_patches: output size in code_013_1.c
oot_patches: output size in code_042.c
oot_patches: output size in code_047.c
lift: output size and page-mark groups in 9.4s (152s)
@@progress 0.954
locals: 1 functions kept in the context for the patches; 42 patched functions checked in the written C
lift: locals check in 3.2s (156s)
standalone: hos_image.c (thread hooks 0x85e5dc40, 0x85e5dc48), 189 import stubs
standalone: nvn2_exports.c (22 sdk NVN functions routed to host/nvn2.c)
lift: runtime tables and standalone files (beside the edits) in 0.0s (156s)
@@progress 1.000
functions 294518, instructions 17646126 (with shared tails), jump tables 1475, indirect BR 13260 of 25011, PLT stubs 9917, unhandled words 16 (18526 sites), bad targets 0
jump tables: 1385 bounded, 58 bounded by the function, 3 rejected (target outside), 0 table not found
br to a code constant: 1; br with adr candidates: 39
page marks: 91934 groups share one mark for 408853 of 600156 stores through a base register
functions with code below their entry, started at it by a goto: 26
entry hooks spliced: 6
interrupt polls: 683130 loop headers in 113681 functions
wrote 67 code files to <data>/bases/main/work/sa/gen (157s)
done (157s)
split_hot: piece 0: 38 functions, 12 MB, cost 52 MB
split_hot: piece 1: 47 functions, 12 MB, cost 32 MB
split_hot: piece 2: 137 functions, 13 MB, cost 25 MB
split_hot: piece 3: 66 functions, 10 MB, cost 25 MB
split_hot: piece 4: 125 functions, 14 MB, cost 25 MB
split_hot: piece 5: 154 functions, 14 MB, cost 25 MB
split_hot: piece 6: 76 functions, 8 MB, cost 25 MB
split_hot: piece 7: 37 functions, 5 MB, cost 25 MB
split_hot: 2021 of 3137 calls stay in one piece (2021 in one group)
@@stage compile Compiling
build: the game is built for this PC's CPU (znver4_znver4_f001bee9bc)
version: v3.0.0-44-g9ea65c7b (source 9d773bbf)
build: 53 lifted chunks without -O1's module passes (LONGSHOT_LIGHT_PASSES, functions under 1024 KB): code_000.c code_001.c code_002.c code_003.c code_004.c code_005.c code_006.c code_007.c code_008.c code_009.c code_010.c code_011.c code_012.c code_013_1.c code_013_2.c code_014.c code_016.c code_
object keys: game-code headers 6978645e5c, flags 1fdd8d876f, hot flags 8b3b1438ea, lifted code 6e70d1d335 (74 files)
the Vulkan back end: Vulkan <data>/tools/longshot/builder/toolchains/dev/usr/share/longshot/cpm/vulkanheaders/v1.4.345, SPIR-V <data>/tools/longshot/builder/toolchains/dev/usr/share/longshot/cpm/spirv-headers/vulkan-sdk-1.4.341.0, VMA <data>/tools/lo
the Vulkan back end: built with the profile <data>/bases/main/work/longshot_vk.shipped.profdata
@@plan 514 514
@@eta 7370
514 files, 1 jobs, -DLONGSHOT_NATIVE_CPU=znver4_znver4_f001bee9bc -O1 -DA64_POLLING -DA64_WRITE_TRACK -DA64_MARK_BITMAP
code_hot_0.c 12 MB 150s (150s)
@@progress 0.040
@@file code_hot_0.c 150.0 new
@@eta 7073
code_hot_1.c 12 MB 85s (235s)
@@progress 0.081
@@file code_hot_1.c 84.8 new
@@eta 6775
code_hot_5.c 14 MB 84s (319s)
@@progress 0.127
@@file code_hot_5.c 84.2 new
@@eta 6437
code_hot_4.c 14 MB 91s (410s)
@@progress 0.172
@@file code_hot_4.c 90.7 new
@@eta 6101
code_hot_2.c 13 MB 134s (544s)
@@progress 0.215
@@file code_hot_2.c 134.3 new
@@eta 5784
code_hot_3.c 10 MB 82s (627s)
@@progress 0.248
@@file code_hot_3.c 82.5 new
@@eta 5542
code_hot_6.c 8 MB 174s (801s)
@@progress 0.276
@@file code_hot_6.c 173.9 new
@@eta 5334