-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
"Cannot fork" error when building with 3.1.39 (coming from 2.0.34) #19409
Comments
The fork system call certainly never worked in emscripten, and I don't think it ever returned success, even with 2.0.34. I would imagine that calling fork() would always result in a
It looks like that stub was created in #15209 which essentially moved the stub from JS code to native code. And that PR was released in 2.0.32. My advice would be to try to track down where your code is calling |
Thanks for this answer @sbc100! We'll also try to update our HTML/JS shell page, now thinking it might be required. |
Perhaps you can build with You might also try bisecting to find out which emscripten release introduced this issue for you: https://emscripten.org/docs/contributing/developers_guide.html#bisecting |
Ok, we found the problem! Thanks for your help anyway @sbc100! |
We're trying to update the emsdk to build our application.
We were still using
2.0.34
.We installed
3.1.39
and could build our app without issues. But at runtime, we're getting these logs in the console:It seems to point to that line specifically:
We've been trying to understand that, looked around for similar issues, but we're unfortunately still clueless.
Tried to
emcc --clear-cache
+ flushing build directory.I don't think
fork()
used to be allowed either with2.0.34
, and it still works for us when sticking to that version.The text was updated successfully, but these errors were encountered: