Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug [SOLVED] ubuntu webgl build fails on empty project

Discussion in 'Editor & General Support' started by eci22, Mar 12, 2021.

  1. eci22

    eci22

    Joined:
    May 3, 2014
    Posts:
    3
    [SOLUTION part 1 for error msg: /BeeSettings/offline/bee.exe]
    sudo apt-get -q update
    sudo apt-get -q install -y --no-install-recommends --allow-downgrades python build-essential clang
    sudo apt-get clean
    sudo rm -rf /var/lib/apt/lists/
    [/SOLUTION]

    [SOLUTION part 2 for error message libtinfo.so.5: cannot open shared object file: No such file or directory]

    sudo apt install libtinfo5

    #if you get a message about Package 'libtinfo5' has no installation candidate
    sudo add-apt-repository universe
    sudo apt-get update
    sudo apt install libtinfo5
    [/SOLUTION]

    UPDATE: I just did a fresh install on kubuntu 21.10 and whilst solution part 1 fixes the 'BeeSettings/offline/bee.exe' error message, there is a new error message that follows:
    'libtinfo.so.5: cannot open shared object file: No such file or directory
    ERROR:root:compiler frontend failed to generate LLVM bitcode, halting'. This error can be resolved by running [SOLUTION part 2] with those two solutions executed I am able to build webGL on a fresh install of kubuntu 21.10 running 2020.3.28f1 LTS. hope this helps

    Keeping this for anyone in the future having the same problem. I would appreciate it if a mod can move this to the linux forum as it would probably be more appropriate there.

    Running unity on Linux:
    Ubuntu 20.04.2 LTS

    Unity Version tested
    2020.2.6f
    2020.2.7f

    Install unity with webGL package. Create an empty project->switch platform to webGL->build

    build fails on the IL2CPP stage:
    /home/kp/Unity/Hub/Editor/2020.2.7f1/Editor/Data/il2cpp/build/BeeSettings/offline/bee.exe exited after 9945 ms.
    System.ComponentModel.Win32Exception (2): No such file or directory


    complete trace

    /home/kp/Unity/Hub/Editor/2020.2.7f1/Editor/Data/il2cpp/build/BeeSettings/offline/bee.exe exited after 9945 ms.
    System.ComponentModel.Win32Exception (2): No such file or directory
    at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart(ExecuteContext context, Boolean asyncMode) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 423
    at Unity.IL2CPP.Shell.ExecuteAsync(ExecuteArgs executeArgs, IExecuteController controller, Boolean asyncMode) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 299
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Shell/Shell.cs:line 355
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 334
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/ParallelFor.cs:line 73

    Unity version 19.4.20f1 (LTS) also fails on the I2CPP with the same error

    Any help would be greatly appreciated-this project is somewhat urgent,

    WebGL builds fine on Windows.

    Thank you.
     
    Last edited: Feb 13, 2022
  2. tech_unity883

    tech_unity883

    Joined:
    Apr 23, 2021
    Posts:
    3
    I am getting the same errors. I tried the solution but it didn't work for me.
     
  3. Schud

    Schud

    Joined:
    Jan 9, 2013
    Posts:
    5
    upload_2021-8-21_16-6-50.png

    This stills happens on 2020 LTS.
     
  4. eci22

    eci22

    Joined:
    May 3, 2014
    Posts:
    3
    I just updated my solution with a part 2. I was able to compile WebGL on a fresh install of kubuntu 21.1 running unity 2020.3.28f1 LTS. Hope this helps