Sovereign-Labs / sovereign-sdk

A framework for building seamlessly scalable and interoperable rollups that can run on any blockchain
https://sovereign.xyz
Apache License 2.0
353 stars 101 forks source link

examples/demo-rollup compilation fails with invalid arch name 'rv32i2p0_m2p0' #1376

Closed futurechimp closed 1 month ago

futurechimp commented 2 months ago

Summary

Compiling the examples/demo-rollup fails on both Mac M1 and Linux x86.

Steps to reproduce

  1. git clone https://github.com/Sovereign-Labs/sovereign-sdk.git
  2. cd examples/demo-rollup
  3. cargo build --bins

Expected Result

Binaries should build successfully.

Actual Result

Most of the normal Rust stuff compiled, but during Celestia compilation:

sov-demo-prover-guest-celestia:    Compiling bytes v1.5.0f-src(build), risc0(build), risc0-circuit-recursion(build), librocksdb-sys(build), risc0-circuit-rv32im, sov-celestia-adapter
sov-demo-prover-guest-celestia:    Compiling hex v0.4.3
sov-demo-prover-guest-celestia:    Compiling ed25519 v2.2.2
sov-demo-prover-guest-celestia:    Compiling informalsystems-pbjson v0.6.0
sov-demo-prover-guest-celestia:    Compiling bcs v0.1.6
sov-demo-prover-guest-celestia:    Compiling bincode v1.3.3
sov-demo-prover-guest-celestia:    Compiling serde_bytes v0.11.12
sov-demo-prover-guest-celestia:    Compiling ruint v1.10.1
sov-demo-prover-guest-celestia:    Compiling toml v0.5.11
sov-demo-prover-guest-celestia:    Compiling ics23 v0.11.0-src(build), risc0(build), risc0-circuit-recursion(build), librocksdb-sys(build), sov-celestia-adapter
sov-demo-prover-guest-celestia:    Compiling ed25519-consensus v2.1.0
sov-demo-prover-guest-celestia:    Compiling ed25519-dalek v2.0.0 (https://github.com/risc0/curve25519-dalek?tag=curve25519-4.1.0-risczero.1#42c4faf7)
sov-demo-prover-guest-celestia:    Compiling proc-macro-crate v0.1.5
sov-demo-prover-guest-celestia:    Compiling proc-macro-crate v1.1.3
sov-demo-prover-guest-celestia: error: invalid arch name 'rv32i2p0_m2p0', unsupported version number 2.0 for extension 'i'
sov-demo-prover-guest-celestia:         .attribute      5, "rv32i2p0_m2p0"
sov-demo-prover-guest-celestia:                            ^
sov-demo-prover-guest-celestia: error: instruction requires the following: 'M' (Integer Multiplication and Division) or 'Zmmul' (Integer Multiplication)
sov-demo-prover-guest-celestia:         mul     a1, a1, a4
sov-demo-prover-guest-celestia:         ^
sov-demo-prover-guest-celestia: error: invalid arch name 'rv32i2p0_m2p0', unsupported version number 2.0 for extension 'i'
sov-demo-prover-guest-celestia:         .attribute      5, "rv32i2p0_m2p0"
sov-demo-prover-guest-celestia:                            ^
sov-demo-prover-guest-celestia: error: invalid arch name 'rv32i2p0_m2p0', unsupported version number 2.0 for extension 'i'
sov-demo-prover-guest-celestia:         .attribute      5, "rv32i2p0_m2p0"
sov-demo-prover-guest-celestia:                            ^
sov-demo-prover-guest-celestia: error: instruction requires the following: 'M' (Integer Multiplication and Division) or 'Zmmul' (Integer Multiplication)
sov-demo-prover-guest-celestia:         mul     a1, a1, a4
sov-demo-prover-guest-celestia:         ^
sov-demo-prover-guest-celestia: error: invalid arch name 'rv32i2p0_m2p0', unsupported version number 2.0 for extension 'i'
sov-demo-prover-guest-celestia:         .attribute      5, "rv32i2p0_m2p0"
sov-demo-prover-guest-celestia:                            ^
sov-demo-prover-guest-celestia: error: invalid arch name 'rv32i2p0_m2p0', unsupported version number 2.0 for extension 'i'
sov-demo-prover-guest-celestia:         .attribute      5, "rv32i2p0_m2p0"
sov-demo-prover-guest-celestia:                            ^
sov-demo-prover-guest-celestia: error: instruction requires the following: 'M' (Integer Multiplication and Division) or 'Zmmul' (Integer Multiplication)
sov-demo-prover-guest-celestia:         mul     a1, a1, a4
sov-demo-prover-guest-celestia:         ^
sov-demo-prover-guest-celestia: error: invalid arch name 'rv32i2p0_m2p0', unsupported version number 2.0 for extension 'i'
sov-demo-prover-guest-celestia:         .attribute      5, "rv32i2p0_m2p0"
sov-demo-prover-guest-celestia:                            ^

Additional Information

This happens on both Mac M1 and Linux. I have tried with branch nightly as well as tag v0.3.0-alpha.

I can't see any other mentions about it in the project issues, so it seems very much like a "me" problem rather than a "you" problem :).

Is it perhaps some dependency I don't have installed?

My setup on Mac is:

cemozerr commented 2 months ago

Hi @futurechimp. This is fixed in our WIP repo that we mention on the top of our README.

Happy to add you to that repo until we get to testnet and open-source everything once again.

Please feel free to reach out to me at cem at sovlabs.io for access.

futurechimp commented 1 month ago

Cool, thanks Cem, I'll do that.

LinusLucas commented 3 weeks ago

Hi @cemozerr , I also try to run demo-rollup locally and encouter same problem. Could you please add me to the private repo ? Thanks !