I recently ran into this issue too but only when building a project with a C dependency (in your case SDL3).
You should try building using the LLVM backend with 0.16 Linker error when building Zig from source - #5 by alexrp
I recently ran into this issue too but only when building a project with a C dependency (in your case SDL3).
You should try building using the LLVM backend with 0.16 Linker error when building Zig from source - #5 by alexrp