Skip to content
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

example without-a-bundler fails to build #124

Open
darkoverlordofdata opened this issue Dec 20, 2021 · 1 comment
Open

example without-a-bundler fails to build #124

darkoverlordofdata opened this issue Dec 20, 2021 · 1 comment

Comments

@darkoverlordofdata
Copy link

darkoverlordofdata commented Dec 20, 2021

uname -all

Linux penguin 5.4.151-16908-gff376e5d5ee1 #1 SMP PREEMPT Sat Dec 11 19:42:45 PST 2021 aarch64 GNU/Linux

I'm trying to build the example without-a-bundler (https://github.com/rustwasm/wasm-bindgen/tree/main/examples)

wheb I run the build step

wasm-pack build --target web

and it fails:

[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
    Finished release [optimized] target(s) in 0.24s
[INFO]: Installing wasm-bindgen...
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', /home/darko/.cargo/registry/src/github.com-1ecc6299db9ec823/wasm-bindgen-cli-support-0.2.78/src/descriptor.rs:205:15
stack backtrace:
   0: rust_begin_unwind
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:517:5
   1: core::panicking::panic_fmt
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/panicking.rs:100:14
   2: core::panicking::panic_bounds_check
             at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/panicking.rs:76:5
   3: wasm_bindgen_cli_support::descriptor::Descriptor::_decode
   4: wasm_bindgen_cli_support::descriptor::Function::decode
   5: wasm_bindgen_cli_support::descriptor::Descriptor::_decode
   6: wasm_bindgen_cli_support::descriptors::execute
   7: wasm_bindgen_cli_support::Bindgen::generate_output
   8: wasm_bindgen_cli_support::Bindgen::generate
   9: wasm_bindgen::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Error: Running the wasm-bindgen CLI
Caused by: failed to execute `wasm-bindgen`: exited with exit status: 101
  full command: "/home/darko/.cache/.wasm-pack/wasm-bindgen-cargo-install-0.2.78/wasm-bindgen" "/home/darko/GitHub/wasm-bindgen/target/wasm32-unknown-unknown/release/without_a_bundler.wasm" "--out-dir" "/home/darko/GitHub/wasm-bindgen/examples/without-a-bundler/pkg" "--typescript" "--target" "web"

@darkoverlordofdata
Copy link
Author

You may as well close this. I've tried other examples, and they fail also. the thread in common seems to be wasm. The eror message on some of them give the error as no binary available for platform aarch64. So I guess I wait for arm support. Too bad. I started a couple of projects on my asus and it died. I think I shoula stuck with c/c++.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant