-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Description
I am getting the following error running emcc:
$ emcc libbayes_net_ex.a -o out.js
INFO:root:generating system library: libc.bc... (this will be cached in "/Users/abhi/.emscripten_cache/asmjs/libc.bc" for subsequent builds)
INFO:root: - ok
INFO:root:generating system library: dlmalloc.bc... (this will be cached in "/Users/abhi/.emscripten_cache/asmjs/dlmalloc.bc" for subsequent builds)
INFO:root: - ok
/Users/abhi/Downloads/emsdk-portable/clang/e1.37.13_64bit/opt: error loading file '/private/var/folders/8x/d4z0ynkd0z37z1jy6x8b0sdw0000gn/T/emscripten_temp_shjQr6_archive_contents/bayes_net_ex.cpp.o'
Traceback (most recent call last):
File "/Users/abhi/Downloads/emsdk-portable/emscripten/1.37.13/emcc", line 13, in <module>
emcc.run()
File "/Users/abhi/Downloads/emsdk-portable/emscripten/1.37.13/emcc.py", line 1494, in run
final = shared.Building.llvm_opt(final, link_opts, DEFAULT_FINAL)
File "/Users/abhi/Downloads/emsdk-portable/emscripten/1.37.13/tools/shared.py", line 1838, in llvm_opt
assert os.path.exists(target), 'Failed to run llvm optimizations: ' + output
AssertionError: Failed to run llvm optimizations:
The file in question is in the following zip file. just run emcc libbayes_net_ex.a -o out.js
after extracting
libbayes_net_ex.a.zip
With regard to what may be causing the issue, I am not exactly sure since I don't have much experience with compilers. I am trying to compile files from dlib if that helps at all.
Metadata
Metadata
Assignees
Labels
No labels