Thanks for the feedback John! 1. First thing I'd make sure is that all source files and libraries are built with the new version. Mixing object files between versions can lead to link errors.
If it's not that, then looks like that symbol should arrive from libcompiler_rt. Looking in EMCC_DEBUG=1 output during link can show which libs it decides to link in. Is compiler-rt not there? It should always be linked in, unless overridden by EMCC_ONLY_FORCED_STDLIBS, I believe. (If you are using that option, then you need to include all necessary libs, and the list does change by the backend, I believe.) 2. "is not a function" is probably a bad function pointer call. Building with --profiling might show a useful stack trace. But this may just be a bug in wasm2js, if the same optimization level works in wasm output in the new backend. If you can provide a testcase that would be good. - Alon On Thu, Oct 24, 2019 at 4:58 AM 'John Harvey' via emscripten-discuss < [email protected]> wrote: > > > I am seeing 2 problems with 1.39.0 upstream > 1) If i use -s WASM_OBJECT_FILES=0 when building our application i end up > with an undefined symbol > wasm-ld: error: > d:\users\jpharvey\.emscripten_cache_1.39.0-upstream\wasm-bc\libcompiler_rt.bc: > undefined symbol: __threwValue > > Any idea how i can try to fix or debug this? > > 2) When building for asm-js and using -O3 optimization level the the code > builds but doesn't run with the following message in the console > TypeError: o[r[((r[(w2 >> 2)] + 8) >> 2)]] is not a function > libthingview.js:33:1061013 > At -O2 level this is fine. And using fastcomp it is fine at both > optimization levels > Again any idea how i can try to help debug this. > > John > >> >> -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/emscripten-discuss/b3fc0d3b-5668-4d5c-acbf-4cb23bca1e82%40googlegroups.com > <https://groups.google.com/d/msgid/emscripten-discuss/b3fc0d3b-5668-4d5c-acbf-4cb23bca1e82%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpS-wOb%2B0%3Dy38ehUwfLm%3D_fq8quxYn6LDVrO%2B_2Uk_xkcA%40mail.gmail.com.
