-
Notifications
You must be signed in to change notification settings - Fork 733
Missing emcc.py when building using bazel. #1540
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
Comments
Do things work better if you try the very latest version of emscripten? i.e. if you change the two version numbers to 4.0.5? |
The folder |
Seems like something is fundamentally broken with the archives files and where they are expected to be expanded to. I don't know enough about how emsdk_emscripten_deps works know where looks next. Perhaps @walkingeyerobot or @lravenclaw might have some clue? |
Update : I looked into it and it looks to be a sanboxing issue which should be enabled by default on my machine. I tried to run the build command with --spawn_strategy=local and it found the emcc.py file, but now I am getting another error.
|
I encountered the same issue attempting to upgrade to Bazel 8. I believe this may be a bug in Bazel. I created a minimal reproducer, and used that to bisect to a specific commit in Bazel that triggers the issue: https://github.com/jfirebaugh/emscripten_bazel_8_bug |
I am trying to build a hello world application following bazels guide using bazels toolchain. I have followed the guide here. I have added a the toolchain in a WORKSPACE.bzlmod file, created a .bazelrc and added a new target named hello-world-wasm like this:
WORKSPACE.bzlmod
I am running the build using this command line :
bazel build //main:hello-world-wasm --sandbox_debug --enable_workspace
ERROR :
/Applications/Xcode.app/Contents/Developer/usr/bin/python3: can't open file '/private/var/tmp/_bazel_smirzakhanyan/5ccbffad594df6a7f12c0c7207e57fcd/sandbox/darwin-sandbox/1/execroot/_main/external/emscripten_bin_mac_arm64/emscripten/emcc.py': [Errno 2] No such file or directory
Indeed there is no emcc.py file in the repo but there are references to it.
The text was updated successfully, but these errors were encountered: