cargo build --target wasm32-unknown-unknown --release
error: linking with `rust-lld` failed: exit status: 1
|
= note: "rust-lld" "-flavor" "wasm" "--rsp-quoting=posix" "--export" "test" "--export=__heap_base" "--export=__data_end" "-z" "stack-size=1048576" "--stack-first" "--allow-undefined" "--fatal-warnings" "--no-demangle" "--no-entry" "--export-dynamic" "/home/ptrus/projects/oasis/wasm-bug/target/wasm32-unknown-unknown/release/deps/wasm_bug.wasm_bug.c076eb1a-cgu.0.rcgu.o" "/home/ptrus/projects/oasis/wasm-bug/target/wasm32-unknown-unknown/release/deps/wasm_bug.wasm_bug.c076eb1a-cgu.1.rcgu.o" "/home/ptrus/projects/oasis/wasm-bug/target/wasm32-unknown-unknown/release/deps/wasm_bug.wasm_bug.c076eb1a-cgu.2.rcgu.o" "/home/ptrus/projects/oasis/wasm-bug/target/wasm32-unknown-unknown/release/deps/wasm_bug.wasm_bug.c076eb1a-cgu.3.rcgu.o" "/home/ptrus/projects/oasis/wasm-bug/target/wasm32-unknown-unknown/release/deps/wasm_bug.wasm_bug.c076eb1a-cgu.4.rcgu.o" "/home/ptrus/projects/oasis/wasm-bug/target/wasm32-unknown-unknown/release/deps/wasm_bug.3poif640jhndvc3k.rcgu.o" "-L" "/home/ptrus/projects/oasis/wasm-bug/target/wasm32-unknown-unknown/release/deps" "-L" "/home/ptrus/projects/oasis/wasm-bug/target/release/deps" "-L" "/home/ptrus/.rustup/toolchains/nightly-2021-10-12-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib" "/home/ptrus/projects/oasis/wasm-bug/target/wasm32-unknown-unknown/release/deps/libcrate2-a392c7c5194467e9.rlib" "/home/ptrus/.rustup/toolchains/nightly-2021-10-12-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libstd-ecfc68b7dd3a7740.rlib" "/home/ptrus/.rustup/toolchains/nightly-2021-10-12-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libpanic_abort-59376147da18339e.rlib" "/home/ptrus/.rustup/toolchains/nightly-2021-10-12-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libdlmalloc-bcaeb89600b2d568.rlib" "/home/ptrus/.rustup/toolchains/nightly-2021-10-12-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libstd_detect-21d47b84229a0fd4.rlib" "/home/ptrus/.rustup/toolchains/nightly-2021-10-12-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/librustc_demangle-ed5d049f80c21cf0.rlib" "/home/ptrus/.rustup/toolchains/nightly-2021-10-12-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libhashbrown-29401705131a5d1e.rlib" "/home/ptrus/.rustup/toolchains/nightly-2021-10-12-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/librustc_std_workspace_alloc-2449ff2aab411d5b.rlib" "/home/ptrus/.rustup/toolchains/nightly-2021-10-12-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libunwind-e3ca4744d49c9d42.rlib" "/home/ptrus/.rustup/toolchains/nightly-2021-10-12-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcfg_if-8a6fc3c84b246983.rlib" "/home/ptrus/.rustup/toolchains/nightly-2021-10-12-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/liblibc-bc2c236653cc8f8e.rlib" "/home/ptrus/.rustup/toolchains/nightly-2021-10-12-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/liballoc-6bbf5d485df4d727.rlib" "/home/ptrus/.rustup/toolchains/nightly-2021-10-12-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/librustc_std_workspace_core-10bf4b0039d4de0f.rlib" "/home/ptrus/.rustup/toolchains/nightly-2021-10-12-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcore-3365b6c50e94718e.rlib" "/home/ptrus/.rustup/toolchains/nightly-2021-10-12-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-4c6e1466f9f1beb8.rlib" "-L" "/home/ptrus/.rustup/toolchains/nightly-2021-10-12-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib" "-L" "/home/ptrus/.rustup/toolchains/nightly-2021-10-12-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/self-contained" "-o" "/home/ptrus/projects/oasis/wasm-bug/target/wasm32-unknown-unknown/release/deps/wasm_bug.wasm" "--gc-sections" "--no-entry" "-O3"
= note: rust-lld: error: function signature mismatch: _ZN52_$LT$crate2..Error$u20$as$u20$crate2..ModuleName$GT$11module_name17hda95629f3af105b9E
>>> defined as (i32) -> i32 in /home/ptrus/projects/oasis/wasm-bug/target/wasm32-unknown-unknown/release/deps/wasm_bug.wasm_bug.c076eb1a-cgu.4.rcgu.o
>>> defined as (i32, i32) -> void in /home/ptrus/projects/oasis/wasm-bug/target/wasm32-unknown-unknown/release/deps/libcrate2-a392c7c5194467e9.rlib(crate2-a392c7c5194467e9.crate2.16c4bfcb-cgu.0.rcgu.o)
-
Notifications
You must be signed in to change notification settings - Fork 0
ptrus/wasm-bug
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published