Closed mush42 closed 6 months ago
wasm32-unknown-emscripten
is now supported in v1.15.5.
Thanks @decahedron1!
That's great! Stupid question, but would this also work for wasm32-unknown-unknown
?
That's great! Stupid question, but would this also work for
wasm32-unknown-unknown
?
Unfortunately no, because ONNX Runtime is built with Emscripten and thus relies on a lot of Emscripten symbols.
Is there any guide or examples for using ort
in the web? I am having problems compiling successfully with wasm32-unknown-emscripten
target and would definitely appreciate any help or documentation.
I was actually in the middle of writing some docs about this very issue 😂
From what I can tell, compiling to wasm32-unknown-emscripten
is very tricky. I haven't been able to make it work either. I'd have to recommend alternative libraries that do support plain old wasm32-unknown-unknown
like tract
or wonnx
for the time being.
Seeing how requested WASM support is, I'll keep working on solutions. It may be possible to shim the needed Emscripten APIs but that's a lot of work and I can't guarantee it'll be successful.
I was able to reduce the imports & shim them but ran into https://github.com/rustwasm/wasm-bindgen/issues/3315, which looks like a dead end. 😕
Please give it a try:
[dependencies]
ort = { git = "https://github.com/pykeio/ort.git", branch = "wasm32-unknown-unknown" }
A few notes:
ort::wasm::initialize()
at the very top of your program, before you use any ort
APIs.SessionBuilder::commit_from_memory_directly
..ort
format models - see here for how to convert. TL;DR python -m onnxruntime.tools.convert_onnx_models_to_ort ./my_model.onnx
SessionBuilder::with_optimization_level
.Thank you SO much! I'll give it a go and let you know :)
After compiling with wasm-bindgen
successfully, I encounter an error that says: Uncaught TypeError: Failed to resolve module specifier "env". Relative references must start with either "/", "./", or "../".
Upon inspecting with wasm2wat
, I see that it originates from the OrtGetApiBase call in src/lib.rs
.
To reproduce, code is available here. Please refer to .vscode/launch.json
to see the build/start commands.
References
This indicates the ONNX Runtime library wasn't being linked against, which I was unable to reproduce. (PRs with my local changes: https://github.com/k2m5t2/hand-gesture-recognition-using-onnx/pull/1, https://github.com/k2m5t2/handpose-rs/pull/1)
Did you have any alternative linking configuration set for ort
? It must use the prebuilt binary for now as it required a lot of hacks.
I got things compiling here, though I ran into an index out of bounds
error when running the client on Firefox; not sure if that's related to ort though.
Thank you for the PRs :) (Turns out I had made similar changes, forgot to commit, accepted the PRs, and now had duplicated changes 🥲 so I spent some time solving conflicts manually haha!)
In short, I'm not sure. I've never installed ONNX Runtime from source in the machine—and hence assuming that I'm using your prebuilt binaries. I looked through the docs on linking, but because this (building, linking, etc) is such an unfamiliar territory for me, I don't have detailed information for you at the moment. I can certainly do more experiments and come back with updates though.
It would be advantageous to use static linking (i.e., keep everything as default) ... right? I noticed that your example actually specifies load-dynamic
feature and was wondering if that could be the issue.
The index out of bounds
error is most definitely my code and not ort
. I really appreciate your help!
Static linking is the only supported route for WASM (are you looking at the right example?) If you enabled load-dynamic
, then that could've been causing the env
import error. Otherwise I'm not entirely sure why it's not linking properly...
I am looking at this example, and I haven't used load-dynamic
until now.
I see — I will try again in a different machine!
Was able to reproduce the same error (Uncaught TypeError: Failed to resolve module specifier "env". Relative references must start with either "/", "./", or "../".
) on a freshly installed Ubuntu (PopOS) machine. It makes me think that the issue is definitely lying somewhere in my codebase (or the default config in ort
)
Checked that the same error occurs with a small app using the example package provided in ort/examples/webassembly
. ort_sys::OrtGetApiBase();
seems to be the problematic call that invokes env
. Perhaps we're using different builds of ort_sys
?
More Info:
ort = { git = "https://github.com/pykeio/ort.git", branch = "wasm32-unknown-unknown"
exclusivelyQuestions
crate-type = ["cdylib"]
flag. Could this have something to do with it?Couldn't repro on Ubuntu 22.04, I think there's a problem with your environment somehow. Could you try:
~/.cache/ort.pyke.io/dfbin/wasm32-unknown-unknown/41A5713B37EEE40A0D7608B9E77AEB3E1A5DCE6845496A5F5E65F89A13E45089/onnxruntime/lib/libonnxruntime.a
is AB428489802C158CC5E16905EB5455BDC1A275CB97924142834284B832E8699D
rm -r ~/.cache/ort.pyke.io
and forcing ort-sys
to redownload by cleaning it: cargo clean -p ort-sys
-vvv
& uploading logs@k2m5t2 Got a repro, the issue is rustc stable. It compiles fine with nightly, still trying to figure out what commit fixed it.
Thanks for looking into it! Switching to rustc nightly fixed it! Thank you!
Fyi (in response to the previous comment):
ort.pyke.io
or other cargo-related cache in the directory — I'll upload it once I find it.yunhocho@MacBong-Pro process-canvas % cargo build -vvv
Fresh autocfg v1.2.0
Fresh version_check v0.9.4
Fresh unicode-ident v1.0.12
Fresh cfg-if v1.0.0
Fresh cc v1.0.94
Fresh simd-adler32 v0.3.7
Fresh bytemuck v1.15.0
Fresh proc-macro2 v1.0.79
Fresh num-traits v0.2.18
Fresh tinyvec_macros v0.1.1
Fresh quote v1.0.35
Fresh crossbeam-utils v0.8.19
Fresh getrandom v0.2.14
Fresh generic-array v0.14.7
Fresh tinyvec v1.6.0
Fresh num-integer v0.1.46
Fresh syn v2.0.58
Fresh crossbeam-epoch v0.9.18
Fresh rustls-pki-types v1.4.1
Fresh untrusted v0.9.0
Fresh crossbeam-deque v0.8.5
Fresh ring v0.17.8
Fresh wasm-bindgen-shared v0.2.92
Fresh unicode-normalization v0.1.23
Fresh errno v0.3.8
Fresh unicode-bidi v0.3.15
Fresh rayon-core v1.12.1
Fresh once_cell v1.19.0
Fresh scopeguard v1.2.0
Fresh either v1.11.0
Fresh bitflags v2.5.0
Fresh percent-encoding v2.3.1
Fresh rustls-webpki v0.102.2
Fresh wasm-bindgen-backend v0.2.92
Fresh form_urlencoded v1.2.1
Fresh lock_api v0.4.11
Fresh rustix v0.38.32
Fresh libc v0.2.153
Fresh idna v0.5.0
Fresh block-buffer v0.10.4
Fresh crypto-common v0.1.6
Fresh num-complex v0.4.5
Fresh adler v1.0.2
Fresh subtle v2.5.0
Fresh zeroize v1.7.0
Fresh url v2.5.0
Fresh wasm-bindgen-macro-support v0.2.92
Fresh crc32fast v1.4.0
Fresh miniz_oxide v0.7.2
Fresh rustls v0.22.3
Fresh digest v0.10.7
Fresh spin v0.9.8
Fresh xattr v1.3.1
Fresh getrandom v0.1.16
Fresh rayon v1.10.0
Fresh webpki-roots v0.26.1
Fresh cpufeatures v0.2.12
Fresh filetime v0.2.23
Fresh fdeflate v0.3.4
Fresh half v2.4.1
Fresh base64 v0.21.7
Fresh rawpointer v0.2.1
Fresh bitflags v1.3.2
Fresh weezl v0.1.8
Fresh ttf-parser v0.15.2
Fresh ureq v2.9.6
Fresh sha2 v0.10.8
Fresh png v0.17.13
Fresh matrixmultiply v0.3.8
Fresh tar v0.4.40
Fresh jpeg-decoder v0.3.1
Fresh flate2 v1.0.28
Fresh rand_core v0.5.1
Fresh flume v0.11.0
Fresh num-bigint v0.4.4
Fresh wasm-bindgen-macro v0.2.92
Fresh safe_arch v0.7.1
Fresh zune-inflate v0.2.54
Fresh lebe v0.5.2
Fresh bit_field v0.10.2
Fresh color_quant v1.1.0
Fresh smallvec v1.13.2
Fresh zerocopy v0.7.32
Fresh paste v1.0.14
Compiling ort-sys v2.0.0-rc.1 (https://github.com/pykeio/ort.git?branch=wasm32-unknown-unknown#79aca6f5)
Fresh wasm-bindgen v0.2.92
Fresh tiff v0.9.1
Running `CARGO=/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/ort-sys CARGO_PKG_AUTHORS='pyke.io <contact@pyke.io>' CARGO_PKG_DESCRIPTION='Unsafe Rust bindings for ONNX Runtime 1.17 - Optimize and Accelerate Machine Learning Inferencing' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=ort-sys CARGO_PKG_README='' CARGO_PKG_REPOSITORY='https://github.com/pykeio/ort' CARGO_PKG_RUST_VERSION=1.70 CARGO_PKG_VERSION=2.0.0-rc.1 CARGO_PKG_VERSION_MAJOR=2 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE=rc.1 DYLD_FALLBACK_LIBRARY_PATH='/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps:/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/yunhocho/lib:/usr/local/lib:/usr/lib' /Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name build_script_build --edition=2021 /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/ort-sys/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=167 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked --cfg 'feature="copy-dylibs"' --cfg 'feature="default"' --cfg 'feature="download-binaries"' --cfg 'feature="flate2"' --cfg 'feature="sha2"' --cfg 'feature="tar"' --cfg 'feature="ureq"' -C metadata=d996b110a3a84c35 -C extra-filename=-d996b110a3a84c35 --out-dir /Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/build/ort-sys-d996b110a3a84c35 -L dependency=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps --extern flate2=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps/libflate2-ed58129318dd3f6d.rlib --extern sha2=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps/libsha2-438cd3a3e039de04.rlib --extern tar=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps/libtar-d16b4cef4a764b79.rlib --extern ureq=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps/libureq-6872cb8bb9eea075.rlib --cap-lints warn -L native=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/build/ring-475162a1bac11f39/out`
Fresh exr v1.72.0
Fresh gif v0.13.1
Fresh ahash v0.8.11
Fresh num-rational v0.4.1
Fresh rand_hc v0.2.0
Fresh wide v0.7.15
Fresh approx v0.5.1
Fresh qoi v0.4.1
Fresh byteorder v1.5.0
Fresh simba v0.7.3
Fresh hashbrown v0.13.2
Fresh rand v0.7.3
Fresh image v0.24.9
Fresh typenum v1.17.0
Fresh js-sys v0.3.69
Fresh owned_ttf_parser v0.15.2
Fresh tracing-core v0.1.32
Fresh thiserror-impl v1.0.58
Fresh serde_derive v1.0.197
Fresh tracing-attributes v0.1.27
Fresh num-iter v0.1.44
Fresh pin-project-lite v0.2.14
Fresh arrayref v0.3.7
Fresh strict-num v0.1.1
Fresh custom_derive v0.1.7
Fresh ab_glyph_rasterizer v0.1.8
Fresh tiny-skia-path v0.11.4
Fresh conv v0.3.3
Fresh tracing v0.1.40
Fresh num v0.4.2
Fresh rusttype v0.9.3
Fresh serde v1.0.197
Fresh miniquad v0.4.0
Fresh thiserror v1.0.58
Fresh web-sys v0.3.69
Fresh nalgebra v0.30.1
Fresh slotmap v1.0.7
Fresh fontdue v0.7.3
Fresh rand_distr v0.2.2
Fresh ndarray v0.15.6
Fresh itertools v0.10.5
Fresh ryu v1.0.17
Fresh arrayvec v0.7.4
Fresh itoa v1.0.11
Fresh quad-rand v0.2.1
Fresh log v0.4.21
Fresh bumpalo v3.15.4
Fresh glam v0.21.3
Fresh macroquad_macro v0.1.7
Fresh imageproc v0.23.0
Fresh serde_json v1.0.115
Fresh tiny-skia v0.11.4
Fresh macroquad v0.4.5
warning: function `is_absolute_path` is never used
--> /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/ort-sys/src/internal/dirs.rs:135:9
|
135 | pub fn is_absolute_path(path: OsString) -> Option<PathBuf> {
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: `ort-sys` (build script) generated 1 warning
Running `CARGO=/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CFG_PANIC=unwind CARGO_CFG_TARGET_ARCH=wasm32 CARGO_CFG_TARGET_ENDIAN=little CARGO_CFG_TARGET_ENV='' CARGO_CFG_TARGET_FAMILY=unix,wasm CARGO_CFG_TARGET_HAS_ATOMIC=16,32,64,8,ptr CARGO_CFG_TARGET_OS=emscripten CARGO_CFG_TARGET_POINTER_WIDTH=32 CARGO_CFG_TARGET_VENDOR=unknown CARGO_CFG_UNIX='' CARGO_ENCODED_RUSTFLAGS='' CARGO_FEATURE_COPY_DYLIBS=1 CARGO_FEATURE_DEFAULT=1 CARGO_FEATURE_DOWNLOAD_BINARIES=1 CARGO_FEATURE_FLATE2=1 CARGO_FEATURE_SHA2=1 CARGO_FEATURE_TAR=1 CARGO_FEATURE_UREQ=1 CARGO_MANIFEST_DIR=/Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/ort-sys CARGO_PKG_AUTHORS='pyke.io <contact@pyke.io>' CARGO_PKG_DESCRIPTION='Unsafe Rust bindings for ONNX Runtime 1.17 - Optimize and Accelerate Machine Learning Inferencing' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=ort-sys CARGO_PKG_README='' CARGO_PKG_REPOSITORY='https://github.com/pykeio/ort' CARGO_PKG_RUST_VERSION=1.70 CARGO_PKG_VERSION=2.0.0-rc.1 CARGO_PKG_VERSION_MAJOR=2 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE=rc.1 DEBUG=true DYLD_FALLBACK_LIBRARY_PATH='/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps:/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug:/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib:/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/yunhocho/lib:/usr/local/lib:/usr/lib:/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/build/ring-475162a1bac11f39/out' HOST=aarch64-apple-darwin NUM_JOBS=10 OPT_LEVEL=0 OUT_DIR=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/build/ort-sys-0fe95070c691701e/out PROFILE=debug RUSTC=/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc RUSTDOC=/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustdoc TARGET=wasm32-unknown-emscripten /Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/build/ort-sys-d996b110a3a84c35/build-script-build`
[ort-sys 2.0.0-rc.1] cargo:rerun-if-env-changed=ORT_LIB_LOCATION
[ort-sys 2.0.0-rc.1] cargo:rerun-if-env-changed=ORT_LIB_PROFILE
[ort-sys 2.0.0-rc.1] cargo:rustc-link-lib=onnxruntime
[ort-sys 2.0.0-rc.1] cargo:rustc-link-search=native=/Users/yunhocho/Library/Caches/ort.pyke.io/dfbin/wasm32-unknown-emscripten/58EAD204FE53A488489287FFD97113E89A2CCA91876D3186CDBCA10A4F5A3287/onnxruntime/lib
Running `CARGO=/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=ort_sys CARGO_MANIFEST_DIR=/Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/ort-sys CARGO_PKG_AUTHORS='pyke.io <contact@pyke.io>' CARGO_PKG_DESCRIPTION='Unsafe Rust bindings for ONNX Runtime 1.17 - Optimize and Accelerate Machine Learning Inferencing' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=ort-sys CARGO_PKG_README='' CARGO_PKG_REPOSITORY='https://github.com/pykeio/ort' CARGO_PKG_RUST_VERSION=1.70 CARGO_PKG_VERSION=2.0.0-rc.1 CARGO_PKG_VERSION_MAJOR=2 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE=rc.1 DYLD_FALLBACK_LIBRARY_PATH='/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps:/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/yunhocho/lib:/usr/local/lib:/usr/lib' OUT_DIR=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/build/ort-sys-0fe95070c691701e/out /Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name ort_sys --edition=2021 /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/ort-sys/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=167 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="copy-dylibs"' --cfg 'feature="default"' --cfg 'feature="download-binaries"' --cfg 'feature="flate2"' --cfg 'feature="sha2"' --cfg 'feature="tar"' --cfg 'feature="ureq"' -C metadata=1e7094c27ef7520d -C extra-filename=-1e7094c27ef7520d --out-dir /Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps --target wasm32-unknown-emscripten -L dependency=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps -L dependency=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps --cap-lints warn -L native=/Users/yunhocho/Library/Caches/ort.pyke.io/dfbin/wasm32-unknown-emscripten/58EAD204FE53A488489287FFD97113E89A2CCA91876D3186CDBCA10A4F5A3287/onnxruntime/lib -l onnxruntime`
warning: unused imports: `CStr`, `mem`, `os::unix::prelude::OsStringExt`, `ptr`
--> /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/ort-sys/src/internal/dirs.rs:105:32
|
105 | ffi::{c_char, c_int, c_long, CStr, OsString},
| ^^^^
106 | mem,
| ^^^
107 | os::unix::prelude::OsStringExt,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108 | path::PathBuf,
109 | ptr
| ^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: type alias `uid_t` is never used
--> /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/ort-sys/src/internal/dirs.rs:112:7
|
112 | type uid_t = u32;
| ^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: type alias `gid_t` is never used
--> /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/ort-sys/src/internal/dirs.rs:113:7
|
113 | type gid_t = u32;
| ^^^^^
warning: type alias `size_t` is never used
--> /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/ort-sys/src/internal/dirs.rs:114:7
|
114 | type size_t = usize;
| ^^^^^^
warning: struct `passwd` is never constructed
--> /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/ort-sys/src/internal/dirs.rs:116:9
|
116 | struct passwd {
| ^^^^^^
warning: constant `SC_GETPW_R_SIZE_MAX` is never used
--> /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/ort-sys/src/internal/dirs.rs:132:8
|
132 | const SC_GETPW_R_SIZE_MAX: c_int = 70;
| ^^^^^^^^^^^^^^^^^^^
warning: function `is_absolute_path` is never used
--> /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/ort-sys/src/internal/dirs.rs:135:9
|
135 | pub fn is_absolute_path(path: OsString) -> Option<PathBuf> {
| ^^^^^^^^^^^^^^^^
warning: function `home_dir` is never used
--> /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/ort-sys/src/internal/dirs.rs:142:9
|
142 | pub fn home_dir() -> Option<PathBuf> {
| ^^^^^^^^
warning: function `sysconf` is never used
--> /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/ort-sys/src/internal/dirs.rs:127:6
|
127 | fn sysconf(name: c_int) -> c_long;
| ^^^^^^^
warning: function `getpwuid_r` is never used
--> /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/ort-sys/src/internal/dirs.rs:128:6
|
128 | fn getpwuid_r(uid: uid_t, pwd: *mut passwd, buf: *mut c_char, buflen: size_t, result: *mut *mut passwd) -> c_int;
| ^^^^^^^^^^
warning: function `getuid` is never used
--> /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/ort-sys/src/internal/dirs.rs:129:6
|
129 | fn getuid() -> uid_t;
| ^^^^^^
Dirty ort v2.0.0-rc.1 (https://github.com/pykeio/ort.git?branch=wasm32-unknown-unknown#79aca6f5): the dependency ort_sys was rebuilt
Compiling ort v2.0.0-rc.1 (https://github.com/pykeio/ort.git?branch=wasm32-unknown-unknown#79aca6f5)
Running `CARGO=/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=ort CARGO_MANIFEST_DIR=/Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f CARGO_PKG_AUTHORS='pyke.io <contact@pyke.io>:Nicolas Bigaouette <nbigaouette@gmail.com>' CARGO_PKG_DESCRIPTION='A safe Rust wrapper for ONNX Runtime 1.17 - Optimize and Accelerate Machine Learning Inferencing' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=ort CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/pykeio/ort' CARGO_PKG_RUST_VERSION=1.70 CARGO_PKG_VERSION=2.0.0-rc.1 CARGO_PKG_VERSION_MAJOR=2 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE=rc.1 DYLD_FALLBACK_LIBRARY_PATH='/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps:/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/yunhocho/lib:/usr/local/lib:/usr/lib' /Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name ort --edition=2021 /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=167 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="copy-dylibs"' --cfg 'feature="default"' --cfg 'feature="download-binaries"' --cfg 'feature="half"' --cfg 'feature="ndarray"' -C metadata=2051547fd689969c -C extra-filename=-2051547fd689969c --out-dir /Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps --target wasm32-unknown-emscripten -L dependency=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps -L dependency=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps --extern half=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libhalf-3aff04c47dcc082a.rmeta --extern js_sys=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libjs_sys-0e62d09b83121786.rmeta --extern ndarray=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libndarray-2aa64b3384b6bc05.rmeta --extern ort_sys=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libort_sys-1e7094c27ef7520d.rmeta --extern thiserror=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libthiserror-f351fa0a31003a37.rmeta --extern tracing=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libtracing-d75a00fafaace693.rmeta --extern web_sys=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libweb_sys-47748822a3df7063.rmeta --cap-lints warn -L native=/Users/yunhocho/Library/Caches/ort.pyke.io/dfbin/wasm32-unknown-emscripten/58EAD204FE53A488489287FFD97113E89A2CCA91876D3186CDBCA10A4F5A3287/onnxruntime/lib`
warning: `ort-sys` (lib) generated 11 warnings
warning: unused import: `ffi::c_void`
--> /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/src/wasm.rs:4:2
|
4 | ffi::c_void,
| ^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `super::*`
--> /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/src/wasm.rs:9:6
|
9 | use super::*;
| ^^^^^^^^
warning: unused import: `self`
--> /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/src/lib.rs:33:8
|
33 | ffi::{self, CStr},
| ^^^^
warning: unused import: `std::os::unix::ffi::OsStrExt`
--> /Users/yunhocho/.cargo/git/checkouts/ort-675c4f2a84c4db27/79aca6f/src/session/builder.rs:2:5
|
2 | use std::os::unix::ffi::OsStrExt;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Dirty handpose_rs v0.1.0 (/Users/yunhocho/Documents/GitHub/handpose-rs): the dependency ort was rebuilt
Compiling handpose_rs v0.1.0 (/Users/yunhocho/Documents/GitHub/handpose-rs)
Running `CARGO=/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=handpose_rs CARGO_MANIFEST_DIR=/Users/yunhocho/Documents/GitHub/handpose-rs CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=handpose_rs CARGO_PKG_README='' CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' DYLD_FALLBACK_LIBRARY_PATH='/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps:/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/yunhocho/lib:/usr/local/lib:/usr/lib' /Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name handpose_rs --edition=2021 /Users/yunhocho/Documents/GitHub/handpose-rs/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=167 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=0599002393c1d911 -C extra-filename=-0599002393c1d911 --out-dir /Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps --target wasm32-unknown-emscripten -C incremental=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/incremental -L dependency=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps -L dependency=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps --extern image=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libimage-d001dc6aa9fe7120.rmeta --extern imageproc=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libimageproc-3ef040c91ea152b7.rmeta --extern macroquad=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libmacroquad-35592df98c168712.rmeta --extern ndarray=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libndarray-2aa64b3384b6bc05.rmeta --extern ort=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libort-2051547fd689969c.rmeta --extern serde=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libserde-5e448ac863567f5e.rmeta --extern serde_json=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libserde_json-c6d5df1a523aa692.rmeta --extern tiny_skia=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libtiny_skia-36a2a67c5b3e3b98.rmeta --extern wasm_bindgen=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libwasm_bindgen-659aa19b89164d05.rmeta -L native=/Users/yunhocho/Library/Caches/ort.pyke.io/dfbin/wasm32-unknown-emscripten/58EAD204FE53A488489287FFD97113E89A2CCA91876D3186CDBCA10A4F5A3287/onnxruntime/lib`
warning: `ort` (lib) generated 4 warnings
Compiling process-canvas v0.1.0 (/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas)
Running `CARGO=/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=process_canvas CARGO_MANIFEST_DIR=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas CARGO_PKG_AUTHORS='Jens Östlund <jostlund@gmail.com>' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=process-canvas CARGO_PKG_README='' CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 DYLD_FALLBACK_LIBRARY_PATH='/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps:/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/yunhocho/lib:/usr/local/lib:/usr/lib' /Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name process_canvas --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=167 --crate-type cdylib --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=7fb8cf9584ef66f5 --out-dir /Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps --target wasm32-unknown-emscripten -C incremental=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/incremental -L dependency=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps -L dependency=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps --extern handpose_rs=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libhandpose_rs-0599002393c1d911.rlib --extern image=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libimage-d001dc6aa9fe7120.rlib --extern js_sys=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libjs_sys-0e62d09b83121786.rlib --extern once_cell=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libonce_cell-041ec0782168b438.rlib --extern serde=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libserde-5e448ac863567f5e.rlib --extern tiny_skia=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libtiny_skia-36a2a67c5b3e3b98.rlib --extern wasm_bindgen=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libwasm_bindgen-659aa19b89164d05.rlib --extern web_sys=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libweb_sys-47748822a3df7063.rlib -L native=/Users/yunhocho/Library/Caches/ort.pyke.io/dfbin/wasm32-unknown-emscripten/58EAD204FE53A488489287FFD97113E89A2CCA91876D3186CDBCA10A4F5A3287/onnxruntime/lib`
warning: unused import: `std::rc::Rc`
--> src/lib.rs:10:5
|
10 | use std::rc::Rc;
| ^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `std::cell::RefCell`
--> src/lib.rs:11:5
|
11 | use std::cell::RefCell;
| ^^^^^^^^^^^^^^^^^^
warning: unused import: `HandResult`
--> src/lib.rs:13:40
|
13 | use handpose_rs::{Handpose, visualize, HandResult};
| ^^^^^^^^^^
warning: unused import: `RgbaImage`
--> src/lib.rs:14:27
|
14 | use image::{DynamicImage, RgbaImage, ImageBuffer};
| ^^^^^^^^^
warning: unused imports: `Deserialize`, `Serialize`
--> src/lib.rs:15:13
|
15 | use serde::{Serialize, Deserialize};
| ^^^^^^^^^ ^^^^^^^^^^^
warning: unused imports: `Function`, `JsString`, `Uint8ClampedArray`
--> src/lib.rs:16:14
|
16 | use js_sys::{Function, JsString, Uint8ClampedArray};
| ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^
warning: unused variable: `transform_fn`
--> src/lib.rs:79:9
|
79 | let transform_fn = match transform {
| ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform_fn`
|
= note: `#[warn(unused_variables)]` on by default
warning: unused variable: `square_size`
--> src/lib.rs:74:5
|
74 | square_size: u32,
| ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_square_size`
warning: function `image_data_to_vec` is never used
--> src/lib.rs:179:4
|
179 | fn image_data_to_vec(image_data: &ImageData) -> Vec<u8> {
| ^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
error: linking with `emcc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin/self-contained:/Users/yunhocho/.modular/pkg/packages.modular.com_mojo/bin:/Users/yunhocho/.gem/ruby/3.1.3/bin:/Users/yunhocho/.rubies/ruby-3.1.3/lib/ruby/gems/3.1.0/bin:/Users/yunhocho/.rubies/ruby-3.1.3/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/yunhocho/.modular/pkg/packages.modular.com_mojo/bin:/Users/yunhocho/Library/pnpm:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/yunhocho/.cargo/bin:/Users/yunhocho/Library/Android/sdk/tools:/Users/yunhocho/Library/Android/sdk/platform-tools:/Users/yunhocho/.cache/trunk/launcher:/Users/yunhocho/Library/Android/sdk/tools:/Users/yunhocho/Library/Android/sdk/platform-tools" VSLANG="1033" "emcc" "-s" "EXPORTED_FUNCTIONS=[\"___externref_drop_slice\",\"___externref_heap_live_count\",\"___externref_table_alloc\",\"___externref_table_dealloc\",\"___wbindgen_exn_store\",\"___wbindgen_free\",\"___wbindgen_malloc\",\"___wbindgen_realloc\",\"___libc_calloc\",\"___libc_free\",\"___libc_malloc\",\"___wasi_environ_get\",\"___wasi_environ_sizes_get\",\"___wasi_fd_close\",\"___wasi_fd_read\",\"___wasi_fd_seek\",\"___wasi_fd_write\",\"__emscripten_get_now_is_monotonic\",\"__gmtime_js\",\"__initialize\",\"__localtime_js\",\"__mktime_js\",\"__tzset_js\",\"_abort\",\"_emscripten_builtin_malloc\",\"_emscripten_date_now\",\"_emscripten_errn\",\"_emscripten_get_heap_max\",\"_emscripten_get_now\",\"_emscripten_memcpy_js\",\"_free\",\"_malloc\",\"_posix_memalign\",\"_realloc\",\"_strftime_l\"]" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/process_canvas.20acxwuib0lk5p90.rcgu.o" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/process_canvas.2hezp5mqikf2svg7.rcgu.o" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/process_canvas.2sjds435wmth3hit.rcgu.o" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/process_canvas.33v27ypuxi0kh7i.rcgu.o" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/process_canvas.3gzmnmysx56yl937.rcgu.o" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/process_canvas.3w7yt6859cy6mum0.rcgu.o" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/process_canvas.4nyqb5nx1zyr835f.rcgu.o" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/process_canvas.4tbvl15iw7e83cav.rcgu.o" "-L" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps" "-L" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps" "-L" "/Users/yunhocho/Library/Caches/ort.pyke.io/dfbin/wasm32-unknown-emscripten/58EAD204FE53A488489287FFD97113E89A2CCA91876D3186CDBCA10A4F5A3287/onnxruntime/lib" "-L" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libhandpose_rs-0599002393c1d911.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libserde_json-c6d5df1a523aa692.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libitoa-12b100828f51c423.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libryu-9fc6737c034478f7.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libserde-5e448ac863567f5e.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libtiny_skia-36a2a67c5b3e3b98.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/liblog-f817bfe4c92c7d0c.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libarrayvec-03c4519dc9eb9f69.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libtiny_skia_path-9c153d1ba4ef7ba3.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libstrict_num-91b3528cf0795793.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libarrayref-f71e27d5647ae4d9.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libimageproc-3ef040c91ea152b7.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/librand_distr-b438ef301690d74c.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/librand-57448dac3848d94e.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/librand_hc-10582d0825f58b11.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/librand_core-1c15786be67d60c5.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libgetrandom-3f969ea65815208a.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/liblibc-8bfcbf721104289b.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libnalgebra-f5afb0815c5a4902.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libtypenum-94816a143645413a.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libsimba-b87fa463cc8e2c37.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libwide-71352149783f7cb3.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libsafe_arch-a48051ffc8b49a6e.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libapprox-aacfe9f05f0ad93e.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/librusttype-ebbe9d2b96201ba1.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libab_glyph_rasterizer-6c602492d25373e6.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libowned_ttf_parser-ce687ac6e8b0c7ac.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libttf_parser-0e8465ac75bdaeed.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libconv-67261326f37cc231.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libcustom_derive-1e43ada239a8474b.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libnum-9077eefe9bc5c99f.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libnum_iter-218b56aa18a88e8c.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libnum_rational-5fd3c5d52cddeb0e.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libnum_bigint-38b1607ea9ba1fe4.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libitertools-3a594531af9ce73c.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libimage-d001dc6aa9fe7120.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libqoi-1c4112abd3ca7d8f.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libbytemuck-30b7d806c3314eff.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libpng-0f060906a56b547f.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libfdeflate-7c407ba4352731b3.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libbitflags-a377ef8893c7ef24.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libexr-6081aecb7c20a7e9.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libflume-8ad7d84bbf3bd2d5.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libzune_inflate-608f5bd38f6aabb5.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libbit_field-f06ef9cc928c7ba4.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/liblebe-e21788c33c9094db.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libsmallvec-61aa130ff9fe397d.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libgif-d57e76ff517645f5.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libcolor_quant-569721d680d75d1e.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libbyteorder-9a0e92bf48cae95d.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libtiff-88005129686e15bc.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libflate2-32607943301df833.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libminiz_oxide-b3ffe71ab6253883.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libsimd_adler32-802beed44ad8dc52.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libcrc32fast-243b1b9c7b47ca2a.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libweezl-2c3be4d1c03d2e3e.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libjpeg_decoder-aa7a253c0672f599.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/librayon-9e3ef566a909d503.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/librayon_core-0bee4195add2a270.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libcrossbeam_deque-f83e352263b054c8.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libcrossbeam_epoch-cb9a49430c8b07fb.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libcrossbeam_utils-017ec995894d1f9f.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libeither-f24bc4a58d4fa339.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libort-2051547fd689969c.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libhalf-3aff04c47dcc082a.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libthiserror-f351fa0a31003a37.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libtracing-d75a00fafaace693.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libpin_project_lite-ab1afeb9f791d1fd.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libtracing_core-3e1f71ad78e84309.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libonce_cell-041ec0782168b438.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libort_sys-1e7094c27ef7520d.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libndarray-2aa64b3384b6bc05.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libmatrixmultiply-509cff406df18ec6.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libnum_complex-5cb6292efefca02f.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libnum_integer-eaf37bd6dec5fd4e.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libnum_traits-804812bc3c0ecd6a.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/librawpointer-ff2f8259edf73d1b.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libweb_sys-47748822a3df7063.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libjs_sys-0e62d09b83121786.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libwasm_bindgen-659aa19b89164d05.rlib" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libcfg_if-ab99c7b0a11f31e9.rlib" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib/libstd-a55fa94424bcd5b7.rlib" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib/libpanic_unwind-3ad5b75c252c058f.rlib" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib/librustc_demangle-b8b4f0756eadb05e.rlib" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib/libstd_detect-4149af98252b2cf9.rlib" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib/libhashbrown-3ce18c7966aeaee1.rlib" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib/librustc_std_workspace_alloc-e4ee40ae2af17971.rlib" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib/libminiz_oxide-4530336f7f0b7bb3.rlib" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib/libadler-7a5865561f82c182.rlib" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib/libunwind-a258a2fbe61cb877.rlib" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib/libcfg_if-a4689c0b4bc70a57.rlib" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib/liblibc-21e7ecfa7ccee18e.rlib" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib/liballoc-160b9745905d26a1.rlib" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib/librustc_std_workspace_core-37fb292f574d866a.rlib" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib/libcore-dee2bb4e5df39818.rlib" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib/libcompiler_builtins-69be90562a557520.rlib" "-l" "c" "-l" "onnxruntime" "-l" "c" "-B/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin/gcc-ld" "-fuse-ld=lld" "--target=wasm32-unknown-emscripten" "-s" "DISABLE_EXCEPTION_CATCHING=0" "-L" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib" "-L" "/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/wasm32-unknown-emscripten/lib/self-contained" "-o" "/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/process_canvas.wasm" "-O0" "-g" "-sABORTING_MALLOC=0" "-Wl,--fatal-warnings"
= note: cache:INFO: generating system asset: symbol_lists/f04f035815335e250c72ff9b51db718eec93dd6d.json... (this will be cached in "/opt/homebrew/Cellar/emscripten/3.1.48/libexec/cache/symbol_lists/f04f035815335e250c72ff9b51db718eec93dd6d.json" for subsequent builds)
cache:INFO: - ok
wasm-ld: error: duplicate symbol: abort
>>> defined in /Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libort-2051547fd689969c.rlib(ort-2051547fd689969c.ort.75947f606687ab2e-cgu.08.rcgu.o)
>>> defined in /opt/homebrew/Cellar/emscripten/3.1.48/libexec/cache/sysroot/lib/wasm32-emscripten/libstandalonewasm.a(standalone.o)
wasm-ld: error: duplicate symbol: emscripten_get_heap_max
>>> defined in /Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libort-2051547fd689969c.rlib(ort-2051547fd689969c.ort.75947f606687ab2e-cgu.13.rcgu.o)
>>> defined in /opt/homebrew/Cellar/emscripten/3.1.48/libexec/cache/sysroot/lib/wasm32-emscripten/libstandalonewasm.a(standalone.o)
wasm-ld: error: duplicate symbol: emscripten_builtin_malloc
>>> defined in /Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libort-2051547fd689969c.rlib(ort-2051547fd689969c.ort.75947f606687ab2e-cgu.13.rcgu.o)
>>> defined in /opt/homebrew/Cellar/emscripten/3.1.48/libexec/cache/sysroot/lib/wasm32-emscripten/libdlmalloc.a(dlmalloc.o)
emcc: error: '/opt/homebrew/Cellar/emscripten/3.1.48/libexec/llvm/bin/wasm-ld @/var/folders/pd/9mrlsj5x3q1c81q4jsd0gq7c0000gn/T/emscripten_y_9c1eii.rsp.utf-8' failed (returned 1)
warning: `process-canvas` (lib) generated 9 warnings
error: could not compile `process-canvas` (lib) due to 1 previous error; 9 warnings emitted
Caused by:
process didn't exit successfully: `CARGO=/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=process_canvas CARGO_MANIFEST_DIR=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas CARGO_PKG_AUTHORS='Jens Östlund <jostlund@gmail.com>' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=process-canvas CARGO_PKG_README='' CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 DYLD_FALLBACK_LIBRARY_PATH='/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps:/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/yunhocho/lib:/usr/local/lib:/usr/lib' /Users/yunhocho/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name process_canvas --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=167 --crate-type cdylib --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=7fb8cf9584ef66f5 --out-dir /Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps --target wasm32-unknown-emscripten -C incremental=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/incremental -L dependency=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps -L dependency=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/debug/deps --extern handpose_rs=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libhandpose_rs-0599002393c1d911.rlib --extern image=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libimage-d001dc6aa9fe7120.rlib --extern js_sys=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libjs_sys-0e62d09b83121786.rlib --extern once_cell=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libonce_cell-041ec0782168b438.rlib --extern serde=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libserde-5e448ac863567f5e.rlib --extern tiny_skia=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libtiny_skia-36a2a67c5b3e3b98.rlib --extern wasm_bindgen=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libwasm_bindgen-659aa19b89164d05.rlib --extern web_sys=/Users/yunhocho/Documents/GitHub/open-vision-web-1/web-js/wasm/process-canvas/target/wasm32-unknown-emscripten/debug/deps/libweb_sys-47748822a3df7063.rlib -L native=/Users/yunhocho/Library/Caches/ort.pyke.io/dfbin/wasm32-unknown-emscripten/58EAD204FE53A488489287FFD97113E89A2CCA91876D3186CDBCA10A4F5A3287/onnxruntime/lib` (exit status: 1)
You should be compiling with --target wasm32-unknown-unknown
, not wasm32-unknown-emscripten
.
Hi @decahedron1
Build and load of wasm module in the browser is successful.
But when inferencing the model, I face following error:
panicked at libtashkeel-wasm\src\lib.rs:23:34:
called `Result::unwrap()` on an `Err` value: InferenceError("Failed to run model using onnxruntime via ort. Caused by Failed to create ONNX Runtime session: Deserialize tensor attn_layers.0.ccm.layernorm.bias failed.External initializers are not enabled in this build
I'm using an ort
model.
What
ONNXRuntime
supportswasm
targets via it'sonnxruntime for web
bindings.According to this page you can build a
static lib of onnxruntime for wasm targets
which you can then bundle with yourC++
WebAssembly. project.From what I understand, the
wasm
lib provides the sameC API
that regular onnxruntime provide.Why
Supporting
wasm
targets will make it easy to deploy models built withort
to web browsers andwasm
runtimes such as WasmTime and Wasmer.Since wasm-runtimes are cross-platform, users can bundle their models along with pre and post processing code in a single, universal, executable module that they can then run on browsers or on any wasm-runtime.