build fails #2

Closed
opened 3 years ago by duke · 3 comments
duke commented 3 years ago
Owner

To reproduce:

git clone https://git.hush.is/hush/SilentDragonPaper
cd SilentDragonPaper
./build.sh

Expectation: Build works and binary ./SilentDragonPaper created

Actual:

       Fresh group v0.1.0 (https://git.hush.is/hush/librustzcash?rev=5a48d179b8434a0318e7e19dda506e245a904092#5a48d179)
       Fresh time v0.2.23
       Fresh fpe v0.1.0
       Fresh libsecp256k1 v0.2.2
       Fresh pairing v0.14.2 (https://git.hush.is/hush/librustzcash?rev=5a48d179b8434a0318e7e19dda506e245a904092#5a48d179)
       Fresh lopdf v0.26.0
       Fresh bellman v0.1.0 (https://git.hush.is/hush/librustzcash?rev=5a48d179b8434a0318e7e19dda506e245a904092#5a48d179)
   Compiling printpdf v0.3.4
       Fresh sapling-crypto v0.0.1 (https://git.hush.is/hush/librustzcash?rev=5a48d179b8434a0318e7e19dda506e245a904092#5a48d179)
     Running `rustc --crate-name printpdf /home/duke/.cargo/registry/src/github.com-1ecc6299db9ec823/printpdf-0.3.4/src/lib.rs --color always --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="embedded_images"' --cfg 'feature="image"' -C metadata=118942ba79d8bbce -C extra-filename=-118942ba79d8bbce --out-dir /home/duke/newgit/SilentDragonPaper/cli/target/release/deps -L dependency=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps --extern image=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps/libimage-aafef5487c563185.rlib --extern lopdf=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps/liblopdf-0ca118484c042d64.rlib --extern rusttype=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps/librusttype-239462b03c28f1fe.rlib --extern time=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps/libtime-d18315d0ef0affb5.rlib --cap-lints allow`
       Fresh zcash_primitives v0.0.0 (https://git.hush.is/hush/librustzcash?rev=5a48d179b8434a0318e7e19dda506e245a904092#5a48d179)
error[E0277]: the trait bound `char: std::iter::Step` is not satisfied
   --> /home/duke/.cargo/registry/src/github.com-1ecc6299db9ec823/printpdf-0.3.4/src/types/plugins/graphics/two_dimensional/font.rs:532:18
    |
532 |         for c in char::default()..std::char::MAX {
    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::iter::Step` is not implemented for `char`
    |
    = note: required because of the requirements on the impl of `std::iter::Iterator` for `std::ops::Range<char>`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: Could not compile `printpdf`.

Caused by:
  process didn't exit successfully: `rustc --crate-name printpdf /home/duke/.cargo/registry/src/github.com-1ecc6299db9ec823/printpdf-0.3.4/src/lib.rs --color always --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="embedded_images"' --cfg 'feature="image"' -C metadata=118942ba79d8bbce -C extra-filename=-118942ba79d8bbce --out-dir /home/duke/newgit/SilentDragonPaper/cli/target/release/deps -L dependency=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps --extern image=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps/libimage-aafef5487c563185.rlib --extern lopdf=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps/liblopdf-0ca118484c042d64.rlib --extern rusttype=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps/librusttype-239462b03c28f1fe.rlib --extern time=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps/libtime-d18315d0ef0affb5.rlib --cap-lints allow` (exit code: 1)

This code did work, but some changes in Rust API seem to have broken a dependency. Just Make It Work

Bounty: 25 HUSH

To reproduce: ``` git clone https://git.hush.is/hush/SilentDragonPaper cd SilentDragonPaper ./build.sh ``` Expectation: Build works and binary `./SilentDragonPaper` created Actual: ``` Fresh group v0.1.0 (https://git.hush.is/hush/librustzcash?rev=5a48d179b8434a0318e7e19dda506e245a904092#5a48d179) Fresh time v0.2.23 Fresh fpe v0.1.0 Fresh libsecp256k1 v0.2.2 Fresh pairing v0.14.2 (https://git.hush.is/hush/librustzcash?rev=5a48d179b8434a0318e7e19dda506e245a904092#5a48d179) Fresh lopdf v0.26.0 Fresh bellman v0.1.0 (https://git.hush.is/hush/librustzcash?rev=5a48d179b8434a0318e7e19dda506e245a904092#5a48d179) Compiling printpdf v0.3.4 Fresh sapling-crypto v0.0.1 (https://git.hush.is/hush/librustzcash?rev=5a48d179b8434a0318e7e19dda506e245a904092#5a48d179) Running `rustc --crate-name printpdf /home/duke/.cargo/registry/src/github.com-1ecc6299db9ec823/printpdf-0.3.4/src/lib.rs --color always --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="embedded_images"' --cfg 'feature="image"' -C metadata=118942ba79d8bbce -C extra-filename=-118942ba79d8bbce --out-dir /home/duke/newgit/SilentDragonPaper/cli/target/release/deps -L dependency=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps --extern image=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps/libimage-aafef5487c563185.rlib --extern lopdf=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps/liblopdf-0ca118484c042d64.rlib --extern rusttype=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps/librusttype-239462b03c28f1fe.rlib --extern time=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps/libtime-d18315d0ef0affb5.rlib --cap-lints allow` Fresh zcash_primitives v0.0.0 (https://git.hush.is/hush/librustzcash?rev=5a48d179b8434a0318e7e19dda506e245a904092#5a48d179) error[E0277]: the trait bound `char: std::iter::Step` is not satisfied --> /home/duke/.cargo/registry/src/github.com-1ecc6299db9ec823/printpdf-0.3.4/src/types/plugins/graphics/two_dimensional/font.rs:532:18 | 532 | for c in char::default()..std::char::MAX { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::iter::Step` is not implemented for `char` | = note: required because of the requirements on the impl of `std::iter::Iterator` for `std::ops::Range<char>` error: aborting due to previous error For more information about this error, try `rustc --explain E0277`. error: Could not compile `printpdf`. Caused by: process didn't exit successfully: `rustc --crate-name printpdf /home/duke/.cargo/registry/src/github.com-1ecc6299db9ec823/printpdf-0.3.4/src/lib.rs --color always --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="embedded_images"' --cfg 'feature="image"' -C metadata=118942ba79d8bbce -C extra-filename=-118942ba79d8bbce --out-dir /home/duke/newgit/SilentDragonPaper/cli/target/release/deps -L dependency=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps --extern image=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps/libimage-aafef5487c563185.rlib --extern lopdf=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps/liblopdf-0ca118484c042d64.rlib --extern rusttype=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps/librusttype-239462b03c28f1fe.rlib --extern time=/home/duke/newgit/SilentDragonPaper/cli/target/release/deps/libtime-d18315d0ef0affb5.rlib --cap-lints allow` (exit code: 1) ``` This code did work, but some changes in Rust API seem to have broken a dependency. Just Make It Work Bounty: 25 HUSH
Collaborator

bounty plz :)

bounty plz :)
Poster
Owner

@jahway603 this is worth 500 HUSH, add it to my ztab

@jahway603 this is worth 500 HUSH, add it to my ztab
Collaborator

Closing as PR #3 fixed this.

Closing as PR #3 fixed this.
jahway603 closed this issue 3 years ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.