libcxx_noexcept issue

28 views
Skip to first unread message

Oliver Larkin

unread,
Mar 9, 2018, 6:46:53 AM3/9/18
to emscripten-discuss
Hello,

I'm having a problem compiling some C++11 to WASM.

here is my make file:


Do you have any idea why libcxx_noexcept.a might not be compiling, or what i should try?

thanks!

oli


8 warnings generated.
INFO:root:generating system library: libcxx_noexcept.a... (this will be cached in "/Users/oli/.emscripten_cache/asmjs/libcxx_noexcept.a" for subsequent builds)
Traceback (most recent call last):
  File "/Users/oli/Dev/MyWeb/emsdk-portable/emscripten/1.37.22/emar", line 13, in <module>
    emar.run()
  File "/Users/oli/Dev/MyWeb/emsdk-portable/emscripten/1.37.22/emar.py", line 61, in run
    subprocess.call(newargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "/Users/oli/Dev/MyWeb/emsdk-portable/emscripten/1.37.22/emcc", line 13, in <module>
    emcc.run()
  File "/Users/oli/Dev/MyWeb/emsdk-portable/emscripten/1.37.22/emcc.py", line 1417, in run
    extra_files_to_link += system_libs.calculate([f for _, f in sorted(temp_files)] + extra_files_to_link, in_temp, stdout_=None, stderr_=None, forced=forced_stdlibs)
  File "/Users/oli/Dev/MyWeb/emsdk-portable/emscripten/1.37.22/tools/system_libs.py", line 493, in calculate
    libfile = shared.Cache.get(name, do_create, extension=suffix)
  File "/Users/oli/Dev/MyWeb/emsdk-portable/emscripten/1.37.22/tools/cache.py", line 100, in get
    temp = creator()
  File "/Users/oli/Dev/MyWeb/emsdk-portable/emscripten/1.37.22/tools/system_libs.py", line 491, in do_create
    ret = create(name)
  File "/Users/oli/Dev/MyWeb/emsdk-portable/emscripten/1.37.22/tools/system_libs.py", line 227, in create_libcxx
    has_noexcept_version=True)
  File "/Users/oli/Dev/MyWeb/emsdk-portable/emscripten/1.37.22/tools/system_libs.py", line 99, in build_libcxx
    shared.Building.emar('cr', in_temp(lib_filename), o_s)
  File "/Users/oli/Dev/MyWeb/emsdk-portable/emscripten/1.37.22/tools/shared.py", line 2003, in emar
    assert os.path.exists(output_filename), 'emar could not create output file: ' + output_filename
AssertionError: emar could not create output file: /var/folders/xp/zf2pfh7j38786ph7yr6k03sw0000gn/T/tmpX34sT7/libcxx_noexcept.a
make: *** [IPlugEffect-WAM.js] Error 1

Alon Zakai

unread,
Mar 9, 2018, 11:54:05 AM3/9/18
to emscripten-discuss
emar.py calls llvm-ar, so perhaps that doesn't exist or isn't executable?

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Oliver Larkin

unread,
Mar 9, 2018, 12:44:20 PM3/9/18
to emscripte...@googlegroups.com
thanks very much that fixed it, for some reason llvm-ar in my emscripten folder was a dangling alias.



You received this message because you are subscribed to a topic in the Google Groups "emscripten-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/emscripten-discuss/tHU9Zs4zhAU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to emscripten-disc...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages