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[E0152]: duplicate lang item in crate std (which memchr depends on): panic_impl #1745

Open
lilhammer111 opened this issue Sep 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@lilhammer111
Copy link

Describe the bug
Fail to install contracts-node
error[E0152]: duplicate lang item in crate std (which memchr depends on): panic_impl.
|
= note: the lang item is first defined in crate sp_io (which frame_support depends on)
= note: first definition in sp_io loaded from /tmp/cargo-installSffutq/release/wbuild/contracts-parachain-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-c3af7d09a9975d0c.rmeta
= note: second definition in std loaded from /tmp/cargo-installSffutq/release/wbuild/contracts-parachain-runtime/target/wasm32-unknown-unknown/release/deps/libstd-da90a6a3b471618f.rmeta

For more information about this error, try rustc --explain E0152.
error: could not compile frame-support (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
warning: build failed, waiting for other jobs to finish...
error: failed to compile contracts-node v0.41.0, intermediate artifacts can be found at /tmp/cargo-installSffutq.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.

To Reproduce
Steps to reproduce the behavior:

  1. ubuntu desktop 22.04lts
  2. cargo install contracts-node
@lilhammer111 lilhammer111 added the bug Something isn't working label Sep 5, 2024
@cmichi
Copy link
Collaborator

cmichi commented Nov 6, 2024

@lilhammer111 I can't reproduce the issue, but maybe this already helps you: The easiest way to get things running is to download and run the substrate-contracts-node binary here: https://github.com/paritytech/substrate-contracts-node/releases/tag/v0.41.0.

If it doesn't help you feel free to reopen the issue in https://github.com/paritytech/substrate-contracts-node.

@cmichi cmichi closed this as completed Nov 6, 2024
@cmichi
Copy link
Collaborator

cmichi commented Nov 6, 2024

I can reproduce it now, have reopened.

@cmichi cmichi reopened this Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants