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

error: duplicate lang item in crate std (which serde depends on): panic_impl. and error: duplicate lang item in crate std (which serde depends on): oom. #490

Open
KavinduShamalka opened this issue Jun 10, 2022 · 1 comment

Comments

@KavinduShamalka
Copy link

How do I fix this error?

error: duplicate lang item in crate std (which serde depends on): panic_impl.
|
= note: the lang item is first defined in crate sp_io (which ocw_demo depends on)
= note: first definition in sp_io loaded from /home/kshamalka/recipes/target/release/wbuild/ocw-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-0713151cf511a047.rmeta
= note: second definition in std loaded from /home/kshamalka/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libstd-4faf99cd6c5513da.rlib

error: duplicate lang item in crate std (which serde depends on): oom.
|
= note: the lang item is first defined in crate sp_io (which ocw_demo depends on)
= note: first definition in sp_io loaded from /home/kshamalka/recipes/target/release/wbuild/ocw-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-0713151cf511a047.rmeta
= note: second definition in std loaded from /home/kshamalka/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libstd-4faf99cd6c5513da.rlib

error: could not compile ocw-demo due to 2 previous errors
warning: build failed, waiting for other jobs to finish...

@KavinduShamalka KavinduShamalka changed the title How do I fix this error? error: duplicate lang item in crate std (which serde depends on): panic_impl. and error: duplicate lang item in crate std (which serde depends on): oom. Jun 10, 2022
@revoltez
Copy link

i commented that dependency, at least to get started with the recipes

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

2 participants