Coder Social home page Coder Social logo

Comments (2)

TimDaub avatar TimDaub commented on May 28, 2024

Tried setting it up, didn't change anything, and found that the Module() call on this line returns a Promise.

Interesting. I'm not aware that it returns a promise. I see two options: (1) Either it has always returned a promise and somehow the app is still working. (2) Module has only started returning a promise in a more recent version of emscripten.

I just went into the project again and checked my version of emcc:

emcc -v
cache:INFO: generating system asset: is_vanilla.txt... (this will be cached in "/Users/user/.emscripten_cache/is_vanil
la.txt" for subsequent builds)
cache:INFO:  - ok
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.39.0
clang version 10.0.0 (/b/s/w/ir/cache/git/chromium.googlesource.com-external-github.com-llvm-llvm--project e44524736c4a97
ae4fb37193e58647f838f6d36a)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Users/user/Projects/emsdk/upstream/bin
shared:INFO: (Emscripten: Running sanity checks)

Then I did a build using npm run dev. When I logged:

this.kernel = Module();
here's what I get:

Screen Shot 2021-07-03 at 16 36 12

I see a few paths of moving this issue forward:

  • I'll change the readme.md to say that emcc of version. emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.39.0 is required
  • I'm happy to review any PRs that e.g. upgrade WASM-SYNTH to work with a new major version of the emscripten SDK

from wasm-synth.

mjmaurer avatar mjmaurer commented on May 28, 2024

Thanks for the response. FWIW I'm on emcc 2 so it could be a breaking change. I'd be happy with the README change

emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 2.0.1
clang version 11.1.0

from wasm-synth.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.