Emscripten 1.34.1 Issue

家住魔仙堡 提交于 2021-01-28 02:51:37

问题


Things were working fine in an Emscripten build 1.29.0 but after upgrading to 1.34.1, I get the following error:

1>  Traceback (most recent call last):
1>    File "C:\Program Files\Emscripten\emscripten\1.34.1\\emcc", line 1260, in <module>
1>      shared.Building.llvm_opt(final, link_opts)
1>    File "C:\Program Files\Emscripten\emscripten\1.34.1\tools\shared.py", line 1429, in llvm_opt
1>      assert os.path.exists(target), 'Failed to run llvm optimizations: ' + output
1>  AssertionError: Failed to run llvm optimizations: 
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Emscripten\Microsoft.Cpp.Emscripten.Targets(117,5): error MSB6006: "C:\Program Files\Emscripten\emscripten\1.34.1\emcc.bat" exited with code 1.

One cause for concern was reading this line from changelog, and then not knowing what the approach was or the process was if the following was not being used (I'm using VS2010):

 - Enabled native JS optimizer to be built automatically on Windows, requires VS2012 or VS2013. 

If anyone would know why things don't work, after uninstalling and re-installing everything and cleaning source, then please let me know!


回答1:


This appear to be a regression in 1.34.1. I had the exact same issue. After upgrading to 1.34.6 the error went away. I don't which commit fixed it but I would suggest you also update to 1.34.6+.



来源:https://stackoverflow.com/questions/31528893/emscripten-1-34-1-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!