Install: v3.0.0 Windows build fails compiling code_044 with undeclared _p1 #1762
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot#1762
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Reported on Discord
What you used
Longshot Launcher v1.0.0, build screen reports
make_game.pystopped.Version and channel
Building Longshot v3.0.0 (release); the reporter says they are still stuck on rc.3 and cannot compile another version.
Where it stopped
Compile, at 50%.
Error
Steps and expected result
The reporter tried building another Longshot version with
make_game.pythrough the launcher, but the build stops. They expected it to compile successfully. The launcher indicates rebuilding retains completed work and can resume where it stopped. They have sent the status report.System
Windows (from the error path). Other system details not supplied.
Logs and screenshot
The reporter's screenshot shows the build failure and status report marked Sent (Discord message 1573023580222914701). No full build log was attached.
Related reports
Longshot#1414 and Longshot#985 are other generated-C build compilation failures, but involve different compiler errors/builds. PR #1147 fixes renderer-only development build parallelism, not this generated game-code compiler error.
Missing
Exact rc.3 identifier/build attempt, Windows version, CPU/RAM, GPU and driver, free space, and full launcher/builder logs.
Longshot Launcher v1.0.0 (installed), launcher channel stable, builds from stable
Microsoft Windows 10.0.26300, X64, .NET 10.0.15
network: git-cdn.magicbean.dev first, then git.magicbean.dev; proxy: none
what happened: the build stopped: build.py stopped (exit status 1): %USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\gen\code_032.c:107583:32: error: use of undeclared identifier 'x'
build: Build nightly-582-819a5967 (nightly)
PC: 31 GB, 16 threads, AMD GPU
settings: memory automatic, workers automatic, DLSS off, FSR 4 on, XeSS off
build log, its last 200 lines:
double_min_max.cpp 0 MB 2s (50s)
double_multiply.cpp 0 MB 2s (50s)
exit_program.cpp 0 MB 2s (50s)
find_leading_one.cpp 0 MB 2s (50s)
floating_point_add.cpp 0 MB 2s (51s)
floating_point_compare.cpp 0 MB 2s (51s)
floating_point_compare_and_set.cpp 0 MB 2s (51s)
floating_point_conversion_floating_point.cpp 0 MB 2s (51s)
floating_point_min_max.cpp 0 MB 2s (51s)
floating_point_conversion_integer.cpp 0 MB 2s (51s)
floating_point_fused_multiply_add.cpp 0 MB 2s (51s)
floating_point_set_predicate.cpp 0 MB 1s (52s)
floating_point_multi_function.cpp 0 MB 2s (52s)
floating_point_multiply.cpp 0 MB 2s (52s)
half_floating_point_add.cpp 0 MB 1s (52s)
floating_point_range_reduction.cpp 0 MB 2s (52s)
floating_point_swizzled_add.cpp 0 MB 2s (53s)
half_floating_point_set_predicate.cpp 0 MB 1s (53s)
half_floating_point_fused_multiply_add.cpp 0 MB 2s (53s)
half_floating_point_helper.cpp 0 MB 2s (53s)
half_floating_point_set.cpp 0 MB 2s (54s)
half_floating_point_multiply.cpp 0 MB 2s (54s)
impl.cpp 0 MB 2s (54s)
integer_add.cpp 0 MB 2s (54s)
integer_add_three_input.cpp 0 MB 2s (54s)
code_021.c 19 MB 50s (54s)
integer_compare_and_set.cpp 0 MB 2s (55s)
integer_compare.cpp 0 MB 2s (55s)
integer_popcount.cpp 0 MB 1s (55s)
integer_set_predicate.cpp 0 MB 1s (55s)
integer_scaled_add.cpp 0 MB 2s (55s)
integer_floating_point_conversion.cpp 0 MB 2s (55s)
integer_funnel_shift.cpp 0 MB 2s (55s)
integer_minimum_maximum.cpp 0 MB 2s (55s)
integer_shift_left.cpp 0 MB 2s (56s)
integer_shift_right.cpp 0 MB 2s (56s)
integer_short_multiply_add.cpp 0 MB 2s (56s)
integer_to_integer_conversion.cpp 0 MB 2s (56s)
internal_stage_buffer_entry_read.cpp 0 MB 2s (57s)
load_constant.cpp 0 MB 2s (57s)
load_effective_address.cpp 0 MB 2s (57s)
load_store_local_shared.cpp 0 MB 2s (57s)
load_store_attribute.cpp 0 MB 2s (57s)
load_store_memory.cpp 0 MB 2s (57s)
logic_operation.cpp 0 MB 2s (58s)
logic_operation_three_input.cpp 0 MB 2s (58s)
move_register.cpp 0 MB 1s (58s)
matrix_multiply_nx2.cpp 0 MB 2s (58s)
move_predicate_to_register.cpp 0 MB 2s (59s)
output_geometry.cpp 0 MB 2s (59s)
move_register_to_predicate.cpp 0 MB 2s (59s)
predicate_set_predicate.cpp 0 MB 2s (59s)
register_map_nx2.cpp 0 MB 2s (59s)
move_special_register.cpp 0 MB 2s (59s)
not_implemented.cpp 0 MB 2s (59s)
pixel_load.cpp 0 MB 2s (60s)
predicate_set_register.cpp 0 MB 2s (60s)
select_source_with_predicate.cpp 0 MB 2s (60s)
surface_atomic_operations.cpp 0 MB 3s (61s)
surface_load_store.cpp 0 MB 3s (61s)
texture_fetch_swizzled.cpp 0 MB 2s (61s)
texture_fetch.cpp 0 MB 3s (61s)
texture_gather.cpp 0 MB 3s (61s)
texture_gather_swizzled.cpp 0 MB 2s (62s)
texture_load.cpp 0 MB 2s (62s)
texture_gradient.cpp 0 MB 3s (62s)
texture_load_swizzled.cpp 0 MB 3s (62s)
texture_mipmap_level.cpp 0 MB 3s (62s)
texture_query.cpp 0 MB 2s (62s)
video_helper.cpp 0 MB 2s (63s)
video_minimum_maximum.cpp 0 MB 2s (63s)
video_multiply_add.cpp 0 MB 2s (63s)
video_set_predicate.cpp 0 MB 2s (63s)
conditional_barrier_pass.cpp 0 MB 1s (64s)
vote.cpp 0 MB 2s (64s)
warp_shuffle.cpp 0 MB 2s (64s)
translate.cpp 0 MB 2s (64s)
dead_code_elimination_pass.cpp 0 MB 1s (64s)
dual_vertex_pass.cpp 0 MB 2s (64s)
collect_shader_info_pass.cpp 0 MB 3s (64s)
identity_removal_pass.cpp 0 MB 1s (65s)
layer_pass.cpp 0 MB 1s (65s)
constant_propagation_pass.cpp 0 MB 3s (65s)
geometry_compaction_pass.cpp 0 MB 2s (65s)
translate_program.cpp 0 MB 4s (65s)
lower_fp16_to_fp32.cpp 0 MB 2s (66s)
lower_fp64_to_fp32.cpp 0 MB 2s (66s)
lower_int64_to_int32.cpp 0 MB 2s (66s)
perf_os_posix.cpp 0 MB 1s (66s)
position_pass.cpp 0 MB 2s (66s)
rescaling_pass.cpp 0 MB 2s (66s)
annotation.cpp 0 MB 1s (67s)
ssa_rewrite_pass.cpp 0 MB 2s (67s)
arithmetic.cpp 0 MB 1s (67s)
perf_os_win.cpp 0 MB 1s (67s)
vendor_workaround_pass.cpp 0 MB 2s (67s)
atomic.cpp 0 MB 1s (67s)
verification_pass.cpp 0 MB 2s (67s)
perf_curl.cpp 0 MB 2s (67s)
barrier.cpp 0 MB 1s (67s)
bit.cpp 0 MB 1s (68s)
conversion.cpp 0 MB 1s (68s)
constant.cpp 0 MB 1s (68s)
derivatives.cpp 0 MB 1s (68s)
global_memory_to_storage_buffer_pass.cpp 0 MB 5s (68s)
debug.cpp 0 MB 1s (68s)
function.cpp 0 MB 1s (68s)
flow.cpp 0 MB 1s (68s)
extension.cpp 0 MB 1s (68s)
group.cpp 0 MB 1s (68s)
misc.cpp 0 MB 1s (69s)
stream.cpp 0 MB 1s (69s)
logical.cpp 0 MB 1s (69s)
image.cpp 0 MB 1s (69s)
texture_pass.cpp 0 MB 4s (69s)
memory.cpp 0 MB 1s (69s)
code_020.c 21 MB 67s (69s)
type.cpp 0 MB 1s (69s)
sirit.cpp 0 MB 1s (69s)
perf_report.cpp 0 MB 4s (70s)
vk_antilag.cpp 0 MB 1s (70s)
vk_builtin_spv.cpp 0 MB 1s (70s)
vk_bank.cpp 0 MB 2s (70s)
vk_formats.cpp 0 MB 1s (70s)
vk_crash_window.cpp 0 MB 1s (71s)
vk_fps.cpp 0 MB 1s (71s)
vk_bug_report.cpp 0 MB 2s (71s)
vk_coopmat.cpp 0 MB 2s (71s)
vk_dlss.cpp 0 MB 2s (71s)
vk_dump.cpp 0 MB 2s (72s)
vk_gpu_clock.cpp 0 MB 1s (72s)
vk_hangdump.cpp 0 MB 1s (72s)
vk_fsr3.cpp 0 MB 3s (72s)
vk_fsr3_inputs.cpp 0 MB 2s (72s)
vk_framegen.cpp 0 MB 3s (72s)
vk_fsr3fi.cpp 0 MB 3s (73s)
vk_jobs.cpp 0 MB 2s (73s)
vk_gprof.cpp 0 MB 2s (73s)
vk_imgui.cpp 0 MB 2s (73s)
vk_menu_i18n.cpp 0 MB 2s (74s)
vk_main.cpp 0 MB 3s (74s)
vk_reflex.cpp 0 MB 2s (75s)
vk_reactive.cpp 0 MB 2s (75s)
vk_predict.cpp 0 MB 3s (75s)
vk_fsr4.cpp 0 MB 5s (76s)
zstd.c 2 MB 0s (76s)
vk_programs.cpp 0 MB 4s (76s)
vk_progcache.cpp 0 MB 5s (77s)
vk_xfer.cpp 0 MB 2s (77s)
vk_xess.cpp 0 MB 2s (77s)
vk_vma.cpp 0 MB 3s (78s)
vk_temporal.cpp 0 MB 4s (78s)
vk_menu.cpp 0 MB 6s (78s)
vk_replay.cpp 0 MB 8s (80s)
vk_shader.cpp 0 MB 9s (83s)
vk_texture.cpp 0 MB 8s (83s)
vk_draw.cpp 0 MB 15s (84s)
vk_memory.cpp 0 MB 12s (84s)
code_019.c 23 MB 96s (97s)
code_hot_0.c 12 MB 142s (143s)
FAILED code_013.c (9 MB, 1s, alone too):
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\gen\code_013.c:25342:71: error: expected ';' after expression
25342 | c->x[8] = x8_; c->x[19] = x19_; c->x[29] = x29_; c->x[30] = x30_; c->x<U+0000>31] = x31_; return;
| ^
| ;
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\gen\code_013.c:25342:74: error: expected ';' after expression
25342 | c->x[8] = x8_; c->x[19] = x19_; c->x[29] = x29_; c->x[30] = x30_; c->x<U+0000>31] = x31_; return;
| ^
| ;
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\gen\code_013.c:25342:74: error: expected expression
3 errors generated.
FAILED code_hot_4.c (14 MB, 2s, alone too):
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_hot_4.split.c:65458:7: error: use of undeclared identifier 'u'
65458 | { u<U+0000>nt64_t r = ((uint64_t)0 | ((x11) << 0)); c->x[25] = _r; }
| ^
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_hot_4.split.c:65458:63: error: use of undeclared identifier '_r'
65458 | { u<U+0000>nt64_t r = ((uint64_t)0 | ((x11) << 0)); c->x[25] = _r; }
| ^~
2 errors generated.
FAILED code_035.c (24 MB, 2s, alone too):
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_035.split.c:3:6: error: variable has incomplete type 'void'
3 | void f_<U+0000>2f55690(Ctx *A64_NOESC);
| ^
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_035.split.c:3:8: error: expected ';' after top level declarator
3 | void f_<U+0000>2f55690(Ctx *A64_NOESC);
| ^
| ;
2 errors generated.
FAILED code_032.c (25 MB, 3s, alone too):
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\gen\code_032.c:107583:32: error: use of undeclared identifier 'x'
107583 | c->x[0]=recomp_load64(c,c-<U+0000>x[0] + 2216);
| ^
1 error generated.
compiled in 151s, 4 failed
error: build.py stopped (exit status 1): %USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\gen\code_032.c:107583:32: error: use of undeclared identifier 'x'
the build failed before the link: the next one translates the game again, and compiles only the files not compiled yet
launcher log, its last 27 lines:
19:51:27.936 DNS git-cdn.magicbean.dev: 104.21.55.71, 172.67.170.160 (100 ms)
19:51:27.944 connect git-cdn.magicbean.dev 104.21.55.71:443: connected in 2 ms
19:51:28.028 GET https://git-cdn.magicbean.dev/api/v1/repos/MagicBeanDev/Longshot/releases?…: HTTP 200, 222 ms
19:51:28.105 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/v3.0.0/SHA256SUMS: HTTP 200, 65 ms
19:51:28.116 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/v3.0.0/SHA256SUMS: 280 bytes in 10 ms
19:51:28.169 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/v3.0.0/SHA256SUMS.sig: HTTP 200, 51 ms
19:51:28.170 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/v3.0.0/SHA256SUMS.sig: 97 bytes in 0 ms
19:51:28.198 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/nightly-582-819a5967/SHA256SUMS: HTTP 200, 22 ms
19:51:28.199 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/nightly-582-819a5967/SHA256SUMS: 308 bytes in 0 ms
19:51:28.252 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/nightly-582-819a5967/SHA256SUMS.sig: HTTP 200, 52 ms
19:51:28.252 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/nightly-582-819a5967/SHA256SUMS.sig: 97 bytes in 0 ms
19:51:28.381 GET https://git-cdn.magicbean.dev/api/v1/repos/MagicBeanDev/LongshotLauncher/releases?…: HTTP 200, 61 ms
19:51:28.409 GET https://git-cdn.magicbean.dev/MagicBeanDev/LongshotLauncher/releases/download/v1.0.0/SHA256SUMS: HTTP 200, 27 ms
19:51:28.410 GET https://git-cdn.magicbean.dev/MagicBeanDev/LongshotLauncher/releases/download/v1.0.0/SHA256SUMS: 333 bytes in 0 ms
19:51:28.465 GET https://git-cdn.magicbean.dev/MagicBeanDev/LongshotLauncher/releases/download/v1.0.0/SHA256SUMS.sig: HTTP 200, 55 ms
19:51:28.466 GET https://git-cdn.magicbean.dev/MagicBeanDev/LongshotLauncher/releases/download/v1.0.0/SHA256SUMS.sig: 97 bytes in 0 ms
19:51:28.468 update check: answered
19:51:55.073 game file check, The Legend of Zelda Ocarina of Time [0400486024DEC000][v131072].nup: Supported: This is the version Longshot supports (build e0f3ccfa).
19:51:56.062 game file check, The Legend of Zelda Ocarina of Time [0400486024DEC000][v131072].nup: Supported: This is the version Longshot supports (build e0f3ccfa).
19:52:10.612 game file check, The Legend of Zelda Ocarina of Time [0400486024DEC000][v131072].nup: Supported: This is the version Longshot supports (build e0f3ccfa).
19:52:27.977 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/nightly-582-819a5967/tools.lock: HTTP 200, 33 ms
19:52:27.979 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/nightly-582-819a5967/tools.lock: 7372 bytes in 1 ms
19:52:28.155 DNS git-cdn.magicbean.dev: 104.21.55.71, 172.67.170.160 (0 ms)
19:52:28.158 connect git-cdn.magicbean.dev 104.21.55.71:443: connected in 2 ms
19:52:28.198 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/nightly-582-819a5967/LongshotBuilder-nightly-582-819a5967-windows-x64.zip: HTTP 200, 44 ms
19:52:28.821 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/nightly-582-819a5967/LongshotBuilder-nightly-582-819a5967-windows-x64.zip: 52765958 bytes in 622 ms
19:52:37.657 game file check, The Legend of Zelda Ocarina of Time [0400486024DEC000][v131072].nup: Supported: This is the version Longshot supports (build e0f3ccfa).
launcher log file: %USERPROFILE%\AppData\Local\LongshotLauncher\logs\launcher.log (beside it: the run before, launcher.1.log, and a shortcut's Play, play.log)
From Discord:
The reporter added that the latest nightly launcher did not resolve the build failure; a subsequent build attempt failed during generated-code compilation with a different undeclared identifier. They pasted the launcher build report/log into this issue. The earlier status report was marked sent.
Tried the Stable 3.0.0 again.
AMD Ryzen 7 9800X3D
AMD Radeon RX 9070 XT
32 GB RAM
2TB Free Space SSD
AMD Adrenlina GPU Drivers: 26.11.2
Longshot Launcher v1.0.0 (installed), launcher channel stable, builds from stable
Microsoft Windows 10.0.26300, X64, .NET 10.0.15
network: git-cdn.magicbean.dev first, then git.magicbean.dev; proxy: none
what happened: the build stopped: build.py stopped (exit status 1): %USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_044.split.c:352463:122: error: use of undeclared identifier '_p1'; did you mean '_p0'?
build: Build v3.0.0 (stable)
PC: 31 GB, 16 threads, AMD GPU
settings: memory automatic, workers automatic, DLSS off, FSR 4 on, XeSS off
build log, its last 200 lines:
vk_fsr4.cpp 0 MB 0s (4s)
vk_gprof.cpp 0 MB 0s (4s)
vk_gpu_clock.cpp 0 MB 0s (4s)
vk_hangdump.cpp 0 MB 0s (4s)
vk_imgui.cpp 0 MB 0s (4s)
vk_main.cpp 0 MB 0s (4s)
vk_jobs.cpp 0 MB 0s (4s)
vk_memory.cpp 0 MB 0s (4s)
vk_menu.cpp 0 MB 0s (4s)
vk_menu_i18n.cpp 0 MB 0s (4s)
vk_predict.cpp 0 MB 0s (4s)
vk_progcache.cpp 0 MB 0s (4s)
vk_reactive.cpp 0 MB 0s (4s)
vk_programs.cpp 0 MB 0s (4s)
vk_reflex.cpp 0 MB 0s (4s)
vk_replay.cpp 0 MB 0s (4s)
vk_shader.cpp 0 MB 0s (4s)
vk_temporal.cpp 0 MB 0s (4s)
vk_texture.cpp 0 MB 0s (4s)
vk_vma.cpp 0 MB 0s (4s)
vk_xess.cpp 0 MB 0s (4s)
vk_xfer.cpp 0 MB 0s (4s)
zstd.c 2 MB 0s (4s)
slow_frames.c 0 MB 0s (4s)
pad_sdl.c 0 MB 1s (4s)
pad_switch2.c 0 MB 1s (4s)
rx_backend.c 0 MB 0s (4s)
nvn_native.c 0 MB 1s (4s)
texts.c 0 MB 0s (5s)
prompts.c 0 MB 1s (5s)
not compiled yet: code_019.c (23 MB, 4s), tried again alone at the end:
_as?_a:_b)|_quiet; }
| ^~~~~
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_019.split.c:257780:92: error: use of undeclared identifier '_a'
257780 | { int _an=(_a&_exp)==_exp&&(_a&_frac), _bn=(_b&_exp)==_exp&&(_b&_frac); int _as=_an&&!(_a&_quiet),_bs=_bn&&!(_b&_quiet); if(_as||_bs) { c->fpsr|=1; _v=(_as?_a:_b)|_quiet; }
| ^~
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_019.split.c:257780:95: error: use of undeclared identifier '_quiet'
257780 | { int _an=(_a&_exp)==_exp&&(_a&_frac), _bn=(_b&_exp)==_exp&&(_b&_frac); int _as=_an&&!(_a&_quiet),_bs=_bn&&!(_b&_quiet); if(_as||_bs) { c->fpsr|=1; _v=(_as?_a:_b)|_quiet; }
| ^~~~~~
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_019.split.c:257780:114: error: use of undeclared identifier '_b'
257780 | { int _an=(_a&_exp)==_exp&&(_a&_frac), _bn=(_b&_exp)==_exp&&(_b&_frac); int _as=_an&&!(_a&_quiet),_bs=_bn&&!(_b&_quiet); if(_as||_bs) { c->fpsr|=1; _v=(_as?_a:_b)|_quiet; }
| ^~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
not compiled yet: code_049.c (24 MB, 4s), tried again alone at the end:
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_049.split.c:17039:57: error: expected ';' at end of declaration
17039 | { uint64_t _s = c->x[1] & 0xFFFFFFFFULL; uint64_t _r<U+0000> _r = (_s & ((1ULL << 25) - 1)) << 7; _r &= 0xFFFFFFFFULL; c->x[9] = _r; }
| ^
| ;
1 error generated.
not compiled yet: code_021.c (19 MB, 4s), tried again alone at the end:
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_021.split.c:47066:142: error: expected ';' at end of declaration
47066 | { uint64_t _a=c->x[12],_b=((uint64_t)(uint32_t)(((uint32_t)(c->x[2])) << 0)),_r=_a-_b; _r&=0xFFFFFFFFULL; { uint32_t _fa=(uint32_t)(a),<U+0000>b=(uint32_t)(_b),_fr=(uint32_t)(_r); c->z=(_fr==0); } }
| ^
| ;
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_021.split.c:47066:186: error: use of undeclared identifier '_fr'
47066 | { uint64_t _a=c->x[12],_b=((uint64_t)(uint32_t)(((uint32_t)(c->x[2])) << 0)),_r=_a-_b; _r&=0xFFFFFFFFULL; { uint32_t _fa=(uint32_t)(a),<U+0000>b=(uint32_t)(_b),_fr=(uint32_t)(_r); c->z=(_fr==0); } }
| ^~~
2 errors generated.
not compiled yet: code_020.c (21 MB, 5s), tried again alone at the end:
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_020.split.c:139376:41: error: expected ')'
139376 | c->x[10]=recomp_load64(c,c->x[25] <U+0000> 120);
| ^
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_020.split.c:139376:27: note: to match this '('
139376 | c->x[10]=recomp_load64(c,c->x[25] <U+0000> 120);
| ^
1 error generated.
not compiled yet: code_038_1.c (17 MB, 5s), tried again alone at the end:
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\gen\code_038_1.c:244752:102: error: expected ';' after expression
244752 | { uint64_t _b=c->x[31]; int64_t _o=32; { uint64_t _p0,_p1; recomp_ldp64(c,_b,&_p0,&_p1); c->x[29]<U+0000>_p0; c->x[30]=_p1; } c->x[31]=_b+_o; }
| ^
| ;
1 error generated.
not compiled yet: code_044.c (24 MB, 7s), tried again alone at the end:
} }
| ^~~
| _p0
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_044.split.c:352463:55: note: '_p0' declared here
352463 | { uint64_t _b=c->x[31]; int64_t _o=32; { uint64_t _p0<U+0000>_p1; recomp_ldp64(c,(_b+_o),&_p0,&_p1); c->x[22]=_p0; c->x[21]=_p1; } }
| ^
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_044.split.c:352463:122: error: use of undeclared identifier '_p1'; did you mean '_p0'?
352463 | { uint64_t _b=c->x[31]; int64_t _o=32; { uint64_t _p0<U+0000>_p1; recomp_ldp64(c,(_b+_o),&_p0,&_p1); c->x[22]=_p0; c->x[21]=_p1; } }
| ^~~
| _p0
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_044.split.c:352463:55: note: '_p0' declared here
352463 | { uint64_t _b=c->x[31]; int64_t _o=32; { uint64_t _p0<U+0000>_p1; recomp_ldp64(c,(_b+_o),&_p0,&_p1); c->x[22]=_p0; c->x[21]=_p1; } }
| ^
3 errors generated.
FAILED code_021_7.c (2 MB, 0s, alone too):
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_021_7.split.c:30492:33: error: expected ')'
30492 | a64_vfpx_add32(c,c->vreg[3]<U+0000>c->vreg[4],c->vreg[5],4);
| ^
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_021_7.split.c:30492:19: note: to match this '('
30492 | a64_vfpx_add32(c,c->vreg[3]<U+0000>c->vreg[4],c->vreg[5],4);
| ^
1 error generated.
FAILED code_hot_0.c (12 MB, 2s, alone too):
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_hot_0.split.c:134779:358: error: use of undeclared identifier '_s'
134779 | { const uint32_t _fk = a64_fcmp32k(c,c->vreg[0],c->vreg[1]); if (fk) { fz=(uint8_t)(fk>>1&1); fc=(uint8_t)!(_fk&1); } else { uint64_t _a=0,_b=0; memcpy(&_a,c->vreg[0],4); memcpy(&_b,c->vreg[1],4); const uint64_t _sign=0x80000000ULL,_exp=0x7f800000ULL,_frac=0x7fffffULL,_quiet=0x400000ULL; if(c->fpcr&(1ULL<<24)) { if(!(_a&_exp)&&(_a&_frac)) { _a&=_s<U+0000>gn; c->fpsr|=128; } if(!(_b&_exp)&&(_b&_frac)) { _b&=_sign; c->fpsr|=128; } } int _an=(_a&_exp)==_exp&&(_a&_frac),_bn=(_b&_exp)==_exp&&(_b&_frac); if(_an||_bn) { if((_an&&!(_a&_quiet))||(_bn&&!(b&quiet))) c->fpsr|=1; fz=0; fc=1; } else { int _eq=_a==_b||!((_a|_b)&
_sign); int _lt=!_eq&&(((_a^_b)&_sign)?!!(_a&_sign):((_a&_sign)?_a>_b:_a<b)); fz=(uint8_t)eq; fc=(uint8_t)!_lt; } } }| ^
1 error generated.
FAILED code_019.c (23 MB, 2s, alone too):
of undeclared identifier '_a'
257780 | { int _an=(_a&_exp)==_exp&&(_a&_frac), _bn=(_b&_exp)==_exp&&(_b&_frac); int _as=_an&&!(_a&_quiet),_bs=_bn&&!(_b&_quiet); if(_as||_bs) { c->fpsr|=1; _v=(_as?_a:_b)|_quiet; }
| ^~
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_019.split.c:257780:36: error: use of undeclared identifier '_frac'
257780 | { int _an=(_a&_exp)==_exp&&(_a&_frac), _bn=(_b&_exp)==_exp&&(_b&_frac); int _as=_an&&!(_a&_quiet),_bs=_bn&&!(_b&_quiet); if(_as||_bs) { c->fpsr|=1; _v=(_as?_a:_b)|_quiet; }
| ^~~~~
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_019.split.c:257780:49: error: use of undeclared identifier '_b'
257780 | { int _an=(_a&_exp)==_exp&&(_a&_frac), _bn=(_b&_exp)==_exp&&(_b&_frac); int _as=_an&&!(_a&_quiet),_bs=_bn&&!(_b&_quiet); if(_as||_bs) { c->fpsr|=1; _v=(_as?_a:_b)|_quiet; }
| ^~
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_019.split.c:257780:52: error: use of undeclared identifier '_exp'
257780 | { int _an=(_a&_exp)==_exp&&(_a&_frac), _bn=(_b&_exp)==_exp&&(_b&_frac); int _as=_an&&!(_a&_quiet),_bs=_bn&&!(_b&_quiet); if(_as||_bs) { c->fpsr|=1; _v=(_as?_a:_b)|_quiet; }
| ^~~~
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_019.split.c:257780:59: error: use of undeclared identifier '_exp'
257780 | { int _an=(_a&_exp)==_exp&&(_a&_frac), _bn=(_b&_exp)==_exp&&(_b&_frac); int _as=_an&&!(_a&_quiet),_bs=_bn&&!(_b&_quiet); if(_as||_bs) { c->fpsr|=1; _v=(_as?_a:_b)|_quiet; }
| ^~~~
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_019.split.c:257780:66: error: use of undeclared identifier '_b'
257780 | { int _an=(_a&_exp)==_exp&&(_a&_frac), _bn=(_b&_exp)==_exp&&(_b&_frac); int _as=_an&&!(_a&_quiet),_bs=_bn&&!(_b&_quiet); if(_as||_bs) { c->fpsr|=1; _v=(_as?_a:_b)|_quiet; }
| ^~
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_019.split.c:257780:69: error: use of undeclared identifier '_frac'
257780 | { int _an=(_a&_exp)==_exp&&(_a&_frac), _bn=(_b&_exp)==_exp&&(_b&_frac); int _as=_an&&!(_a&_quiet),_bs=_bn&&!(_b&_quiet); if(_as||_bs) { c->fpsr|=1; _v=(_as?_a:_b)|_quiet; }
| ^~~~~
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_019.split.c:257780:92: error: use of undeclared identifier '_a'
257780 | { int _an=(_a&_exp)==_exp&&(_a&_frac), _bn=(_b&_exp)==_exp&&(_b&_frac); int _as=_an&&!(_a&_quiet),_bs=_bn&&!(_b&_quiet); if(_as||_bs) { c->fpsr|=1; _v=(_as?_a:_b)|_quiet; }
| ^~
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_019.split.c:257780:95: error: use of undeclared identifier '_quiet'
257780 | { int _an=(_a&_exp)==_exp&&(_a&_frac), _bn=(_b&_exp)==_exp&&(_b&_frac); int _as=_an&&!(_a&_quiet),_bs=_bn&&!(_b&_quiet); if(_as||_bs) { c->fpsr|=1; _v=(_as?_a:_b)|_quiet; }
| ^~~~~~
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_019.split.c:257780:114: error: use of undeclared identifier '_b'
257780 | { int _an=(_a&_exp)==_exp&&(_a&_frac), _bn=(_b&_exp)==_exp&&(_b&_frac); int _as=_an&&!(_a&_quiet),_bs=_bn&&!(_b&_quiet); if(_as||_bs) { c->fpsr|=1; _v=(_as?_a:_b)|_quiet; }
| ^~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
FAILED code_049.c (24 MB, 2s, alone too):
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_049.split.c:17039:57: error: expected ';' at end of declaration
17039 | { uint64_t _s = c->x[1] & 0xFFFFFFFFULL; uint64_t _r<U+0000> _r = (_s & ((1ULL << 25) - 1)) << 7; _r &= 0xFFFFFFFFULL; c->x[9] = _r; }
| ^
| ;
1 error generated.
FAILED code_021.c (19 MB, 2s, alone too):
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_021.split.c:47066:142: error: expected ';' at end of declaration
47066 | { uint64_t _a=c->x[12],_b=((uint64_t)(uint32_t)(((uint32_t)(c->x[2])) << 0)),_r=_a-_b; _r&=0xFFFFFFFFULL; { uint32_t _fa=(uint32_t)(a),<U+0000>b=(uint32_t)(_b),_fr=(uint32_t)(_r); c->z=(_fr==0); } }
| ^
| ;
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_021.split.c:47066:186: error: use of undeclared identifier '_fr'
47066 | { uint64_t _a=c->x[12],_b=((uint64_t)(uint32_t)(((uint32_t)(c->x[2])) << 0)),_r=_a-_b; _r&=0xFFFFFFFFULL; { uint32_t _fa=(uint32_t)(a),<U+0000>b=(uint32_t)(_b),_fr=(uint32_t)(_r); c->z=(_fr==0); } }
| ^~~
2 errors generated.
FAILED code_020.c (21 MB, 3s, alone too):
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_020.split.c:139376:41: error: expected ')'
139376 | c->x[10]=recomp_load64(c,c->x[25] <U+0000> 120);
| ^
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_020.split.c:139376:27: note: to match this '('
139376 | c->x[10]=recomp_load64(c,c->x[25] <U+0000> 120);
| ^
1 error generated.
FAILED code_038_1.c (17 MB, 3s, alone too):
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\gen\code_038_1.c:244752:102: error: expected ';' after expression
244752 | { uint64_t _b=c->x[31]; int64_t _o=32; { uint64_t _p0,_p1; recomp_ldp64(c,_b,&_p0,&_p1); c->x[29]<U+0000>_p0; c->x[30]=_p1; } c->x[31]=_b+_o; }
| ^
| ;
1 error generated.
FAILED code_044.c (24 MB, 4s, alone too):
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_044.split.c:352463:58: error: expected ';' at end of declaration
352463 | { uint64_t _b=c->x[31]; int64_t _o=32; { uint64_t _p0<U+0000>_p1; recomp_ldp64(c,(_b+_o),&_p0,&_p1); c->x[22]=_p0; c->x[21]=_p1; } }
| ^
| ;
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_044.split.c:352463:93: error: use of undeclared identifier '_p1'; did you mean '_p0'?
352463 | { uint64_t _b=c->x[31]; int64_t _o=32; { uint64_t _p0<U+0000>_p1; recomp_ldp64(c,(_b+_o),&_p0,&_p1); c->x[22]=_p0; c->x[21]=_p1; } }
| ^~~
| _p0
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_044.split.c:352463:55: note: '_p0' declared here
352463 | { uint64_t _b=c->x[31]; int64_t _o=32; { uint64_t _p0<U+0000>_p1; recomp_ldp64(c,(_b+_o),&_p0,&_p1); c->x[22]=_p0; c->x[21]=_p1; } }
| ^
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_044.split.c:352463:122: error: use of undeclared identifier '_p1'; did you mean '_p0'?
352463 | { uint64_t _b=c->x[31]; int64_t _o=32; { uint64_t _p0<U+0000>_p1; recomp_ldp64(c,(_b+_o),&_p0,&_p1); c->x[22]=_p0; c->x[21]=_p1; } }
| ^~~
| _p0
%USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_044.split.c:352463:55: note: '_p0' declared here
352463 | { uint64_t _b=c->x[31]; int64_t _o=32; { uint64_t _p0<U+0000>_p1; recomp_ldp64(c,(_b+_o),&_p0,&_p1); c->x[22]=_p0; c->x[21]=_p1; } }
| ^
3 errors generated.
compiled in 26s, 8 failed
error: build.py stopped (exit status 1): %USERPROFILE%\AppData\Local\LongshotLauncher\work\sa\build\obj\code_044.split.c:352463:122: error: use of undeclared identifier '_p1'; did you mean '_p0'?
the build failed before the link: the next one translates the game again, and compiles only the files not compiled yet
launcher log, its last 18 lines:
22:24:43.573 DNS git-cdn.magicbean.dev: 104.21.55.71, 172.67.170.160 (72 ms)
22:24:43.580 connect git-cdn.magicbean.dev 104.21.55.71:443: connected in 3 ms
22:24:43.739 GET https://git-cdn.magicbean.dev/api/v1/repos/MagicBeanDev/Longshot/releases?…: HTTP 200, 265 ms
22:24:43.766 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/v3.0.0/SHA256SUMS: HTTP 200, 14 ms
22:24:43.776 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/v3.0.0/SHA256SUMS: 280 bytes in 9 ms
22:24:43.801 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/v3.0.0/SHA256SUMS.sig: HTTP 200, 23 ms
22:24:43.802 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/v3.0.0/SHA256SUMS.sig: 97 bytes in 0 ms
22:24:43.824 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/nightly-593-a433db32/SHA256SUMS: HTTP 200, 16 ms
22:24:43.824 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/nightly-593-a433db32/SHA256SUMS: 308 bytes in 0 ms
22:24:43.841 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/nightly-593-a433db32/SHA256SUMS.sig: HTTP 200, 16 ms
22:24:43.842 GET https://git-cdn.magicbean.dev/MagicBeanDev/Longshot/releases/download/nightly-593-a433db32/SHA256SUMS.sig: 97 bytes in 0 ms
22:24:43.965 GET https://git-cdn.magicbean.dev/api/v1/repos/MagicBeanDev/LongshotLauncher/releases?…: HTTP 200, 22 ms
22:24:43.989 GET https://git-cdn.magicbean.dev/MagicBeanDev/LongshotLauncher/releases/download/v1.0.0/SHA256SUMS: HTTP 200, 23 ms
22:24:43.990 GET https://git-cdn.magicbean.dev/MagicBeanDev/LongshotLauncher/releases/download/v1.0.0/SHA256SUMS: 333 bytes in 0 ms
22:24:44.003 GET https://git-cdn.magicbean.dev/MagicBeanDev/LongshotLauncher/releases/download/v1.0.0/SHA256SUMS.sig: HTTP 200, 12 ms
22:24:44.003 GET https://git-cdn.magicbean.dev/MagicBeanDev/LongshotLauncher/releases/download/v1.0.0/SHA256SUMS.sig: 97 bytes in 0 ms
22:24:44.005 update check: answered
22:24:53.034 game file check, The Legend of Zelda Ocarina of Time [0400486024DEC000][v131072].nup: Supported: This is the version Longshot supports (build e0f3ccfa).
launcher log file: %USERPROFILE%\AppData\Local\LongshotLauncher\logs\launcher.log (beside it: the run before, launcher.1.log, and a shortcut's Play, play.log)
I will look into the stable Windows build failure. I will start with the generated-C diagnostics already here and compare how stable and current main produce the affected code.
Thanks for the build logs. We reproduced the compiler error by putting a single NUL byte where the comma between the two generated arguments should be. We still need to find where that byte first changes.
If you still have the failed build work folder, please leave it in place and let us know. Could you also confirm the exact game version and whether that attempt reused work from an earlier build? If you are up for one more attempt once we have a local diagnostic ready, we would like to compare file hashes and the first unexpected NUL offset right after code generation, after splitting, and just before compilation. Please keep generated C, game files, and saves on your PC. We only need the diagnostic metadata.
Hi, thanks for looking into this. I'll try to provide you with the information you asked for.
1. Failed build work folder
The folder still exists and I have left it untouched:
%LOCALAPPDATA%\LongshotLauncher\work\saIt currently contains the following folders:
build(last modified: November 20, 2026, 00:37)gen(last modified: November 20, 2026, 00:36)image(last modified: November 20, 2026, 00:36)2. Game version
The game is The Legend of Zelda: Ocarina of Time.
The game file is:
The Legend of Zelda Ocarina of Time [0400486024DEC000][v131072].nupFile size: 23.8 GB.
3. Previous build attempts
I'm not entirely sure whether previous build files were reused.
I tried several things, including:
Unfortunately, the compiler error persisted even after these attempts.
I'm willing to perform another build attempt and help with further debugging. However, I'll need the diagnostic tool and step-by-step instructions from you, as I'm not familiar with this diagnostic process.
Thanks again for your help!