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

[BUG] cargo build -p iroha_client_cli fails field Error: Failed to check the smartcontract at path: #3447

Closed
timofeevmd opened this issue May 3, 2023 · 3 comments
Assignees
Labels
Bug Something isn't working Dev defect The defect was found at the development stage. Did not have an impact on users. iroha2-dev The re-implementation of a BFT hyperledger in RUST QA-confirmed This bug is reproduced and needs a fix

Comments

@timofeevmd
Copy link
Contributor

timofeevmd commented May 3, 2023

OS and Environment

Docker Hub, MacOS 13.3 Ventura

GIT commit hash

6daae99

Minimum working example / Steps to reproduce

docker pull --platform x86_64 hyperledger/iroha2:dev
docker-compose -f docker-compose.dev.yml up -d
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo build -p iroha_client_cli

Actual result

Compiling iroha_telemetry v2.0.0-pre-rc.13 (/Users/michaeltimofeev/Documents/soramitsu/iroha/telemetry)
Compiling iroha_client_cli v2.0.0-pre-rc.13 (/Users/michaeltimofeev/Documents/soramitsu/iroha/client_cli)
error: failed to run custom build command for iroha_client v2.0.0-pre-rc.13 (/Users/michaeltimofeev/Documents/soramitsu/iroha/client)

Caused by:
process didn't exit successfully: /Users/michaeltimofeev/Documents/soramitsu/iroha/target/debug/build/iroha_client-8e10dcd7037f731f/build-script-build (exit status: 1)
--- stdout
cargo:rerun-if-changed=tests/integration/smartcontracts

--- stderr
Error: Failed to check the smartcontract at path: /Users/michaeltimofeev/Documents/soramitsu/iroha/client/tests/integration/smartcontracts

Expected result

build successful

Who can help to reproduce?

@timofeevmd

@timofeevmd timofeevmd added Bug Something isn't working iroha2-dev The re-implementation of a BFT hyperledger in RUST Dev defect The defect was found at the development stage. Did not have an impact on users. QA-confirmed This bug is reproduced and needs a fix labels May 3, 2023
@timofeevmd timofeevmd assigned timofeevmd and mversic and unassigned timofeevmd May 4, 2023
@ffakenz
Copy link

ffakenz commented Sep 4, 2023

Error Report: cargo check error while building the Iroha2 client_cli Development Environment

Summary

Encountered a fatal cargo check error while running cargo to build the Iroha2 client_cli development environment on a x86_64-apple-darwin arch.

Steps to Reproduce

  1. Clone the Iroha repository from https://github.com/hyperledger/iroha
  2. Switch to the iroha2-dev or iroha2-stable branch
  3. Run the following command:
    bash cargo build -p iroha_client_cli

System Configuration

  • arch: x86_64-apple-darwin

Error Details

Error Message:

error: failed to run custom build command for iroha_client v2.0.0-pre-rc.19 (/Users/lambda/Documents/repos/iroha/client)

Caused by:
process didn't exit successfully: /Users/lambda/Documents/repos/iroha/target/debug/build/iroha_client-a45f1a5d224da1af/build-script-build (exit status: 1)
--- stdout
cargo:rerun-if-changed=tests/integration/smartcontracts

--- stderr
Error: Failed to check the smartcontract at path: /Users/lambda/Documents/repos/iroha/client/tests/integration/smartcontracts

Caused by:
cargo check returned non zero exit code (exit status: 101). Stderr:
error: "/Users/lambda/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/Cargo.lock" does not exist, unable to build with the standard library, try:
rustup component add rust-src --toolchain nightly-2023-06-25-x86_64-apple-darwin

Location:
wasm_builder/src/lib.rs:414:9

Notes:

  • the error remains even after running the following commands:
    rustup toolchain install nightly-2023-06-25

rustup component add rust-src --toolchain nightly-2023-06-25-x86_64-apple-darwin

@mversic
Copy link
Contributor

mversic commented Sep 5, 2023

the issue can be mitigated if you build the whole project from the root

@mversic mversic removed their assignment Sep 13, 2023
@mversic mversic self-assigned this Sep 22, 2023
@mversic
Copy link
Contributor

mversic commented Sep 22, 2023

duplicate of #3311

@mversic mversic closed this as completed Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Dev defect The defect was found at the development stage. Did not have an impact on users. iroha2-dev The re-implementation of a BFT hyperledger in RUST QA-confirmed This bug is reproduced and needs a fix
Projects
None yet
Development

No branches or pull requests

3 participants