GithubHelp home page GithubHelp logo

Comments (4)

sbc100 avatar sbc100 commented on July 17, 2024

To build for wasm64 you can add -sMEMORY64 to you compile and link commands.

from emsdk.

phoenix20162016 avatar phoenix20162016 commented on July 17, 2024

image
@sbc100 follows your suggestion,another error occurs, the following is my bazel configuration
image

in the fold of the compiler tools, the wasm64-emscripten dir really does not exist

from emsdk.

sbc100 avatar sbc100 commented on July 17, 2024

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.

wzheng21 avatar wzheng21 commented on July 17, 2024

@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:

  1. Disable bazel sandbox mode. Just specify --spawn_strategy=local. Be careful when using this, especially if this is not a toy project
  2. 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.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.