The warning about 8 vs 9 may be important - recent emscripten is developed against recent LLVM. So if it assumes LLVM 9 (currently in prerelease) it may well fail without that.
However, that error may be something else. Was there nothing else in the web console? It should say why it failed to fetch either async or sync. (For example, if the browser lacks wasm support, it should say that.) Building LLVM from latest git or svn is best. Or you can download a build from one of the green runs on the wasm waterfall, https://ci.chromium.org/p/wasm/builders For linux, you can also use the emsdk with ./emsdk install latest-upstream We hope to get other platforms working soon - that's actually the last major blocker before we officially start recommending people test the LLVM wasm backend (since feature-wise it's very close to what we need, and perf-wise it is better than fastcomp now). - Alon On Thu, Apr 4, 2019 at 1:00 AM Chuck H <[email protected]> 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. > -- 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.
