Comments (4)
@phoenix20162016 I had the same problem as yours. For whoever having similar issues, I had to patch emsdk setting FROZEN_CACHE = False
in config.py, then the issue becomes read-only blabla
error, basically indicating emscripten tries to compile libraries and writes into a temporary cache folder but failed.
This of course would fail, due to bazel's idea of keeping builds hermitian. The following are the two different workarounds I tested that worked:
- Disable bazel sandbox mode. Just specify
--spawn_strategy=local
. Be careful when using this, especially if this is not a toy project - Don't play with sandbox, but specify
--action_env=EM_CACHE=~/.cache/emscripten_cache
. When FROZEN_CACHE is False, emscripten will try to write to~/.emscripten_cache
, which will definitely fail in bazel sandbox mode due to permissions. Writing to~/.cache
folder, however, is allowed.
Hope this is helpful for anyone getting stuck with this issue.
from emsdk.
To build for wasm64 you can add -sMEMORY64
to you compile and link commands.
from emsdk.
@sbc100 follows your suggestion,another error occurs, the following is my bazel configuration
in the fold of the compiler tools, the wasm64-emscripten dir really does not exist
from emsdk.
I see, yes we don't currently wasm64 versions of any core libraries in the bazel toolchain. I think this is the same as #807. Perhaps we can close this and continue the discussion there?
from emsdk.
Related Issues (20)
- emsdk activate breaks things HOT 1
- errors while running emmake make HOT 1
- Version of `wasm_cc_binary` that doesn't untar the result? HOT 4
- set -sMAXIMUM_MEMORY = 4GB & use uuid HOT 1
- [Bazel] [Potential solution] Cannot build multiple emscripten binaries in parallel with bazel HOT 1
- [Bazel] Add example of extracting Emscripten's output with rules_foreign_cc
- emsdk install tot command fails HOT 2
- 3.1.61 Docker image not published HOT 1
- The compilation speed is too slow. HOT 1
- [Bazel] Should the toolchain set the same variables as tools/building.py? HOT 2
- TypeError: Failed to execute 'createObjectURL' on 'URL': Overload resolution failed. HOT 1
- [Bazel] Main bootstrap script for Wasm Audio Worklets not generated HOT 3
- [Bazel] feature flags for the Emscripten toolchain HOT 18
- [Bazel] Dynamically generate Emscripten cache HOT 5
- Downloading files with urllib results in missing KB HOT 3
- THYDU𝕏
- THYDU𝕏
- THYDU𝕏
- [bazel] [rules_foreign_cc] ModuleNotFoundError: No module named 'tools' HOT 11
- wasm_cc_binary with tensorflow lite minimal example failed HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emsdk.