Get errors after trying to build[error]

I get some errors after finish the build and an empty folder. I’m using Linux if that is to any help.

This is what I have tried

  • I have tried copying the whole folder project.

  • Updating Unity

  • Building in a folder that’s not in my project folder or in repos

These are the errors I get.

Error one

Exception: /mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/il2cpp/build/deploy/netcoreapp3.0/il2cpp did not run properly!

Failed running “/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/il2cpp/build/deploy/netcoreapp3.0/il2cpp” --convert-to-cpp --dotnetprofile=“unityaot” --compile-cpp --libil2cpp-static --platform=“WebGL” --architecture=“EmscriptenJavaScript” --configuration=“Release” --outputpath="/mnt/data/Workspace/Development/Game Development/Unity/Repos/Unity2d/BlankProject/Text101_new/Assets /…/Temp/StagingArea/Data/Native/build.bc" --cachedirectory="/mnt/data/Workspace/Development/Game Development/Unity/Repos/Unity2d/BlankProject/Text101_new/Assets/…/Library/il2cpp_cache" --compiler-flags="-Oz -DIL2CPP_EXCEPTION_DISABLED=1 " --baselib-directory="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/Variations/nondevelopment" --avoid-dynamic-library-copy --emit-method-map --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AIModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AccessibilityModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AndroidJNIModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AnimationModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AssetBundleModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AudioModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ClothModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_CoreModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_CrashReportingModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_DSPGraphModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_DirectorModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_GameCenterModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_GridModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_HotReloadModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_IMGUIModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ImageConversionModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_InputLegacyModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_InputModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_JSONSerializeModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_LocalizationModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ParticleSystemModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_PerformanceReportingModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_Physics2DModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_PhysicsModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ProfilerModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ScreenCaptureModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SharedInternalsModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SpriteMaskModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SpriteShapeModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_StreamingModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SubstanceModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SubsystemsModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TLSModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TerrainModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TerrainPhysicsModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TextCoreModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TextRenderingModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TilemapModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UIElementsModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UIElementsNativeModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UIModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UNETModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UmbraModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityAnalyticsModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityConnectModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityTestProtocolModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestAssetBundleModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestAudioModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestTextureModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestWWWModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VFXModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VRModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VehiclesModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VideoModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_WebGLModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_WindModule_Dynamic.bc" --additional-libraries="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_XRModule_Dynamic.bc" --profiler-report --map-file-parser="/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/Tools/MapFileParser/MapFileParser" --directory="/mnt/data/Workspace/Development/Game Development/Unity/Repos/Unity2d/BlankProject/Text101_new/Temp/StagingArea/Data/Managed" --generatedcppdir="/mnt/data/Workspace/Development/Game Development/Unity/Repos/Unity2d/BlankProject/Text101_new/Temp/StagingArea/Data/il2cppOutput"

stdout:
Running il2cpp.exe in server GC mode.
Building build.bc with EmscriptenToolChain
Output directory: /mnt/data/Workspace/Development/Game Development/Unity/Repos/Unity2d/BlankProject/Text101_new/Temp/StagingArea/Data/Native
Cache directory: /mnt/data/Workspace/Development/Game Development/Unity/Repos/Unity2d/BlankProject/Text101_new/Library/il2cpp_cache
il2cpp.exe didn’t catch exception: Unity.IL2CPP.Building.BuilderFailedException: /mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten_FastComp_Linux/clang++: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
ERROR:root:compiler frontend failed to generate LLVM bitcode, halting

Invocation was: Executable: /usr/bin/python2
Arguments: -E “/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/em++” -Wno-unused-value -Wno-invalid-offsetof -nostdinc -fno-strict-overflow -Wno-null-conversion -std=c++11 -O3 -Oz -DIL2CPP_EXCEPTION_DISABLED=1 -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DNDEBUG -I"/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/il2cpp/libil2cpp" -I"/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/il2cpp/libil2cpp" -I"/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/il2cpp/external/bdwgc/include" -I"/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/il2cpp/external/xxHash" -I"/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/il2cpp/external/baselib/Include" -I"/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/il2cpp/external/baselib/Platforms/WebGL/Include" -I"/mnt/data/Workspace/Development/Game Development/Unity/2020.1.14f1/Editor/Data/il2cpp/libil2cpp/pch" -I"/mnt/data/Workspace/Development/Game Development/Unity/Repos/Unity2d/BlankProject/Text101_new/Temp/StagingArea/Data/il2cppOutput" “/mnt/data/Workspace/Development/Game Development/Unity/Repos/Unity2d/BlankProject/Text101_new/Temp/StagingArea/Data/il2cppOutput/Il2CppCompilerCalculateTypeValues.cpp” -o “/mnt/data/Workspace/Development/Game Development/Unity/Repos/Unity2d/BlankProject/Text101_new/Library/il2cpp_cache/32BC76EB0E9683133B4DB121D1EAA7A8.o”

at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 210
at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 135
at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Compilation/CompilationDriver.cs:line 64
at il2cpp.Program.DoRun(String args, RuntimePlatform platform, BuildingOptions buildingOptions) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Program.cs:line 86
at il2cpp.Program.Run(String args, Boolean setInvariantCulture) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Program.cs:line 71
at il2cpp.Program.Main(St

Error two
Build completed with a result of ‘Failed’
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /home/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)

Error three
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00270] in /home/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:187
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in /home/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:95
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /home/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)

Hi Jonon,

You didn’t try to save the build in a folder managed by Linux, on an USB stick or somewhere else but on your harddrive, did you?

Also make sure that you do not have any non-English characters in your path, folder or file names such as Ä, ß and so on.

Maybe this thread is related to your issue:
https://answers.unity.com/questions/1738014/webgl-build-fails-il2cppexe-linux.html

Please feel free to ask our helpful community of students over on our Discord chat server. If you cannot get any help, I’d suggest to report a bug to Unity.

Installing ncurses5-compat-libs in archLinux helped.

Awesome. :slight_smile:

Does that mean everything is working now?


See also:

Yes! Now everything works! I tried what the person did in the link you sent and it worked.

Thank you so much for the help!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms