Closed Harshit933 closed 4 months ago
Hello I was trying to build the project using cargo install --debug --path . But it is failing with the following errors.
cargo install --debug --path .
Compiling crc32fast v1.4.0 error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied --> /home/harshit/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aluvm-0.10.7/src/reg/indexes.rs:422:18 | 422 | type Error = OverflowError<u8>; | ^^^^^^^^^^^^^---- help: remove these generics | | | expected 0 generic arguments | note: struct defined here, with 0 generic parameters --> /home/harshit/.cargo/registry/src/index.crates.io-6f17d22bba15001f/amplify_num-0.5.1/src/error.rs:20:12 | 20 | pub struct OverflowError { | ^^^^^^^^^^^^^ error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied --> /home/harshit/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aluvm-0.10.7/src/reg/indexes.rs:525:18 | 525 | type Error = OverflowError<u8>; | ^^^^^^^^^^^^^---- help: remove these generics | | | expected 0 generic arguments | note: struct defined here, with 0 generic parameters --> /home/harshit/.cargo/registry/src/index.crates.io-6f17d22bba15001f/amplify_num-0.5.1/src/error.rs:20:12 | 20 | pub struct OverflowError { | ^^^^^^^^^^^^^ error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied --> /home/harshit/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aluvm-0.10.7/src/reg/indexes.rs:617:18 | 617 | type Error = OverflowError<u8>; | ^^^^^^^^^^^^^---- help: remove these generics | | | expected 0 generic arguments | note: struct defined here, with 0 generic parameters --> /home/harshit/.cargo/registry/src/index.crates.io-6f17d22bba15001f/amplify_num-0.5.1/src/error.rs:20:12 | 20 | pub struct OverflowError { | ^^^^^^^^^^^^^ Compiling colorchoice v1.0.0 For more information about this error, try `rustc --explain E0107`. Compiling rustls v0.21.11 error: could not compile `aluvm` (lib) due to 3 previous errors warning: build failed, waiting for other jobs to finish... error: failed to compile `rgb-lightning-node v0.1.0 (/home/harshit/Desktop/rgb-lightning-node)`, intermediate artifacts can be found at `/home/harshit/Desktop/rgb-lightning-node/target`. To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
The cargo install command automatically does a cargo update and it seems that aluvm v0.10.7 breaks compilation. I've pushed a fix to pin aluvm to v0.10.6, now it should work.
cargo install
cargo update
Issue got fixed. Thanks!
Hello I was trying to build the project using
cargo install --debug --path .
But it is failing with the following errors.