Skip to content

x #4

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

Closed
josh83abc opened this issue Oct 29, 2020 · 0 comments
Closed

x #4

josh83abc opened this issue Oct 29, 2020 · 0 comments

Comments

@josh83abc
Copy link

josh83abc commented Oct 29, 2020

Hello guys,

I just upgraded to the latest version of emscripten and I can't make my project to work anymore. I didn't do any change, I just needed to recompile. 2 months ago it worked fine.

It looks like the new version doesn't include Module._malloc et Module._free anymore

So now I got the error : Module._malloc is not a function

And by comparing with my old working compiled project, I can see that these lines are missing in the generated JS :
Object.getOwnPropertyDescriptor(a.ready,"_malloc") ...
Object.getOwnPropertyDescriptor(a.ready,"_free") ...

I tried to add the malloc and free manually : emcc .... -s EXPORTED_FUNCTIONS="['_malloc', '_free']"

But now I get this error : RuntimeError: abort(Assertion failed: exported native function malloc not found)

How to include Module._malloc and Module._free with the latest emscripten update?

Thanks for your help, I lost 3 hours on this :/

@josh83abc josh83abc changed the title How to include Module._malloc and Module._free with the latest emscripten update? x Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant