WebGL doesn't build with Unity 5 RC1

Hi, I was able to build in the last version (beta22) but I can't build with RC1. I tried reimporting all assets but I still have those errors. And they doesn't help to debug.

Anyone else had this problem?

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:/dev/XXXX/XXXXWebGL/Assets/../Temp/StagingArea/Data\Libraries\bdwgc/include" -I"C:/dev/XXXX/XXXXWebGL/Assets/../Temp/StagingArea/Data\Libraries\libil2cpp/include" -I"C:/dev/XXXX/XXXXWebGL/Assets/../Temp/StagingArea/Data\il2cppOutput" -nostdinc -c @"c:\temp\tmp4f5311d2.tmp"

WARNING: sanity check failed to run [Errno 13] Permission denied: 'C:\Program Files\Unity\Editor\Data\PlaybackEngines\webglsupport/BuildTools/emscripten.config_sanity'WARNING root: did not see a source tree above the LLVM root directory (guessing based on directory of C:\Program Files\Unity\Editor\Data\PlaybackEngines\webglsupport/BuildTools/Emscripten_FastComp_Win\llc), could not verify version numbers match
INFO root: (Emscripten: Running sanity checks)
WARNING root: java does not seem to exist, required for closure compiler, which is optional (define JAVA in ~/.emscripten if you want it)
WARNING root: -I or -L of an absolute path "-IC:/dev/XXXX/XXXXWebGL/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:/dev/XXXX/XXXXWebGL/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Assembly-CSharp_0.cpp:12052:1: warning: control may reach end of non-void function

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:/dev/XXXX/XXXXWebGL/Assets/../Temp/StagingArea/Data\Native\UserAssembly.bc" @"c:\temp\tmp4fd1fbb6.tmp"

WARNING: sanity check failed to run [Errno 13] Permission denied: 'C:\Program Files\Unity\Editor\Data\PlaybackEngines\webglsupport/BuildTools/emscripten.config_sanity'WARNING root: did not see a source tree above the LLVM root directory (guessing based on directory of C:\Program Files\Unity\Editor\Data\PlaybackEngines\webglsupport/BuildTools/Emscripten_FastComp_Win\llc), could not verify version numbers match
INFO root: (Emscripten: Running sanity checks)
WARNING root: java does not seem to exist, required for closure compiler, which is optional (define JAVA in ~/.emscripten if you want it)
ERROR root: C:\dev\XXXX\XXXXWebGL\Temp\EmscriptenWork\Bulk_Arrays_0.o: No such file or directory ("C:\dev\XXXX\XXXXWebGL\Temp\EmscriptenWork\Bulk_Arrays_0.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, IEnumerable1, IEnumerable1, IEnumerable1, IEnumerable1)
UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:290)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:218)
UnityEditor.BuildPipeline:BuildPlayer(String[ ], String, BuildTarget, BuildOptions)
AutoBuilder:PerformWebGLBuild() (at Assets/Editor/Build/AutoBuilder.cs:56)

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 (IEnumerable1 sources, System.String outfile)
UnityEditor.WebGL.Il2Cpp.EmscriptenCompiler.MultiThreadedCompile (System.String outfile, IEnumerable
1 sources, IEnumerable1 includePaths)
UnityEditor.WebGL.Il2Cpp.EmscriptenCompiler.CompileDynamicLibrary (System.String outFile, IEnumerable
1 sources, IEnumerable1 includePaths, IEnumerable1 libraries, IEnumerable1 libraryPaths)
UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:290)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action
1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:218)
UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
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.BuildPipeline:BuildPlayer(String[ ], String, BuildTarget, BuildOptions)
AutoBuilder:PerformWebGLBuild() (at Assets/Editor/Build/AutoBuilder.cs:56)

Error building Player: Exception: IL2CPP compile failed.

1 Like

I still have this problem, anyone have a workaround?