-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build latest on macOS Mojave with emsdk@1.38.16 #103
Comments
To fix that error, the error message suggests this, which should work:
What you suggest about just running WebAssembly.instantiateStreaming would work for pure wasm, but not for the JS that works with it. In some cases you can get close to not having any JS, see here, but until wasm has access to JS objects it will depend on JS heavily for a lot of things. |
Hey, thanks for getting back to me! I'll give that a try. I didn't initially because Anyway, I'll give that a try and do a bit more reading about how |
Yeah, fixing the errors would be better, if you or someone has time to look into them. (Maybe a file isn't linked in, for example?) But that option would get us to the same behavior emscripten had before, so it's not making things worse. |
Okay, I forked this and created a branch that you can see in this comparison. I broke the Running 11 error(s), 5 warning(s)
ERROR:root:closure compiler failed (rc: 11)
make: *** [box2d.js] Error 1 There are several giant blocks of what looks like minified JavaScript with what look like more specific error messages in there … they look like this: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/tmp/tmpma5o38/Box2D_v2.3.1_min.bc.o.js.pp.js.mem.js.jso.js.jso.js.jso.js:1: ERROR - variable _emscripten_bind_b2Vec3_b2Vec3_2 is undeclared … but there's several thousand lines between them and my As far as actually fixing the errors I'd be happy to try and figure this out, but any pointers as to where they'd need to be linked in? This whole set up is new to me and between the Python and the C++ and the generated files and the IDLs and the make scripts … I'm kinda lost. I am fully willing to accept that I may be trying to bite off more than i can chew. |
Closure compiler issues like that are tricky to debug in my experience. But you can build without closure and look for why that function isn't defined - it should be emitted from the webidl binder emitter, I think, so it's not a linking problem. It's possible this isn't a bug here, but in the upstream webidl binder emitter - if you can get a standalone testcase showing the issue that could prove that. However, another option is to set |
Hi there, I am trying to compile this project into a WASM module with the associated JS loader/import object so that I can use it in a bigger project as an ES module. So far I've just been trying to follow the instructions on emscripten.org and webassembly.org to get set up, but I can't get this to build. Here's how my environment is set up:
$ emcc -v emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.38.16 clang version 6.0.1 (emscripten 1.38.16 : 1.38.16) Target: x86_64-apple-darwin18.2.0 Thread model: posix InstalledDir: /Users/matt/Sites/juj/emsdk/clang/e1.38.16_64bit INFO:root:(Emscripten: Running sanity checks)
Here's the toolchain stuff:
I got the
"Hello, world!\n"
example project working fine, but when I try to follow the instructions for this project I get this:I'm pretty inexperienced with C/C++ and this whole toolchain is kinda foreign to me, but what I'd really like is something like this:
… on a scale of 1 to 10 how far off am I in my expectations? What am I missing?
The text was updated successfully, but these errors were encountered: