Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

Cannot build WebGL on 2018.2.12f1

Discussion in 'Linux Editor' started by Krstn, Oct 13, 2018.

  1. Krstn

    Krstn

    Joined:
    Dec 30, 2012
    Posts:
    22
    Hi,

    I've downloaded the 2018.2.12f1 using the UnityHub, I am building in headless mode.

    After switching from 2018.2.7f1, I cannot build my webgl, I keep gettings:

    Code (CSharp):
    1. stdout:
    2. Building build.bc with EmscriptenToolChain
    3.         Output directory: /root/projects/dw_bo_unity_positioning/Temp/StagingArea/Data/Native
    4.         Cache directory: /root/projects/dw_bo_unity_positioning/Library/il2cpp_cache
    5. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: error: unknown argument: '-disable-O0-optnone'
    6. ERROR:root:compiler frontend failed to generate LLVM bitcode, halting
    7.  
    8.  
    9. Invocation was: Executable: python2
    10. Arguments: "/root/Unity/Hub/Editor/2018.2.12f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/em++" -Wno-unused-value -Wno-invalid-offsetof -nostdinc -fno-strict-overflow -std=c++11 -Oz -DNET_4_0 -DUNITY_JIT -DGC_NOT_DLL -DRUNTIME_IL2CPP -DNDEBUG -I"/root/Unity/Hub/Editor/2018.2.12f1/Editor/Data/il2cpp/libil2cpp" -I"/root/Unity/Hub/Editor/2018.2.12f1/Editor/Data/il2cpp/external/boehmgc/include" -I"/root/projects/dw_bo_unity_positioning/Temp/StagingArea/Data/il2cppOutput" "/root/projects/dw_bo_unity_positioning/Temp/StagingArea/Data/il2cppOutput/Il2CppMetadataUsage.cpp" -o "/root/projects/dw_bo_unity_positioning/Library/il2cpp_cache/D4695DBD1DC7FA3F6C49F7F0436BBF98.o"
    11.  
    12.  at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles (System.Collections.Generic.IEnumerable`1[T] sourceFilesToCompile, Unity.IL2CPP.Building.Statistics.IBuildStatisticsCollector statisticsCollector) [0x001e3] in <c2d6e168c5194bd3a5eb63f84912e96d>:0
    13.  at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x001d0] in <c2d6e168c5194bd3a5eb63f84912e96d>:0
    14.  at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00001] in <c2d6e168c5194bd3a5eb63f84912e96d>:0
    15.  at il2cpp.Program.DoRun (System.String[] args) [0x00687] in <ed91f4cb3dfc4c70852d8b03a77d76e6>:0
    16.  at il2cpp.Program.Run (System.String[] args) [0x00020] in <ed91f4cb3dfc4c70852d8b03a77d76e6>:0
    17.  at il2cpp.Program.Main (System.String[] args) [0x00002] in <ed91f4cb3dfc4c70852d8b03a77d76e6>:0
    18. stderr:
    19.  
    20. Unhandled Exception:
    21. Unity.IL2CPP.Building.BuilderFailedException: error: unknown argument: '-disable-O0-optnone'
    22. ERROR:root:compiler frontend failed to generate LLVM bitcode, halting

    Always before the build, the Library and any temporary directory is cleaned, so there is no way earlier builds could affect this one.

    Any help will be appreciated.
     
    UnsolvedCypher likes this.
  2. VirtuosoWJ

    VirtuosoWJ

    Joined:
    Oct 17, 2018
    Posts:
    1
    Same error here :/
     
  3. gromilQaaaa

    gromilQaaaa

    Joined:
    Oct 28, 2013
    Posts:
    14
    Where did you get 12f1 if 2018.2.7f1 is the latest linux release?

    PS: Nvm, I see you used UnityHub
     
  4. Puck

    Puck

    Joined:
    Aug 14, 2013
    Posts:
    2
    Same issue here as well. The strange part is that the command line that Unity specifies it executed doesn't include that "unknown option".
     
  5. gromilQaaaa

    gromilQaaaa

    Joined:
    Oct 28, 2013
    Posts:
    14
  6. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    933
  7. ishwara_bhat

    ishwara_bhat

    Joined:
    Oct 18, 2018
    Posts:
    11
    Same here. "
    Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: opt: Unknown command line argument '-vectorize-slp-aggressive=false'. Try: 'd:/2019.2.12f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\Emscripten_FastComp_Win\opt -help'
    opt: Did you mean '-vectorize-num-stores-pred=false'?
    "
    Is there any work around ? Can I edit and repalce the vectorise-slip-aggressive with '"-loop-vectorize" or something else?