From 2ce817e58d616c94ad12a8eee0246d1029167ab6 Mon Sep 17 00:00:00 2001 From: John Chen Date: Wed, 27 Jul 2016 12:30:58 -0700 Subject: [PATCH] Update CrossGen doc for "Unable to load Jit" error --- Documentation/building/crossgen.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/building/crossgen.md b/Documentation/building/crossgen.md index 0b47a25..c74a5e6 100644 --- a/Documentation/building/crossgen.md +++ b/Documentation/building/crossgen.md @@ -63,3 +63,4 @@ The following are some of the command errors while creating or using native imag - "Could not load file or assembly 'mscorlib.dll' or one of its dependencies. The native image could not be loaded, because it was generated for use by a different version of the runtime. (Exception from HRESULT: 0x80131059)": This error indicates that there is a mismatch between CrossGen and mscorlib.ni.dll. Make sure to use CrossGen and mscorlib.ni.dll from the same build or NuGet package. - "Error: Could not load file or assembly '...' or one of its dependencies. The system cannot find the file specified. (Exception from HRESULT: 0x80070002)": CrossGen wasn't able to find a particular dependency that it needs. Verify that you have the assembly specified in the error message, and make sure its location is included in `/Platform_Assemblies_Paths`. - CoreCLR unable to initialize: While there are many possible causes of this error, one possibility is a mismatch between mscorlib.ni.dll and coreclr.dll (or libcoreclr.so). Make sure they come from the same build or NuGet package. +- "Unable to load Jit Compiler": Please get a copy of `clrjit.dll` (or `libclrjit.so` or `libclrjit.dylib`, depending on your platform), and place it in the same directory as CrossGen. You can either build `clrjit.dll` yourself, or get it from `Microsoft.NETCore.Jit` NuGet package. To avoid possible issues, please use `clrjit.dll` from the same build as `crossgen.exe` if possible. -- 2.7.4