Skip to content
Leonida Build Problems: Setup Errors, Missing Tools and What to Check
Official GTA VI screenshot, Rockstar Games. Game art, not build output: the Leonida project does not boot. · Project guide: the GTA 6 recompilation project.
  • Boots: No
  • Release: None
  • File: None

Leonida Build Problems: Setup Errors, Missing Tools and What to Check

Most Leonida build failures are setup failures: a missing tool, a wrong version, too little space, or a bad clone. This guide lists the checks in the order to run them.

Contents
  1. Start With the Build's Own Check
  2. Missing or Wrong Tool Versions
  3. Space, Clone and Work Folder Problems
  4. Logs, Resume and Stale Work Folders
  5. Conclusion
  6. Frequently Asked Questions

Start With the Build's Own Check

Most build problems are setup problems, and the build knows it. Before starting work, the build checks that the prerequisites are installed and that enough free space exists, and it lists anything missing in one go. The first troubleshooting step is therefore not to guess, but to read that list in full and fix every item on it before running again. A build that is rerun after fixing only the first missing item will simply stop at the second, and the cycle wastes more time than the full fix would have.

Leonida troubleshooting readers should also run the check only mode, which checks the copy and builds nothing, and the full hash check when a copy is suspected. Those two commands separate copy problems from toolchain problems cleanly: if the check passes and the build fails, the toolchain is the suspect. If the check fails, the copy or its location is the suspect, and no toolchain change will help.

Missing or Wrong Tool Versions

The commonest failures are a tool that is not on PATH, a Python install without the PATH option selected, an LLVM build without the AMDGPU target, and a Windows SDK older than the version the runtime needs. Each produces its own error, and each is fixed the same way: install the exact version the project lists, in the exact form it lists, and rerun the preflight check. The LLVM case deserves a second look, because the official Windows build has no AMDGPU target, so a correct looking LLVM install can still be the wrong one. The project's script, package manager route or Linux install exists for exactly that reason.

Visual Studio deserves the same care. The workload must include desktop C++ development, and the SDK must be current. A Visual Studio install for another language, or an SDK from an older install, will fail at the runtime stage, late in the build, which is the most expensive place to fail. Checking the workload and SDK before starting is a few minutes that save hours.

Space, Clone and Work Folder Problems

Disk space failures are the second commonest cause, and they are the easiest to prevent. A full build needs about 400 GB free, and the asset stage alone is measured in hundreds of gigabytes. A build that starts on a nearly full drive will fail part way through, after hours of work, and the fix is not to clear a little room but to move the work and output folders to a drive with room to spare, using the build options provided for that purpose. The smaller stage selection, without the asset stage, is the right choice for a first test on a tight drive.

Clone problems are the third cause. A ZIP archive leaves out the submodule, and a clone without the recursive flag leaves it out too. The symptom is a missing decoder part that the build then has to fetch or report. The fix is to clone recursively, with Git installed, from a repository whose history can be inspected. The repository and fork explained page names the fork to use, and the step by step build guide page gives the exact sequence, so this page does not repeat the commands.

Logs, Resume and Stale Work Folders

When a build stops, the logs are the evidence. Full stage logs live under the work folder, and the interactive setup screen offers a per stage log view for parallel output. Read the log for the stage that stopped, not the log for the whole run, and look for the first error rather than the last message, because later messages are often consequences of the first failure. A build that is stopped and rerun resumes where it left off, reusing translated shaders and exported assets whose producing tools have not changed.

Stale work folders cause the subtlest problems. The build records which tool versions produced each result, and an upgrade reruns the affected stages, which is correct behaviour, not a bug. Deleting or moving the work folder forces all of that work to be redone, and a work folder that predates the recording of tool versions gets one full retranslation and re-export after upgrading. Keep the work folder in place between runs, keep the disassembly files the build asks to keep, and do not symlink the disassembly folder when a stage needs to clear it, since symlinks are refused there.

Common Failures, in the Order to Check Them

Most build failures are preflight failures, and the build is designed to list them all in one pass. Work through this list in order, fix everything it names, and run the check again before assuming a deeper problem.

SymptomCheck firstREADME-grounded fix
Build lists missing toolsEvery prerequisite, on PATHInstall the missing items from the requirements table, Python with PATH ticked, then re-run the check
Copy not foundGame folder contentsFolder must hold MicrosoftGame.Config and .rpf archives as plain files, version 1.0.2.1
Submodule missingRecursive cloneClone with --recursive; a ZIP download leaves out third_party/rpf9-explorer
Out of disk spaceFree space and stage choiceFull build needs about 400 GB; run check, shaders and runtime stages for about 30 GB, or move work and output with --work and --out
LLVM has no AMDGPU targetllvm-mc sourceBuild it with the named script, or use the conda route and set LLVM_MC to the installed path
Second build takes as long as the firstWork folder kept?Keep the work folder; deleting it forces disassembly, translation and export to run again
Shaders re-translate after an upgradeWhat changedExpected: the build records the llvm-mc command, translator sources and decoder commit, and reruns only what an upgrade affects

One failure is not a failure at all: a build that stops and resumes is normal. The build records its progress and continues where it left off, and the logs under work/logs/ show which stage stopped and why. Read those logs before searching for answers elsewhere, because they name the exact stage, the exact missing item, or the exact file that failed.

Conclusion

Troubleshooting a Leonida build is mostly a matter of order: read the preflight list, run the check only commands, fix tools and space before rerunning, clone recursively, and read the stage log for the first error. The build is designed to help, with checks, resume and recorded tool versions, and a reader who uses those helps will solve most failures without guessing. The failures that remain are the interesting ones, and they belong in the project's public discussions, with logs and hardware details attached, where they can actually be fixed.

Frequently Asked Questions

The build lists missing tools. What should I do?

Fix every item on the list before rerunning. The preflight check lists all missing pieces in one pass, so fixing one at a time wastes runs.

The build failed for disk space. What now?

Move the work and output folders to a drive with about 400 GB free for a full build, or run only the check, shader and runtime stages, which need about 30 GB.

I used a ZIP archive and the build fails. Why?

The ZIP leaves out the submodule. Clone recursively with Git installed instead, from the preservation fork named in the repository guide.