Cannot build WebGL on 2018.2.12f1

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:

stdout:
Building build.bc with EmscriptenToolChain
        Output directory: /root/projects/dw_bo_unity_positioning/Temp/StagingArea/Data/Native
        Cache directory: /root/projects/dw_bo_unity_positioning/Library/il2cpp_cache
il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: error: unknown argument: '-disable-O0-optnone'
ERROR:root:compiler frontend failed to generate LLVM bitcode, halting


Invocation was: Executable: python2
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"

  at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles (System.Collections.Generic.IEnumerable`1[T] sourceFilesToCompile, Unity.IL2CPP.Building.Statistics.IBuildStatisticsCollector statisticsCollector) [0x001e3] in <c2d6e168c5194bd3a5eb63f84912e96d>:0
  at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x001d0] in <c2d6e168c5194bd3a5eb63f84912e96d>:0
  at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00001] in <c2d6e168c5194bd3a5eb63f84912e96d>:0
  at il2cpp.Program.DoRun (System.String[] args) [0x00687] in <ed91f4cb3dfc4c70852d8b03a77d76e6>:0
  at il2cpp.Program.Run (System.String[] args) [0x00020] in <ed91f4cb3dfc4c70852d8b03a77d76e6>:0
  at il2cpp.Program.Main (System.String[] args) [0x00002] in <ed91f4cb3dfc4c70852d8b03a77d76e6>:0
stderr:

Unhandled Exception:
Unity.IL2CPP.Building.BuilderFailedException: error: unknown argument: '-disable-O0-optnone'
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.

1 Like

Where did you get 12f1 if 2018.2.7f1 is the latest linux release?

PS: Nvm, I see you used UnityHub

Same issue here as well. The strange part is that the command line that Unity specifies it executed doesn’t include that “unknown option”.

Having the same problem. Made a duplicate thread with my full building log, sorry:

We can repro this internally and made a bug. Will show up at Unity Issue Tracker - [Linux Editor] WebGL fails building with error soon.

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?

Same here at 2020.1.0a21 and 0a22. Just startup new Universal RP project cannot be built

Unity.IL2CPP.Building.BuilderFailedException: opt: Unknown command line argument '-vectorize-slp-aggressive=false'

me too

1 Like