WebGL build failed running python and emcc

Hey guys,

Desperate to find out how to fix this…

Build keep failing, been at this for hours.

Failed running “C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\\python.exe” “C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc” @“G:\Documents\Jobs\Justin\Metropolitan\Game1\Game One - Copy (2)\Assets..\Temp\emcc_arguments.resp”

stderr:WARNING:root:–separate-asm works best when compiling to HTML. otherwise, you must yourself load the ‘.asm.js’ file that is emitted separately, and must do so before loading the main '.js` file
error: Linking globals named ‘_ZTTN10ClipperLib7ClipperE’: symbol multiply defined!
Traceback (most recent call last):
File “C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc”, line 13, in
File “C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc.py”, line 1640, in run
final = shared.Building.llvm_opt(final, link_opts, DEFAULT_FINAL)
File “C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten ools\shared.py”, line 1638, in llvm_opt
assert os.path.exists(target), 'Failed to run llvm optimizations: ’ + output
AssertionError: Failed to run llvm optimizations:

Take a look at your .jslib plugin javascript. Refactor your code so that the .jslib contains only the most minimal processing, and look it over for spurious commas or other syntax issues. Apparently the emcc parser is 1) very picky about what it accepts 2) isn’t well documented and 3) doesn’t provide the best error messages.