I'm seeing the same messages on macOS (but I'm getting a runnable program, 
despite the error messages), here's what I'm doing:

- install the standard llvm 8.0 toolchain with 'brew install llvm'
- change LLVM_ROOT in .emscripten to LLVM_ROOT='/usr/local/opt/llvm/bin'
- from here on as usual...

The cmake generation phase seems to work, cmakes test-compiles for 
compiler-detection work, and it is picking up the right compiler:

-- The C compiler identification is Clang 8.0.0
-- The CXX compiler identification is Clang 8.0.0

...but when compiling the project I'm getting the same messages:

shared:WARNING: LLVM version appears incorrect (seeing "8.0", expected 
"9.0")

...and later when linking it doesn't find my EM_JS() functions, e.g.:

error: undefined symbol: _sapp_js_create_textfield
error: undefined symbol: _sapp_js_focus_textfield
error: undefined symbol: _sapp_js_unfocus_textfield

Switching off ERROR_ON_UNDEFINED_SYMBOLS I'm getting a running program out 
of this however (those JS functions aren't actually called in the simple 
"Hello Triangle" program I'm testing).

-Floh.

On Thursday, 4 April 2019 10:00:46 UTC+2, Chuck H wrote:
>
> Hi, 
>
> I am new to Emscripten and currently I am trying to use LLVM WebAssembly 
> Backend in the Emscripting following the tutorial 
> https://emscripten.org/docs/compiling/WebAssembly.html 
> However, when I run the command "emcc tests/hello_world.cpp -o test.html" 
> on Windows, I get this warning "shared:WARNING: LLVM version appears 
> incorrect (seeing "8.0", expected "9.0")".
> Moreover, when I open the test.html, the following errors appear in the 
> webpage:
>
> both async and sync fetching of the wasm failed
> abort("both async and sync fetching of the wasm failed") at Error
>     at jsStackTrace 
> (file:///C:/Users/Desktop/test/emsdk/emscripten/1.38.30/test.js:1140:13)
>     at stackTrace 
> (file:///C:/Users/Desktop/test/emsdk/emscripten/1.38.30/test.js:1157:12)
>     at abort 
> (file:///C:/Users/Desktop/test/emsdk/emscripten/1.38.30/test.js:2453:44)
>     at getBinary 
> (file:///C:/Users/Desktop/test/emsdk/emscripten/1.38.30/test.js:1573:5)
>     at 
> file:///C:/Users/Desktop/test/emsdk/emscripten/1.38.30/test.js:1587:14 
>
> So what is the issue here? is it because I am using LLVM 8.0.0?
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to