RGB-Tools / rgb-lightning-node

MIT License
17 stars 19 forks source link

Build failed #26

Closed Harshit933 closed 4 months ago

Harshit933 commented 4 months ago

Hello I was trying to build the project using cargo install --debug --path . But it is failing with the following errors.

   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.
zoedberg commented 4 months ago

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.

Harshit933 commented 4 months ago

Issue got fixed. Thanks!