Reported as a bug to bug tracker.
build with IL2CPP error
I am building for WEBGL with 5.3.0f4 personal.
First Error: **
Failed running "C:\Program Files\Unity\Editor\Data\PlaybackEngines\webglsupport/BuildTools/Emscripten_Win/python/2.7.5.3_64bit/python.exe" "C:\Program Files\Unity\Editor\Data\PlaybackEngines\webglsupport/BuildTools/Emscripten/emcc" -Oz -std=c++11 -Wno-unused-value -Wno-invalid-offsetof -I-I"C:/u/jst1/Assets/../Temp/StagingArea/Data\Libraries\bdwgc/include" -I"C:/u/jst1/Assets/../Temp/StagingArea/Data\Libraries\libil2cpp/include" -I"C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput" -nostdinc -c @"C:\Users\jorge\AppData\Local\Temp\tmp204cc609.tmp"
WARNING root: -I or -L of an absolute path "-IC:/u/jst1/Assets/../Temp/StagingArea/Data\Libraries\libil2cpp/include" encountered. If this is to a local system header/library, it may cause problems (local system files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning. C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:352:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:443:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:1048:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:2432:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:2663:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:2754:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:3359:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:4743:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:5905:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:6014:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:6369:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:6478:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:6999:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:7108:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:7463:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:7572:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ 16 warnings generated. C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:10337:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:13181:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:13217:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:13232:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:13247:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:13322:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:17798:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:25855:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:25870:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:28306:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:28321:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:28521:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:28572:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:31383:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:31398:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:31837:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:34430:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:35193:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:35520:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:35961:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:36714:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:38453:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:45621:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:45656:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:47526:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:47578:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:61973:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:67103:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ 28 warnings generated. C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_4.cpp:4472:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_4.cpp:14157:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_4.cpp:14387:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_4.cpp:14694:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ 4 warnings generated. C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Shared_0.cpp:1202:14: error: no matching function for call to 'm5_245' bool L_1 = m5_245(NULL, (((t5_65 )L_0)), (t5_5 )NULL, NULL); ^~~~~~ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput/t5_5MD.h:60:17: note: candidate function not viable: cannot convert argument of incomplete type 't5_65 ' to 't5_5 ' extern "C" bool m5_245 (t1_1 __this , t5_5 p0, t5_5 p1, const MethodInfo method) IL2CPP_METHOD_ATTR; ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Shared_0.cpp:1212:17: error: no matching function for call to 'm5_248' t5_57 L_4 = m5_248((((t5_65 **)L_3)), NULL); ^~~~~~ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput/t5_15MD.h:30:20: note: candidate function not viable: cannot convert argument of incomplete type 't5_65 ' to 't5_15 ' extern "C" t5_57 m5_248 (t5_15 __this, const MethodInfo* method) IL2CPP_METHOD_ATTR; ^ 2 errors generated. ERROR root: compiler frontend failed to generate LLVM bitcode, halting
Followed by Failed running "C:\Program Files\Unity\Editor\Data\PlaybackEngines\webglsupport/BuildTools/Emscripten_Win/python/2.7.5.3_64bit/python.exe" "C:\Program Files\Unity\Editor\Data\PlaybackEngines\webglsupport/BuildTools/Emscripten/emcc" -Oz -s NO_EXIT_RUNTIME=1 -o "C:/u/jst1/Assets/../Temp/StagingArea/Data\Native\UserAssembly.bc" @"C:\Users\jorge\AppData\Local\Temp\tmp416ada42.tmp"
ERROR root: C:\u\jst1\Temp\EmscriptenWork\Bulk_Generics_2.o: No such file or directory ("C:\u\jst1\Temp\EmscriptenWork\Bulk_Generics_2.o" was expected to be an input file, based on the commandline arguments provided) UnityEngine.Debug:LogError(Object) NativeCompiler:RunProgram(ProcessStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:60) NativeCompiler:Execute(String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:26) UnityEditor.WebGL.Il2Cpp.EmscriptenCompiler:CompileDynamicLibrary(String, IEnumerable`1, IEnumerable`1, IEnumerable`1, IEnumerable`1) UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:218) UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:135) UnityEditor.HostView:OnGUI()
Followed By
Exception: IL2CPP compile failed.
NativeCompiler.RunProgram (System.Diagnostics.ProcessStartInfo startInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:62)
NativeCompiler.Execute (System.String arguments, System.String compilerPath) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:26)
UnityEditor.WebGL.Il2Cpp.EmscriptenCompiler.LinkObjects (IEnumerable`1 sources, System.String outfile) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/Il2Cpp/EmscriptenCompiler.cs:57)
UnityEditor.WebGL.Il2Cpp.EmscriptenCompiler.MultiThreadedCompile (System.String outfile, IEnumerable`1 sources, IEnumerable`1 includePaths, Boolean exceptionSupport) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/Il2Cpp/EmscriptenCompiler.cs:44)
UnityEditor.WebGL.Il2Cpp.EmscriptenCompiler.CompileDynamicLibrary (System.String outFile, IEnumerable`1 sources, IEnumerable`1 includePaths, IEnumerable`1 libraries, IEnumerable`1 libraryPaths) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/Il2Cpp/EmscriptenCompiler.cs:21)
UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:218)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean developmentBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:135)
UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:301)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316)
UnityEditor.HostView:OnGUI()
Followed by **
Error building Player: Exception: IL2CPP compile failed.
Project runs fine in Editor.
I had a DLL in the project (containing reusable scripts). I removed that DLL and copied all the scripts directly into the project. Seemed to resolve the issue.
I'll miss that DLL.
This error indicates that IL2CPP is generating C++ code which does not compile. This is certainly a bug in Unity then. Can you submit a bug report and include a project that causes this issue? You may just need to include that one problematic assembly in the project. We would like to understand and correct this issue. Thanks!
Unfortunately, I tried putting that one suspect DLL in a new unity project all by itself. but WebGL built O$$anonymous$$! So I am not sure how to reproduce the problem simply.
I will go back in version control to the exact version where the problem happened (before I removed the DLL). If problem is still there, I will submit the whole project with the bug.
Thanks.
@joshpeterson: This is the number: 755088