-
Notifications
You must be signed in to change notification settings - Fork 694
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
[bazel] Frozen Cache exception with MEMORY64=1 #1432
Comments
You don't need However, if you did want to use |
Ah good catch. For now I only need 64 bit values. What is the recommended approach for that? Without
However, it wasn't clear to me where |
Given the hint that
It compiled! In chrome I had to enable a few experimental flags:
My test function verified that was indeed getting 64bit values 🎉 🎉 Now the question is: How can we do this without 64bit memory and only 64 bit values to avoid the feature flag hassle? |
This means that somehow |
I think this happening because I am using But it looks like m64 is not only making the int and long 64 bit, but also the pointers 64 bit causes the Perhaps there is another way to tell Emscripten to use 64 bits in the values? |
If you need That seems like a rather odd requirement though. Can you link o the Remember that wasm64 is still experimental so it would still be better to find a way to remove the requirement if you can. |
Update: I wrote a small patch with 32bit hashing. A few things broke, but luckily nothing that I care about. In the long term, I anticipate wasm64 to be a more stable solution. Is there timeline for wasm64 graduating out of the experimental state? |
It should be fairly soon now. I would hope in the next month. |
Do you have any idea why they chose to use |
I think that comes from std::hash, which has size_t as the return type.
That's exciting! Does that encompass the experimental state here or also the experimental support for other browsers? |
Once a proposal reaches stage4 that means at least 2 browser support it. In this case that will be chrome and firefox. Once stage4 is reached the next release of those browser will support wasm64 without a flag. |
Great thank you! |
I am trying to bind a library that uses 64bits for it's hashing algorithm. In the process I ran into several bugs where I set the architecture to 64 bits with
--copt=-m64
and used both-s MEMORY64=1
and-s WASM_BIGINT=1
in the linker options.Then I got this strange error with
Exception: FROZEN_CACHE is set, but cache file is missing
, where I hit my debugging limits. I was told that #971 and #1405 may/should've have resolved these issues but again, I am not deep enough into bazel and embind yet to understand the caching issue.However, to make this process easier, I created a minimum example to reproduce this problem.
The text was updated successfully, but these errors were encountered: