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\2.7.5.3_64bit\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"
stdout: 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 emcc.run() 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\tools\shared.py", line 1638, in llvm_opt assert os.path.exists(target), 'Failed to run llvm optimizations: ' + output AssertionError: Failed to run llvm optimizations:
Answer by wondersteve · Feb 27, 2018 at 01:53 AM
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.
Well, it is a well known library actually, is not my code. it works perfect in a web page, no error thrown
Yes, my code was technically correct also. I'm thinking the problem is in the parser. $$anonymous$$y suggestion is only a workaround
Your answer
![](https://koobas.hobune.stream/wayback/20220612151045im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Error after compiling WebGL 1 Answer
Export WebGL failed 0 Answers
Is it possible to stream WebGL render to the client ? 0 Answers