sui icon indicating copy to clipboard operation
sui copied to clipboard

error: could not compile `fiat-crypto`Sui Code Bug or Feature Request

Open josevc1 opened this issue 3 years ago • 9 comments

Hello, im trying to compile Sui binaries but i got this error:

error: could not compile `fiat-crypto`
Caused by:
  process didn't exit successfully: `rustc --crate-name fiat_crypto --edition=2018 /root/.cargo/registry/src/github.com-1ecc6299db9ec823/fiat-crypto-0.1.17/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=9923855c3fd07a37 -C extra-filename=-9923855c3fd07a37 --out-dir /tmp/cargo-installcFxSGb/release/deps -C strip=debuginfo -L dependency=/tmp/cargo-installcFxSGb/release/deps --cap-lints allow` (signal: 9, SIGKILL: kill)
error: failed to compile `sui v0.12.2 (https://github.com/MystenLabs/sui.git?branch=devnet#1f6eda49)`, intermediate artifacts can be found at `/tmp/cargo-installHpEn2Z`
error: failed to compile `sui-node v0.12.2 (https://github.com/MystenLabs/sui.git?branch=devnet#1f6eda49)`, intermediate artifacts can be found at `/tmp/cargo-installcFxSGb`

I have the lastest version of rust (1.64.0) Im installed all the prerequisites mentioned by the installation guide. Could you please help me? Thanks

Im using Ubuntu 20.04

josevc1 avatar Oct 23 '22 20:10 josevc1

checking, what is your cargo version?

cargo --version 
cargo 1.64.0 (387270bc7 2022-09-16)

and the step you took to install is: cargo install --locked --git https://github.com/MystenLabs/sui.git --branch devnet sui sui-node ?

joyqvq avatar Oct 24 '22 02:10 joyqvq

checking, what is your cargo version?

cargo --version 
cargo 1.64.0 (387270bc7 2022-09-16)

and the step you took to install is: cargo install --locked --git https://github.com/MystenLabs/sui.git --branch devnet sui sui-node ?

hi,Do you know what my problem (issue) is, I just try to install the sui binary, my cargo version is 1.66

chrisyy2003 avatar Oct 24 '22 06:10 chrisyy2003

Hello, yes, i have Cargo 1.64.0 and i'm using exactly that parameters to install sui.

josevc1 avatar Oct 24 '22 16:10 josevc1

it sounds like you may have cargo nightly. confirmed that cargo stable 1.64.0 should work.

we merged the fix, if you try build from main instead of devnet branch it should work.

joyqvq avatar Oct 24 '22 16:10 joyqvq

it sounds like you may have cargo nightly. confirmed that cargo stable 1.64.0 should work.

we merged the fix, if you try build from main instead of devnet branch it should work.

Thanks for your assistance. How i merge it from main? is this the correct line: cargo install --locked --git https://github.com/MystenLabs/sui.git --branch mainnet sui sui-node

josevc1 avatar Oct 24 '22 16:10 josevc1

change mainnet to main

joyqvq avatar Oct 24 '22 16:10 joyqvq

Thanks, i will try!

josevc1 avatar Oct 24 '22 16:10 josevc1

I run it and now i got a lightly variation of the same error:

error: could not compile `fiat-crypto`

Caused by:
  process didn't exit successfully: `rustc --crate-name fiat_crypto --edition=2018 /root/.cargo/registry/src/github.com-1ecc6299db9ec823/fiat-crypto-0.1.14/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=ab8ab94d28e061ed -C extra-filename=-ab8ab94d28e061ed --out-dir /tmp/cargo-installImlNhS/release/deps -C strip=debuginfo -L dependency=/tmp/cargo-installImlNhS/release/deps --cap-lints allow` (signal: 9, SIGKILL: kill)
error: failed to compile `sui v0.13.0 (https://github.com/MystenLabs/sui.git?branch=main#c56de648)`, intermediate artifacts can be found at `/tmp/cargo-installW6EldH`
error: failed to compile `sui-node v0.13.0 (https://github.com/MystenLabs/sui.git?branch=main#c56de648)`, intermediate artifacts can be found at `/tmp/cargo-installImlNhS

Is there a way to exclude fiat-crypto from the installation?

josevc1 avatar Oct 24 '22 16:10 josevc1

My bad, i was running a VM with only 2GB of memory, i increased it to 8GB and i successfully installed Sui. Now i'm trying to run it with: cargo run --release --bin sui-node -- --config-path fullnode.yaml But it can not find Cargo.toml: error: could not find Cargo.tomlin/root or any parent directory

josevc1 avatar Oct 25 '22 04:10 josevc1

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Dec 25 '22 02:12 github-actions[bot]