nneonneo / Il2CppVersions

Build scripts & historical header files for every available minor version of Unity's Il2Cpp project
119 stars 31 forks source link

Build failure for group 3 #5

Closed djkaty closed 4 years ago

djkaty commented 4 years ago

Output:

il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: Locale.cpp
F:\Source\Repos\Il2CppVersions\group3\il2cpp-2018.2.0f2\libil2cpp\os\Win32\Locale.cpp(40): error C2065: 'LC_ALL': undeclared identifier
F:\Source\Repos\Il2CppVersions\group3\il2cpp-2018.2.0f2\libil2cpp\os\Win32\Locale.cpp(40): error C3861: '_create_locale': identifier not found
F:\Source\Repos\Il2CppVersions\group3\il2cpp-2018.2.0f2\libil2cpp\os\Win32\Locale.cpp(47): error C3861: '_free_locale': identifier not found

Invocation was: Executable: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\cl.exe"
Arguments: "F:\Source\Repos\Il2CppVersions\group3\il2cpp-2018.2.0f2\libil2cpp\os\Win32\Locale.cpp" /nologo /c /bigobj /W3 /Zi /EHs /GR- /Gy /wd4102 /wd4800 /wd4056 /wd4190 /wd4723 /wd4467 /wd4503 /Ox /Oi /Oy- /GS- /Gw /GF /Zo /MT /DNET_4_0 /DUNITY_AOT /DGC_NOT_DLL /DRUNTIME_IL2CPP /D_WIN32 /DWIN32 /DWIN32_THREADS /D_WINDOWS /DWINDOWS /D_UNICODE /DUNICODE /D_CRT_SECURE_NO_WARNINGS /D_SCL_SECURE_NO_WARNINGS /D_WINSOCK_DEPRECATED_NO_WARNINGS /DNOMINMAX /D_NDEBUG /DNDEBUG /DWINDOWS_SDK_BUILD_VERSION=18362 /DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP /I"F:\Source\Repos\Il2CppVersions\group3\il2cpp-2018.2.0f2\libil2cpp" /I"F:\Source\Repos\Il2CppVersions\group3\il2cpp-2018.2.0f2\external\boehmgc\include" /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\include" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\winrt" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt" /Fo"F:\Source\Repos\Il2CppVersions\output\2018.2.0f2\cache\libil2cpp\596F196089C299DC2075B2B2106DC03A.obj" /Fd"F:\Source\Repos\Il2CppVersions\output\2018.2.0f2\cache\libil2cpp\596F196089C299DC2075B2B2106DC03A.pdb"
EnvArg key: PATH value: C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64

   at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
   at il2cpp.Program.DoRun(String[] args)
   at il2cpp.Program.Run(String[] args)
   at il2cpp.Program.Main(String[] args)

Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: Locale.cpp
F:\Source\Repos\Il2CppVersions\group3\il2cpp-2018.2.0f2\libil2cpp\os\Win32\Locale.cpp(40): error C2065: 'LC_ALL': undeclared identifier
F:\Source\Repos\Il2CppVersions\group3\il2cpp-2018.2.0f2\libil2cpp\os\Win32\Locale.cpp(40): error C3861: '_create_locale': identifier not found
F:\Source\Repos\Il2CppVersions\group3\il2cpp-2018.2.0f2\libil2cpp\os\Win32\Locale.cpp(47): error C3861: '_free_locale': identifier not found

Invocation was: Executable: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\cl.exe"
Arguments: "F:\Source\Repos\Il2CppVersions\group3\il2cpp-2018.2.0f2\libil2cpp\os\Win32\Locale.cpp" /nologo /c /bigobj /W3 /Zi /EHs /GR- /Gy /wd4102 /wd4800 /wd4056 /wd4190 /wd4723 /wd4467 /wd4503 /Ox /Oi /Oy- /GS- /Gw /GF /Zo /MT /DNET_4_0 /DUNITY_AOT /DGC_NOT_DLL /DRUNTIME_IL2CPP /D_WIN32 /DWIN32 /DWIN32_THREADS /D_WINDOWS /DWINDOWS /D_UNICODE /DUNICODE /D_CRT_SECURE_NO_WARNINGS /D_SCL_SECURE_NO_WARNINGS /D_WINSOCK_DEPRECATED_NO_WARNINGS /DNOMINMAX /D_NDEBUG /DNDEBUG /DWINDOWS_SDK_BUILD_VERSION=18362 /DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP /I"F:\Source\Repos\Il2CppVersions\group3\il2cpp-2018.2.0f2\libil2cpp" /I"F:\Source\Repos\Il2CppVersions\group3\il2cpp-2018.2.0f2\external\boehmgc\include" /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\include" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\winrt" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt" /Fo"F:\Source\Repos\Il2CppVersions\output\2018.2.0f2\cache\libil2cpp\596F196089C299DC2075B2B2106DC03A.obj" /Fd"F:\Source\Repos\Il2CppVersions\output\2018.2.0f2\cache\libil2cpp\596F196089C299DC2075B2B2106DC03A.pdb"
EnvArg key: PATH value: C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64

   at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
   at il2cpp.Program.DoRun(String[] args)
   at il2cpp.Program.Run(String[] args)
   at il2cpp.Program.Main(String[] args)
======================= FAILED =======================
nneonneo commented 4 years ago

As noted in the instructions - some versions, especially older ones, break in fun ways if you try to compile them with VS 2019. They were released before VS 2019 existed, and I guess they weren't updated.

(I am curious to know if building from the Unity GUI on these versions breaks with VS 2019 in the same way, or if it magically works somehow?)

djkaty commented 4 years ago

To make group 3 build I had to uninstall the VS2019 C++ tools, however the VS2019 installer lets you install the VS2017 C++ tools and this enabled the build!