I recently upgraded my operating system to Ubuntu 20.04 LTS from Ubuntu 16.04 LTS, and ported over some old Unity projects, running 2019.3.13f1. Where previously they would build to webGL format perfectly, now every attempt to build to webGL fails during the “Building Native Binary with IL2CPP” step. I’ve reproduced this in freshly-built projects and also installed 2019.3.14f1, same results.
I assume the issue lies in this error: “error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory”
Here’s the complete error output, please send help
stdout:
Building build.bc with EmscriptenToolChain
Output directory: /home/jonny/UnityProjects/New Unity Project (1)/Temp/StagingArea/Data/Native
Cache directory: /home/jonny/UnityProjects/New Unity Project (1)/Library/il2cpp_cache
il2cpp.exe didn’t catch exception: Unity.IL2CPP.Building.BuilderFailedException: /home/jonny/Unity/Hub/Editor/2019.3.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 “/home/jonny/Unity/Hub/Editor/2019.3.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/emcc” -Wno-unused-value -Wno-invalid-offsetof -nostdinc -fno-strict-overflow -Wno-null-conversion -O3 -Oz -DIL2CPP_EXCEPTION_DISABLED=1 -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DNDEBUG -I"/home/jonny/Unity/Hub/Editor/2019.3.14f1/Editor/Data/il2cpp/libil2cpp" -I"/home/jonny/Unity/Hub/Editor/2019.3.14f1/Editor/Data/il2cpp/libil2cpp" -I"/home/jonny/Unity/Hub/Editor/2019.3.14f1/Editor/Data/il2cpp/external/bdwgc/include" -I"/home/jonny/Unity/Hub/Editor/2019.3.14f1/Editor/Data/il2cpp/external/xxHash" -I"/home/jonny/UnityProjects/New Unity Project (1)/Temp/StagingArea/Data/il2cppOutput" “/home/jonny/UnityProjects/New Unity Project (1)/Temp/StagingArea/Data/il2cppOutput/Il2CppTypeDefinitions.c” -o “/home/jonny/UnityProjects/New Unity Project (1)/Library/il2cpp_cache/C1B70E3A63B379D4000F9E0AF65CA407.o”
at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles (System.Collections.Generic.IEnumerable1[T] sourceFilesToCompile, Unity.IL2CPP.Building.Statistics.IBuildStatisticsCollector statisticsCollector) [0x001e3] in <248b4a691c5d4e1b965d90f17ea422c0>:0 at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00206] in <248b4a691c5d4e1b965d90f17ea422c0>:0 at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00001] in <248b4a691c5d4e1b965d90f17ea422c0>:0 at il2cpp.Program.DoRun (System.String[] args, System.Collections.Generic.List
1[T] foundAssemblies) [0x005bc] in <3d7b04f5e89e4d189194b279bc8abf31>:0
at il2cpp.Program.Run (System.String args, System.Boolean setInvariantCulture) [0x00042] in <3d7b04f5e89e4d189194b279bc8abf31>:0
at il2cpp.Program.Main (System.String args) [0x00002] in <3d7b04f5e89e4d189194b279bc8abf31>:0
stderr:
Unhandled Exception:
Unity.IL2CPP.Building.BuilderFailedException: /home/jonny/Unity/Hub/Editor/2019.3.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 “/home/jonny/Unity/Hub/Editor/2019.3.14f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/emcc” -Wno-unused-value -Wno-invalid-offsetof -nostdinc -fno-strict-overflow -Wno-null-conversion -O3 -Oz -DIL2CPP_EXCEPTION_DISABLED=1 -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DNDEBUG -I"/home/jonny/Unity/Hub/Editor/2019.3.14f1/Editor/Data/il2cpp/libil2cpp" -I"/home/jonny/Unity/Hub/Editor/2019.3.14f1/Editor/Data/il2cpp/libil2cpp" -I"/home/jonny/Unity/Hub/Editor/2019.3.14f1/Editor/Data/il2cpp/external/bdwgc/include" -I"/home/jonny/Unity/Hub/Editor/2019.3.14f1/Editor/Data/il2cpp/external/xxHash" -I"/home/jonny/UnityProjects/New Unity Project (1)/Temp/StagingArea/Data/il2cppOutput" “/home/jonny/UnityProjects/New Unity Project (1)/Temp/StagingArea/Data/il2cppOutput/Il2CppTypeDefinitions.c” -o “/home/jonny/UnityProjects/New Unity Project (1)/Library/il2cpp_cache/C1B70E3A63B379D4000F9E0AF65CA407.o”
at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles (System.Collections.Generic.IEnumerable1[T] sourceFilesToCompile, Unity.IL2CPP.Building.Statistics.IBuildStatisticsCollector statisticsCollector) [0x001e3] in <248b4a691c5d4e1b965d90f17ea422c0>:0 at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00206] in <248b4a691c5d4e1b965d90f17ea422c0>:0 at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00001] in <248b4a691c5d4e1b965d90f17ea422c0>:0 at il2cpp.Program.DoRun (System.String[] args, System.Collections.Generic.List
1[T] foundAssemblies) [0x005bc] in <3d7b04f5e89e4d189194b279bc8abf31>:0
at il2cpp.Program.Run (System.String args, System.Boolean setInvariantCulture) [0x00042] in <3d7b04f5e89e4d189194b279bc8abf31>:0
at il2cpp.Program.Main (System.String args) [0x00036] in <3d7b04f5e89e4d189194b279bc8abf31>:0
[ERROR] FATAL UNHANDLED EXCEPTION: Unity.IL2CPP.Building.BuilderFailedException: /home/jonny/Unity/Hub/Editor/2019.3.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 "/home/jonny/Unity/Hub/Editor/2019.3.14f1/Editor/Data/PlaybackEngines/W