{"record":{"id":"b75ee692c19a1dba","repo":"dotnet/runtime","slug":"missing-jit","errorCode":null,"errorMessage":"Missing JIT","messagePattern":"Missing JIT","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"src/coreclr/scripts/jitrollingbuild.py","lineNumber":388,"sourceCode":"    #\n    # We could also upload debug info, but it's not clear it's needed for most purposes, and it is very big:\n    # it increases the upload size from about 190MB to over 900MB for each roll.\n    #\n    # For reference, the JIT debug info is found:\n    #    a. For Windows, in the PDB subdirectory, e.g. PDB\\clrjit.pdb\n    #    b. For Linux .dbg files, and Mac .dwarf files, in the same directory as the jit, e.g., libcoreclr.so.dbg\n\n    # Target directory: <root>/git-hash/OS/architecture/build-flavor/\n    # Note that build-flavor will probably always be Checked.\n\n    files = []\n\n    # First, find the primary JIT that we expect to find.\n    jit_name = determine_jit_name(coreclr_args.host_os)\n    jit_path = os.path.join(coreclr_args.product_location, jit_name)\n    if not os.path.isfile(jit_path):\n        logging.error(\"Error: Couldn't find JIT at {}\".format(jit_path))\n        raise RuntimeError(\"Missing JIT\")\n\n    files.append(jit_path)\n\n    # Next, look for any and all cross-compilation JITs. These are named, e.g.:\n    #   clrjit_unix_x64_x64.dll\n    #   clrjit_universal_arm_x64.dll\n    #   clrjit_universal_arm64_x64.dll\n    # and so on, and live in the same product directory as the primary JIT.\n    #\n    # Note that the expression below explicitly filters out the primary JIT since we added that above.\n    # We handle the primary JIT specially so we can error if it is missing. For the cross-compilation\n    # JITs, we don't bother trying to ensure that all the ones we might expect are actually there.\n    #\n    # We don't do a recursive walk because the JIT is also copied to the \"sharedFramework\" subdirectory,\n    # so we don't want to pick that up.\n\n    if coreclr_args.host_os == \"osx\":\n        allowed_extensions = [ \".dylib\" ]","sourceCodeStart":370,"sourceCodeEnd":406,"githubUrl":"https://github.com/dotnet/runtime/blob/b7130aa5e416e88ac48fafe92bf56a9d64e13c97/src/coreclr/scripts/jitrollingbuild.py#L370-L406","documentation":"Raised by upload_command() when the primary JIT binary (determined via determine_jit_name and expected at product_location/<jit_name>) is not a regular file. The script must find the built clrjit (e.g. clrjit.dll / libclrjit.so / libclrjit.dylib) before it can upload anything to the rolling build store.","triggerScenarios":"Running 'jitrollingbuild.py upload -git_hash <sha>' when coreclr_args.product_location does not contain the expected JIT binary. The check is os.path.isfile(jit_path) at jitrollingbuild.py:386-388.","commonSituations":"Forgetting to build coreclr before uploading; product_location pointing at the wrong artifacts bin subdirectory (wrong arch/build_type); the build produced cross-compilation JITs but not the primary clrjit; -host_os mismatch causing determine_jit_name to look for the wrong filename.","solutions":["Build the JIT first: run the coreclr build for the target arch/build_type so clrjit exists in the product directory.","Print jit_path from the error context and confirm which file is missing: ls <product_location>/<jit_name>.","Verify -host_os, -arch, -build_type match the actual build output directory you are pointing at.","Point -product_location (via coreclr_arguments) at the correct artifacts/bin/<OS>.<arch>.<flavor> folder."],"exampleFix":"// before\njitrollingbuild.py upload -git_hash <sha> -arch x64 -build_type Release\n// after\n# build Checked x64 first, then:\njitrollingbuild.py upload -git_hash <sha> -arch x64 -build_type Checked","handlingStrategy":"validation","validationCode":"import os\nfrom jitutil import determine_jit_name\njit_name = determine_jit_name(coreclr_args.host_os)\njit_path = os.path.join(coreclr_args.product_location, jit_name)\nif not os.path.isfile(jit_path):\n    raise SystemExit(f\"Build the JIT first; missing {jit_path}\")","typeGuard":"null","tryCatchPattern":"null","preventionTips":["Build coreclr for the exact arch/build_type before uploading.","Verify product_location contains clrjit.* before invoking upload.","Keep -host_os consistent with the actual build output."],"tags":["upload","build","rolling-build","filesystem"],"analyzedSha":"b7130aa5e416e88ac48fafe92bf56a9d64e13c97","analyzedAt":"2026-08-07T06:17:13.108Z","schemaVersion":2},"datasetVersion":"2026-08-07T15:17:06.553Z"}