Closed kernc closed 3 years ago
I can't reproduce this, the error appears to be with the gotham
crate that this project is built on.
I updated the versions in Cargo.toml
so perhaps this will solve the issue. Otherwise, could you provide the stacktrace when built with the debug
settings
Above was already built without a --release
switch.
$ git pull
...
$ cargo clean
$ cargo build
Updating crates.io index
Compiling libc v0.2.80
Compiling cfg-if v0.1.10
Compiling autocfg v0.1.2
Compiling serde v1.0.88
Compiling lazy_static v1.2.0
Compiling proc-macro2 v1.0.24
Compiling unicode-xid v0.2.1
Compiling log v0.4.11
Compiling syn v1.0.50
Compiling semver-parser v0.7.0
Compiling rand_core v0.4.0
Compiling version_check v0.9.2
Compiling cc v1.0.65
Compiling slab v0.4.2
Compiling itoa v0.4.3
Compiling memchr v2.2.0
Compiling proc-macro-hack v0.5.19
Compiling once_cell v1.5.2
Compiling proc-macro2 v0.4.27
Compiling byteorder v1.3.1
Compiling futures v0.1.25
Compiling void v1.0.2
Compiling unicode-xid v0.1.0
Compiling fnv v1.0.6
Compiling futures-core v0.3.8
Compiling scopeguard v0.3.3
Compiling ryu v0.2.7
Compiling stable_deref_trait v1.1.1
Compiling bytes v0.5.6
Compiling arrayvec v0.4.10
Compiling futures-sink v0.3.8
Compiling proc-macro-nested v0.1.6
Compiling rustc-demangle v0.1.13
Compiling bitflags v1.0.4
Compiling pin-project-lite v0.1.11
Compiling nodrop v0.1.13
Compiling pin-project-internal v0.4.27
Compiling pulldown-cmark v0.2.0
Compiling getrandom v0.1.15
Compiling remove_dir_all v0.5.1
Compiling pin-utils v0.1.0
Compiling memoffset v0.2.1
Compiling spin v0.5.2
Compiling same-file v1.0.4
Compiling untrusted v0.7.1
Compiling futures-io v0.3.8
Compiling httparse v1.3.3
Compiling try-lock v0.2.2
Compiling glob v0.2.11
Compiling bytecount v0.4.0
Compiling indexmap v1.0.2
Compiling num-traits v0.2.6
Compiling const_fn v0.4.3
Compiling ppv-lite86 v0.2.10
Compiling pkg-config v0.3.15
Compiling num-integer v0.1.39
Compiling regex v1.1.0
Compiling cfg-if v1.0.0
Compiling unicode-xid v0.0.4
Compiling base64 v0.12.3
Compiling linked-hash-map v0.5.1
Compiling ucd-util v0.1.3
Compiling anyhow v1.0.34
Compiling quote v0.3.15
Compiling tower-service v0.3.0
Compiling mime v0.3.16
Compiling unicode-width v0.1.5
Compiling string v0.1.3
Compiling either v1.6.1
Compiling utf8-ranges v1.0.2
Compiling httpdate v0.3.2
Compiling strsim v0.7.0
Compiling fallible-iterator v0.2.0
Compiling fallible-streaming-iterator v0.1.9
Compiling ansi_term v0.11.0
Compiling percent-encoding v2.1.0
Compiling vec_map v0.8.1
Compiling pest v1.0.6
Compiling quick-error v1.2.3
Compiling xml-rs v0.8.3
Compiling crossbeam-utils v0.6.5
Compiling tracing-core v0.1.17
Compiling thread_local v0.3.6
Compiling rand_core v0.3.1
Compiling rand_jitter v0.1.3
Compiling rand_chacha v0.1.1
Compiling rand v0.6.5
Compiling backtrace v0.3.13
Compiling bincode v1.1.2
Compiling futures-task v0.3.8
Compiling unreachable v1.0.0
Compiling standback v0.2.13
Compiling unicase v2.6.0
Compiling time v0.2.23
Compiling cookie v0.14.3
Compiling owning_ref v0.4.0
Compiling futures-channel v0.3.8
Compiling http v0.2.1
Compiling walkdir v2.2.7
Compiling synom v0.11.3
Compiling backtrace-sys v0.1.28
Compiling ring v0.16.16
Compiling regex-syntax v0.6.5
Compiling lru-cache v0.1.2
Compiling textwrap v0.10.0
Compiling itertools v0.9.0
Compiling libsqlite3-sys v0.16.0
Compiling rand_hc v0.1.0
Compiling rand_xorshift v0.1.1
Compiling rand_isaac v0.1.1
Compiling tokio-executor v0.1.6
Compiling smallvec v0.6.8
Compiling lock_api v0.1.5
Compiling syn v0.11.11
Compiling tracing v0.1.21
Compiling want v0.3.0
Compiling want v0.0.6
Compiling tokio-timer v0.2.10
Compiling tokio-current-thread v0.1.4
Compiling quote v1.0.7
Compiling crossbeam-channel v0.3.8
Compiling iovec v0.1.4
Compiling num_cpus v1.10.0
Compiling net2 v0.2.33
Compiling rand_os v0.1.2
Compiling rand v0.4.6
Compiling signal-hook-registry v1.2.2
Compiling time v0.1.42
Compiling socket2 v0.3.17
Compiling atty v0.2.11
Compiling mio v0.7.6
Compiling aho-corasick v0.6.10
Compiling http-body v0.3.1
Compiling quote v0.6.11
Compiling crossbeam-epoch v0.7.1
Compiling bytes v0.4.11
Compiling mime_guess v2.0.3
Compiling futures-cpupool v0.1.8
Compiling mio v0.6.21
Compiling rand_core v0.5.1
Compiling clap v2.32.0
Compiling tempdir v0.3.7
Compiling semver v0.9.0
Compiling serde_json v1.0.38
Compiling syn v0.15.26
Compiling pest_derive v1.0.8
Compiling crossbeam-deque v0.6.3
Compiling rusqlite v0.20.0
Compiling chrono v0.4.6
Compiling tokio-io v0.1.11
Compiling http v0.1.15
Compiling rand_chacha v0.2.2
Compiling rustc_version v0.2.3
Compiling mio-uds v0.6.7
Compiling sct v0.6.0
Compiling webpki v0.21.3
Compiling error-chain v0.12.0
Compiling rand v0.7.3
Compiling rand_pcg v0.1.1
Compiling parking_lot_core v0.4.0
Compiling rustls v0.18.1
Compiling h2 v0.1.16
Compiling serde_derive v1.0.88
Compiling gotham_derive v0.3.0
Compiling uuid v0.8.1
Compiling pin-project-internal v1.0.2
Compiling futures-macro v0.3.8
Compiling tokio-macros v0.2.6
Compiling time-macros-impl v0.1.1
Compiling parking_lot v0.7.1
Compiling tokio v0.2.22
Compiling crossbeam v0.6.0
Compiling tokio-reactor v0.1.8
Compiling tokio-threadpool v0.1.11
Compiling pin-project v1.0.2
Compiling tokio-tcp v0.1.3
Compiling time-macros v0.1.1
Compiling futures-util v0.3.8
Compiling pin-project v0.4.27
Compiling tokio v0.1.15
Compiling tracing-futures v0.2.4
Compiling hyper v0.12.24
Compiling cargo_metadata v0.6.4
Compiling skeptic v0.13.4
Compiling borrow-bag v1.0.0
Compiling tokio-util v0.3.1
Compiling tokio-rustls v0.14.1
Compiling h2 v0.2.7
Compiling futures-executor v0.3.8
Compiling futures v0.3.8
Compiling hyper v0.13.9
Compiling gotham v0.5.0
Compiling elexis-dictionary-service v0.1.0 (/tmp/dictionary-service)
error[E0277]: the trait bound `hyper::Body: HttpBody` is not satisfied
--> src/main.rs:84:34
|
84 | #[derive(Deserialize, StateData, StaticResponseExtender)]
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `HttpBody` is not implemented for `hyper::Body`
|
::: ~/.cargo/registry/src/github.com-1ecc6299db9ec823/gotham-0.5.0/src/router/response/extender.rs:11:19
|
11 | type ResBody: HttpBody;
| -------- required by this bound in `StaticResponseExtender`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `hyper::Body: HttpBody` is not satisfied
--> src/main.rs:88:34
|
88 | #[derive(Deserialize, StateData, StaticResponseExtender)]
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `HttpBody` is not implemented for `hyper::Body`
|
::: ~/.cargo/registry/src/github.com-1ecc6299db9ec823/gotham-0.5.0/src/router/response/extender.rs:11:19
|
11 | type ResBody: HttpBody;
| -------- required by this bound in `StaticResponseExtender`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `hyper::Body: HttpBody` is not satisfied
--> src/main.rs:92:34
|
92 | #[derive(Deserialize, StateData, StaticResponseExtender)]
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `HttpBody` is not implemented for `hyper::Body`
|
::: ~/.cargo/registry/src/github.com-1ecc6299db9ec823/gotham-0.5.0/src/router/response/extender.rs:11:19
|
11 | type ResBody: HttpBody;
| -------- required by this bound in `StaticResponseExtender`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `hyper::Body: HttpBody` is not satisfied
--> src/main.rs:97:34
|
97 | #[derive(Deserialize, StateData, StaticResponseExtender)]
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `HttpBody` is not implemented for `hyper::Body`
|
::: ~/.cargo/registry/src/github.com-1ecc6299db9ec823/gotham-0.5.0/src/router/response/extender.rs:11:19
|
11 | type ResBody: HttpBody;
| -------- required by this bound in `StaticResponseExtender`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `hyper::Body: HttpBody` is not satisfied
--> src/main.rs:102:34
|
102 | #[derive(Deserialize, StateData, StaticResponseExtender)]
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `HttpBody` is not implemented for `hyper::Body`
|
::: ~/.cargo/registry/src/github.com-1ecc6299db9ec823/gotham-0.5.0/src/router/response/extender.rs:11:19
|
11 | type ResBody: HttpBody;
| -------- required by this bound in `StaticResponseExtender`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `hyper::Body: HttpBody` is not satisfied
--> src/main.rs:110:34
|
110 | #[derive(Deserialize, StateData, StaticResponseExtender)]
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `HttpBody` is not implemented for `hyper::Body`
|
::: ~/.cargo/registry/src/github.com-1ecc6299db9ec823/gotham-0.5.0/src/router/response/extender.rs:11:19
|
11 | type ResBody: HttpBody;
| -------- required by this bound in `StaticResponseExtender`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 6 previous errors
For more information about this error, try `rustc --explain E0277`.
error: could not compile `elexis-dictionary-service`
I'm not quite sure what all this is about.
Not sure either. I don't seem to get this error
-> % cargo build --release
Compiling libc v0.2.80
Compiling proc-macro2 v1.0.24
Compiling unicode-xid v0.2.1
Compiling syn v1.0.50
Compiling version_check v0.9.2
Compiling cfg-if v0.1.10
Compiling getrandom v0.1.15
Compiling log v0.4.11
Compiling memchr v2.3.4
Compiling serde v1.0.117
Compiling autocfg v1.0.1
Compiling proc-macro-hack v0.5.19
Compiling ryu v1.0.5
Compiling once_cell v1.5.2
Compiling bitflags v1.2.1
Compiling lazy_static v1.4.0
Compiling slab v0.4.2
Compiling serde_json v1.0.59
Compiling rand_core v0.4.2
Compiling futures-core v0.3.8
Compiling autocfg v0.1.7
Compiling proc-macro-nested v0.1.6
Compiling futures-sink v0.3.8
Compiling ppv-lite86 v0.2.10
Compiling bytes v0.5.6
Compiling pin-project-lite v0.1.11
Compiling serde_derive v1.0.117
Compiling fnv v1.0.7
Compiling cc v1.0.65
Compiling pulldown-cmark v0.2.0
Compiling itoa v0.4.6
Compiling semver-parser v0.7.0
Compiling ahash v0.4.6
Compiling pin-project-internal v0.4.27
Compiling untrusted v0.7.1
Compiling remove_dir_all v0.5.3
Compiling spin v0.5.2
Compiling same-file v1.0.6
Compiling futures-io v0.3.8
Compiling pin-utils v0.1.0
Compiling glob v0.3.0
Compiling bytecount v0.6.1
Compiling const_fn v0.4.3
Compiling httparse v1.3.4
Compiling pkg-config v0.3.19
Compiling byteorder v1.3.4
Compiling try-lock v0.2.3
Compiling cfg-if v1.0.0
Compiling anyhow v1.0.34
Compiling base64 v0.12.3
Compiling unicode-xid v0.0.4
Compiling unicode-width v0.1.8
Compiling httpdate v0.3.2
Compiling mime v0.3.16
Compiling quote v0.3.15
Compiling regex-syntax v0.6.21
Compiling tower-service v0.3.0
Compiling either v1.6.1
Compiling fallible-streaming-iterator v0.1.9
Compiling pest v1.0.6
Compiling linked-hash-map v0.5.3
Compiling fallible-iterator v0.2.0
Compiling ansi_term v0.11.0
Compiling smallvec v1.5.0
Compiling vec_map v0.8.2
Compiling percent-encoding v2.1.0
Compiling strsim v0.8.0
Compiling quick-error v1.2.3
Compiling xml-rs v0.8.3
Compiling standback v0.2.13
Compiling unicase v2.6.0
Compiling error-chain v0.12.4
Compiling time v0.2.23
Compiling cookie v0.14.3
Compiling futures-task v0.3.8
Compiling tracing-core v0.1.17
Compiling thread_local v1.0.1
Compiling indexmap v1.6.0
Compiling num-traits v0.2.14
Compiling num-integer v0.1.44
Compiling rand_core v0.3.1
Compiling rand_jitter v0.1.4
Compiling futures-channel v0.3.8
Compiling rand_pcg v0.1.2
Compiling rand_chacha v0.1.1
Compiling rand v0.6.5
Compiling hashbrown v0.9.1
Compiling walkdir v2.3.1
Compiling http v0.2.1
Compiling ring v0.16.16
Compiling libsqlite3-sys v0.20.1
Compiling synom v0.11.3
Compiling textwrap v0.11.0
Compiling itertools v0.9.0
Compiling rand_xorshift v0.1.1
Compiling rand_hc v0.1.0
Compiling rand_isaac v0.1.1
Compiling hashlink v0.6.0
Compiling syn v0.11.11
Compiling http-body v0.3.1
Compiling quote v1.0.7
Compiling net2 v0.2.35
Compiling iovec v0.1.4
Compiling num_cpus v1.13.0
Compiling signal-hook-registry v1.2.2
Compiling time v0.1.44
Compiling socket2 v0.3.17
Compiling rand_os v0.1.3
Compiling atty v0.2.14
Compiling tracing v0.1.21
Compiling want v0.3.0
Compiling mio v0.7.6
Compiling aho-corasick v0.7.15
Compiling semver v0.9.0
Compiling bincode v1.3.1
Compiling mio v0.6.22
Compiling rand_core v0.5.1
Compiling pest_derive v1.0.8
Compiling clap v2.33.3
Compiling mime_guess v2.0.3
Compiling regex v1.4.2
Compiling rusqlite v0.24.1
Compiling sct v0.6.0
Compiling webpki v0.21.3
Compiling mio-uds v0.6.8
Compiling rand_chacha v0.2.2
Compiling pin-project-internal v1.0.2
Compiling futures-macro v0.3.8
Compiling tokio-macros v0.2.6
Compiling time-macros-impl v0.1.1
Compiling gotham_derive v0.5.0
Compiling chrono v0.4.19
Compiling rustls v0.18.1
Compiling rand v0.7.3
Compiling pin-project v1.0.2
Compiling tokio v0.2.23
Compiling pin-project v0.4.27
Compiling time-macros v0.1.1
Compiling cargo_metadata v0.10.0
Compiling uuid v0.8.1
Compiling futures-util v0.3.8
Compiling tempfile v3.1.0
Compiling tracing-futures v0.2.4
Compiling skeptic v0.13.5
Compiling tokio-util v0.3.1
Compiling tokio-rustls v0.14.1
Compiling futures-executor v0.3.8
Compiling borrow-bag v1.0.0
Compiling h2 v0.2.7
Compiling futures v0.3.8
Compiling hyper v0.13.9
Compiling gotham v0.5.0
Compiling elexis-dictionary-service v0.1.0 (/home/jmccrae/projects/elexis/dictionary-service)
Finished release [optimized] target(s) in 4m 33s
jmccrae@nacreous [10:10:45] [~/projects/elexis/dictionary-service] [master *]
-> % rustc --version
rustc 1.48.0 (7eac88abb 2020-11-16)
It does seem that I was committing the Cargo.lock
file, so I have now removed this from the repo, perhaps this will help?
That did it. I thought Cargo.lock was repopulated on cargo update
, but that didn't work for me previously. Confusing. :confused:
Thanks!
After installing from source,
elexis-dictionary-service start
segfaults:Loading the examples seemingly worked.
After
cargo update
, the source no longer builds. :sweat_smile: