bug at translating #530

Closed
opened 2026-11-08 08:44:35 +00:00 by Aarong1290 · 1 comment
Aarong1290 commented 2026-11-08 08:44:35 +00:00 (Migrated from github.com)

Builder version

Builder fix: builds fast again

How you built

Hookshot Builder app (Windows)

Game files given to it

A .nup

The error

I got this issue:

Hookshot Builder ultrawide on Windows 10.0.26300.0
The build stopped: lift.py stopped (exit status 1): OSError: [Errno 22] Invalid argument: 'C:\\Users\\quesa\\AppData\\Local\\HookshotBuilder\\sa\\gen\\a64_fpx.h'

build: 4 compilers at once (16 CPU threads, 7 GB of memory free; HOOKSHOT_JOBS=<n> to change)
the compiler: C:\Users\quesa\AppData\Local\HookshotBuilder\versions\ultrawide\HookshotBuilder\tools\llvm-mingw (no Visual Studio needed)
the system headers changed since the last build: its compiled objects are not reused (C:\Users\quesa\AppData\Local\HookshotBuilder\objcache)
the system headers changed since the last build: its compiled objects are not reused (C:\Users\quesa\AppData\Local\HookshotBuilder\sa\build\obj)
@@stage read Reading your game files
the game was read from this .nup before: reading it again is skipped
@@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: 511 HLE functions in host/, 230 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) (4s)
ADR / ADRP+ADD code addresses outside the 284387 unwind-covered functions: 14083, 79 of them new entries
widescreen: 10 of 10 sites
discovered 294529 functions (47s)
module    functions  complete   leaf      instructions  untranslated  BLR       BR(not table)
main         249484  100.00%     87939      15379565             0    166923     10691
sdk           43498  100.00%     23560       2131960             0     15068     12294
subsdk0        1503  100.00%       789        132606             0       774       543
rtld             44  100.00%        19          2370             0        26         6
all          294529  100.00%    112307      17646501             0    182791     23534
undefined encodings reached (UDF, unallocated: trap, as on the hardware): 18533 sites
translated instructions: 100.0000% of 17646501 (shared tails counted once per function)
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
Traceback (most recent call last):
  File "C:\Users\quesa\AppData\Local\HookshotBuilder\versions\ultrawide\HookshotBuilder\tools\nx2\lift.py", line 195, in <module>
    main()
    ~~~~^^
  File "C:\Users\quesa\AppData\Local\HookshotBuilder\versions\ultrawide\HookshotBuilder\tools\nx2\lift.py", line 177, in main
    files = chunks.write(L, gen, os.path.join(a.work, "image"), a.rechunk and not a.standalone)
  File "C:\Users\quesa\AppData\Local\HookshotBuilder\versions\ultrawide\HookshotBuilder\tools\nx2\chunks.py", line 91, in write
    files = L.write(gen_dir, chunk_bytes=b)
  File "C:\Users\quesa\AppData\Local\HookshotBuilder\versions\ultrawide\HookshotBuilder\tools\third_party\a64-kit\lift\a64_lift.py", line 1487, in write
    with open(os.path.join(out_dir, "a64_fpx.h"), "w", newline="\n") as f:
         ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 22] Invalid argument: 'C:\\Users\\quesa\\AppData\\Local\\HookshotBuilder\\sa\\gen\\a64_fpx.h'
@@error lift.py stopped (exit status 1): OSError: [Errno 22] Invalid argument: 'C:\\Users\\quesa\\AppData\\Local\\HookshotBuilder\\sa\\gen\\a64_fpx.h'

Visual Studio or Build Tools version, and Windows SDK version

No response

Operating system and free space on the output drive

windows 11 26h2 674 gb free

Before you send it

  • I'm on the newest release, or it still fails on it.
  • I searched the open issues for this error.
  • I'm not attaching game files or anything built from them.
### Builder version Builder fix: builds fast again ### How you built Hookshot Builder app (Windows) ### Game files given to it A .nup ### The error ```text I got this issue: Hookshot Builder ultrawide on Windows 10.0.26300.0 The build stopped: lift.py stopped (exit status 1): OSError: [Errno 22] Invalid argument: 'C:\\Users\\quesa\\AppData\\Local\\HookshotBuilder\\sa\\gen\\a64_fpx.h' build: 4 compilers at once (16 CPU threads, 7 GB of memory free; HOOKSHOT_JOBS=<n> to change) the compiler: C:\Users\quesa\AppData\Local\HookshotBuilder\versions\ultrawide\HookshotBuilder\tools\llvm-mingw (no Visual Studio needed) the system headers changed since the last build: its compiled objects are not reused (C:\Users\quesa\AppData\Local\HookshotBuilder\objcache) the system headers changed since the last build: its compiled objects are not reused (C:\Users\quesa\AppData\Local\HookshotBuilder\sa\build\obj) @@stage read Reading your game files the game was read from this .nup before: reading it again is skipped @@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: 511 HLE functions in host/, 230 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) (4s) ADR / ADRP+ADD code addresses outside the 284387 unwind-covered functions: 14083, 79 of them new entries widescreen: 10 of 10 sites discovered 294529 functions (47s) module functions complete leaf instructions untranslated BLR BR(not table) main 249484 100.00% 87939 15379565 0 166923 10691 sdk 43498 100.00% 23560 2131960 0 15068 12294 subsdk0 1503 100.00% 789 132606 0 774 543 rtld 44 100.00% 19 2370 0 26 6 all 294529 100.00% 112307 17646501 0 182791 23534 undefined encodings reached (UDF, unallocated: trap, as on the hardware): 18533 sites translated instructions: 100.0000% of 17646501 (shared tails counted once per function) 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 Traceback (most recent call last): File "C:\Users\quesa\AppData\Local\HookshotBuilder\versions\ultrawide\HookshotBuilder\tools\nx2\lift.py", line 195, in <module> main() ~~~~^^ File "C:\Users\quesa\AppData\Local\HookshotBuilder\versions\ultrawide\HookshotBuilder\tools\nx2\lift.py", line 177, in main files = chunks.write(L, gen, os.path.join(a.work, "image"), a.rechunk and not a.standalone) File "C:\Users\quesa\AppData\Local\HookshotBuilder\versions\ultrawide\HookshotBuilder\tools\nx2\chunks.py", line 91, in write files = L.write(gen_dir, chunk_bytes=b) File "C:\Users\quesa\AppData\Local\HookshotBuilder\versions\ultrawide\HookshotBuilder\tools\third_party\a64-kit\lift\a64_lift.py", line 1487, in write with open(os.path.join(out_dir, "a64_fpx.h"), "w", newline="\n") as f: ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ OSError: [Errno 22] Invalid argument: 'C:\\Users\\quesa\\AppData\\Local\\HookshotBuilder\\sa\\gen\\a64_fpx.h' @@error lift.py stopped (exit status 1): OSError: [Errno 22] Invalid argument: 'C:\\Users\\quesa\\AppData\\Local\\HookshotBuilder\\sa\\gen\\a64_fpx.h' ``` ### Visual Studio or Build Tools version, and Windows SDK version _No response_ ### Operating system and free space on the output drive windows 11 26h2 674 gb free ### Before you send it - [x] I'm on the newest release, or it still fails on it. - [x] I searched the open issues for this error. - [x] I'm not attaching game files or anything built from them.
NotRexed commented 2026-11-08 10:39:45 +00:00 (Migrated from github.com)

Fixed in release https://github.com/NotRexed/Hookshot/releases/tag/low-vram: the Errno 22 / WinError 1224 failures came from a build left running by an earlier one (builder closed or updated mid-build) that still held the work folder's files. A new build now stops that leftover build first. If it still happens, a restart of the PC clears it too; please reopen with the log.

Fixed in release https://github.com/NotRexed/Hookshot/releases/tag/low-vram: the Errno 22 / WinError 1224 failures came from a build left running by an earlier one (builder closed or updated mid-build) that still held the work folder's files. A new build now stops that leftover build first. If it still happens, a restart of the PC clears it too; please reopen with the log.
Commenting is not possible because the repository is archived.
No milestone
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Hookshot#530
No description provided.