Search Unity

Resolved Clang and libtinfo.so.5

Discussion in 'Editor & General Support' started by ICTS, Dec 24, 2021.

  1. ICTS

    ICTS

    Joined:
    Sep 26, 2018
    Posts:
    4
    After doing a complete system reinstall and installing Unity I cannot build for WebGL.
    Found some solutions online about 'symlink' some files and installing 'libtinfo' and others packages on apt, but none haved worked.

    Code (CSharp):
    1.  
    2. Exception: Unity.IL2CPP.Building.BuilderFailedException: /home/user/Unity/Hub/Editor/2020.3.12f1/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
    3. /home/user/Unity/Hub/Editor/2020.3.12f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/emcc.py:781: SyntaxWarning: "is not" with a literal. Did you mean "!="?
    4.   newargs = [arg for arg in newargs if arg is not '']
    5. /home/user/Unity/Hub/Editor/2020.3.12f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/emcc.py:896: SyntaxWarning: "is not" with a literal. Did you mean "!="?
    6.   newargs = [a for a in newargs if a is not '']
    7. /home/user/Unity/Hub/Editor/2020.3.12f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/emcc.py:1157: SyntaxWarning: "is not" with a literal. Did you mean "!="?
    8.   assert options.use_closure_compiler is not 2, 'EMTERPRETIFY requires valid asm.js, and is incompatible with closure 2 which disables that'
    9. /home/user/Unity/Hub/Editor/2020.3.12f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/emcc.py:2360: SyntaxWarning: "is not" with a literal. Did you mean "!="?
    10.   newargs = [arg for arg in newargs if arg is not '']
    11. ERROR:root:compiler frontend failed to generate LLVM bitcode, halting
    12.  
     
    Last edited: Dec 24, 2021
  2. ICTS

    ICTS

    Joined:
    Sep 26, 2018
    Posts:
    4
    For future reference. I installed Unity-Hub in the 'Software Manager' of my distro, and it uses flatpak (sandboxed package manager).
    When you start any project on it, it also runs Unity-Editor in sandbox too, and you can't get access to '/usr/lib' and '/lib/'

    Solution is to remove Unity-Hub (flatpak remove unity) and installing/running from what is provided by https://unity.com/download

    If you are still having problem with a python crash while building just install python2 in your package manager.
     
    Last edited: Dec 24, 2021