EMCC_EXPERIMENTAL_USE_LLD=1 and unresolved symbol

2018-04-12 Thread Sander Spies
Hi all, At the moment I'm working on a wasm backend for OCaml and using Emscripten for the C parts of the OCaml compiler. For the wasm parts generated by C to communicate with parts generated from OCaml I will need to have linking in place. Ideally I want to do this using LLD with the

Re: help with converting library to JS

2018-04-12 Thread Peter
Hello again, so I try to do as you told and now i have something like this: https://github.com/marwin1991/libamtrackforjs If someone could look at cmake and tell me if its good :) W dniu czwartek, 5 kwietnia 2018 08:44:06 UTC+2 użytkownik Peter napisał: > > Hello, I am working on application to

Re: help with converting library to JS

2018-04-12 Thread Peter
my current errors are: during emcmake .. from sub directory: [root@osboxes _buikd]# /home/osboxes/emsdk/emscripten/1.37.36/emcmake .. emconfigure is a helper for configure, setting various environment variables so that emcc etc. are used. Typical usage: emconfigure ./configure [FLAGS]

Problem with exceptions

2018-04-12 Thread Zajo
I get this error at run-time: exception thrown: TypeError: Cannot read property 'rethrown' of undefined,TypeError: Cannot read property 'rethrown' of undefined at ___cxa_rethrow (/Users/zajo/Desktop/ssi/re-core/bld/ems_debug/json_test-parse.js:1612:34) at Array.___cxa_rethrow__wrapper

Re: Problem with exceptions

2018-04-12 Thread Zajo
In case it helps, the actual generated .js function where this occurs looks like this: function ___cxa_rethrow() { var ptr = EXCEPTIONS.caught.pop(); if (!EXCEPTIONS.infos[ptr].rethrown) { // Only pop if the corresponding push was through rethrow_primary_exception