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] unstable library feature in snarkvm-algorithms #2021

Closed
hryksbt opened this issue Nov 6, 2022 · 5 comments
Closed

[Bug] unstable library feature in snarkvm-algorithms #2021

hryksbt opened this issue Nov 6, 2022 · 5 comments
Labels
bug Incorrect or unexpected behavior testnet3 unconfirmed Issues that have not been reproduced or confirmed to be bugs

Comments

@hryksbt
Copy link

hryksbt commented Nov 6, 2022

🐛 Bug Report

When I execute run-client.sh, I face below error.

`error[E0658]: use of unstable library feature 'bool_to_option'
--> /root/.cargo/git/checkouts/snarkvm-f1160780ffe17de8/1f0f2c9/console/algorithms/src/blake2xs/hash_to_curve.rs:54:28
|
54 | (!g.is_zero()).then_some(g)
| ^^^^^^^^^
|
= note: see issue #80967 rust-lang/rust#80967 for more information

For more information about this error, try rustc --explain E0658.
error: could not compile snarkvm-console-algorithms due to previous error
warning: build failed, waiting for other jobs to finish...
error[E0658]: use of unstable library feature 'bool_to_option'
--> /root/.cargo/git/checkouts/snarkvm-f1160780ffe17de8/1f0f2c9/algorithms/src/snark/marlin/ahp/ahp.rs:53:16
|
53 | MM::ZK.then_some(1)
| ^^^^^^^^^
|
= note: see issue #80967 rust-lang/rust#80967 for more information

error[E0658]: use of unstable library feature 'bool_to_option'
--> /root/.cargo/git/checkouts/snarkvm-f1160780ffe17de8/1f0f2c9/algorithms/src/snark/marlin/ahp/prover/round_functions/first.rs:116:43
|
116 | state.mz_poly_randomizer = MM::ZK.then_some(r_b_s);
| ^^^^^^^^^
|
= note: see issue #80967 rust-lang/rust#80967 for more information

error[E0658]: use of unstable library feature 'bool_to_option'
--> /root/.cargo/git/checkouts/snarkvm-f1160780ffe17de8/1f0f2c9/algorithms/src/snark/marlin/data_structures/proof.rs:176:78
|
176 | let z_b_evals = map.iter().filter_map(|(k, v)| k.starts_with("z_b_").then_some(*v)).collect::<Vec<_>>();
| ^^^^^^^^^
|
= note: see issue #80967 rust-lang/rust#80967 for more information

error: could not compile snarkvm-algorithms due to 3 previous errors
`

Steps to Reproduce

  1. Step 1... Following this installation. - https://github.com/AleoHQ/snarkOS#22-installation
  2. Step 2... Execute ./run-client.sh in snarkOS directory.
  3. Step 3... Facing above error. Then this shell script can't run.

Expected Behavior

Staring phase 1 mining process.

Your Environment

  • snarkOS Version = latest
  • Rust Version = latest
  • Ubuntu 22.04.1
  • Intel Core i7 11800H, 16GB RAM, RTX3080 laptop
@hryksbt hryksbt added the bug Incorrect or unexpected behavior label Nov 6, 2022
@niklaslong
Copy link
Collaborator

There have been many changes to both snarkOS and snarkVM recently, could you pull the latest commits and try again?

@hryksbt
Copy link
Author

hryksbt commented Nov 8, 2022

Thank you,
I did git pull. But same result.
I think you should check error message then fix issue.
Regards,

@niklaslong
Copy link
Collaborator

I haven't been able to reproduce so far, as a sanity check, you are on commit cf9f4a488802655235b06f0d7d38903c7af5bd5e?

@niklaslong niklaslong changed the title [Bug] [Bug] unstable library feature in snarkvm-algorithms Nov 8, 2022
@niklaslong niklaslong added unconfirmed Issues that have not been reproduced or confirmed to be bugs testnet3 labels Nov 8, 2022
@hryksbt
Copy link
Author

hryksbt commented Nov 8, 2022

I got the reason.
run-client.sh cannot work with sudo command.
I need to be a root user. Then it works.
If this is unexpected, please consider to update.

Thank you,

@niklaslong
Copy link
Collaborator

Glad you got it working. run-client.sh works fine for me with sudo. Closing this issue as it seems to be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect or unexpected behavior testnet3 unconfirmed Issues that have not been reproduced or confirmed to be bugs
Projects
None yet
Development

No branches or pull requests

2 participants