-
Notifications
You must be signed in to change notification settings - Fork 712
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
[BUILD FAILURE] Bazel builds are always failing! emsdk (3.1.31) #1181
Comments
Looks like a bug to me. We do do some basic testing as part of CI: https://github.com/emscripten-core/emsdk/blob/main/test/test_bazel.sh Perhaps you could look at what is different about your example and the tests we run? Does this example work for you: https://github.com/emscripten-core/emsdk/blob/main/bazel/hello-world/BUILD? |
Thanks for the help @sbc100 It looks like a cache file is not being deleted or something. If I change the name of the |
I fixed the issue using
I am going to leave this issue open because I do think this should be fixed within emscripten but at least this works |
@walkingeyerobot @PiotrSikora @jfirebaugh who might be what is going on there. I don't use bazel myself. |
Does it work if you name the |
@jfirebaugh I just tried to add |
This didn't fix my issue and it reappeared, though it seems changing
|
This seems to be a Windows-only error. In Unix systems, Python's It is possible for the destination file to exist if it was generated previously so this issue will only come up on the second build attempt with a modification to the source files since Bazel caches previous results. |
Hi,
I am having an issue with Bazel and emscripten.
I simply want to link a static library which builds fine natively (using cc_binary directly) but always fails with wasm_cc_binary:
I am using the latest version of emsdk (3.1.31)
I tried to remove all the bazel folders and even started from scratch using the hello world example (https://github.com/emscripten-core/emsdk/tree/main/bazel/hello-world).
As soon as I add
deps
tocc_binary
the emscripten build fails!The error
Files
My BUILD file (/hello-world/BUILD):
My main (/hello-world/hello-world.cc):
/lib/localtime/localtime.h
/lib/localtime/localtime.cpp
/lib/localtime/BUILD
Is this a bug or am I doing something wrong? Again this works great when compiling natively WITHOUT emscripten
The text was updated successfully, but these errors were encountered: