-
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
Compiler assertion failure when building Bullet (ammo.js) with SSE support enabled. #3009
Comments
Following the steps above, I get this error: ImportError: No module named tools.shared Is there a python package I should install for this? |
|
That was it. I was able to reproduce the failure, and I've now checked in several fixes to emscripten-fastcomp. Locally, I also made a few minor edits to the bullet source code, to eliminate _mm_move_sd in 3 places, like this:
(though note that I'm not yet completely confident that that's the right shuffle mask in the end). since _mm_move_sd uses float64x2 which we don't yet support. With these fixes, the build succeeds. It doesn't validate as asm.js because it's not yet built with -s PRECISE_F32. See [0] for backgroud info; I'll look into hacking the build scripts to add that. And, it doesn't yet run successfully yet; there are errors at runtime that I haven't investigated yet. |
Ok, with several more fixes checked in, plus one hack, I can now build, validate, and run bullet with SIMD. It still needs the changes to avoid _mm_move_sd mentioned above, and it needs this one hack in builds/temp.js to work around the fact that OdinMonkey doesn't support storeXYZ yet [0]: -SIMD_float32x4_storeXYZ(HEAPU8, $scevgep, $tmpA$sroa$0$0$vec$extract); |
Works in current incoming. |
Set up to build with the Emscripten branch https://github.com/juj/emscripten/tree/sse2 , then
Observed:
The build fails with
The text was updated successfully, but these errors were encountered: