Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile latest version 0.8.0 #22

Closed
ogarcia opened this issue Oct 25, 2018 · 6 comments
Closed

Cannot compile latest version 0.8.0 #22

ogarcia opened this issue Oct 25, 2018 · 6 comments

Comments

@ogarcia
Copy link

ogarcia commented Oct 25, 2018

In Linux, doing cargo build --release I have the following error.

   Compiling simplelog v0.5.2
   Compiling error-chain v0.12.0
   Compiling tokio-threadpool v0.1.7
   Compiling rusqlite v0.14.0
error[E0658]: use of unstable library feature 'duration_extras' (see issue #46507)
  --> /root/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/rusqlite-0.14.0/src/busy.rs:26:49
   |
26 |             .and_then(|t| t.checked_add(timeout.subsec_millis().into()))
   |                                                 ^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `rusqlite`.
warning: build failed, waiting for other jobs to finish...
error: build failed

I'm using cargo version 1.26.0

@agersant
Copy link
Owner

Can you try with the latest version of the Rust compiler (Stable)? I deployed 0.8.0 to my Raspberry Pi running Linux and did not encounter this issue.

@ogarcia
Copy link
Author

ogarcia commented Oct 26, 2018

I updated to latest version (1.30) and now I have the following error.

Compiling polaris v0.8.0 (/tmp/build)
     Running `rustc --crate-name polaris src/main.rs --color never --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=49d56b74d4d08fc2 -C extra-filename=-49d56b74d4d08fc2 --out-dir /tmp/build/target/release/deps -L dependency=/tmp/build/target/release/deps --extern ape=/tmp/build/target/release/deps/libape-3f56468350313990.rlib --extern app_dirs=/tmp/build/target/release/deps/libapp_dirs-801ce704e5c563f0.rlib --extern base64=/tmp/build/target/release/deps/libbase64-4cd7c7c91cd36f1b.rlib --extern diesel=/tmp/build/target/release/deps/libdiesel-959a732b338db6ac.rlib --extern diesel_migrations=/tmp/build/target/release/deps/libdiesel_migrations-3359b7ece190b443.rlib --extern error_chain=/tmp/build/target/release/deps/liberror_chain-9a096bc481d6a8e6.rlib --extern getopts=/tmp/build/target/release/deps/libgetopts-f0dbf8a3994ea0fe.rlib --extern hyper=/tmp/build/target/release/deps/libhyper-29bd5f2dcf37668c.rlib --extern id3=/tmp/build/target/release/deps/libid3-75092fb5100d7164.rlib --extern image=/tmp/build/target/release/deps/libimage-25877204237e5056.rlib --extern iron=/tmp/build/target/release/deps/libiron-ab1ad9d7b42c587a.rlib --extern lewton=/tmp/build/target/release/deps/liblewton-88f8f9003f6d055c.rlib --extern log=/tmp/build/target/release/deps/liblog-46e03c5f60f6a79a.rlib --extern md5=/tmp/build/target/release/deps/libmd5-f566ec7c429113e1.rlib --extern metaflac=/tmp/build/target/release/deps/libmetaflac-64ee0e89cc4c2e97.rlib --extern mount=/tmp/build/target/release/deps/libmount-25e34f2957ebcc0d.rlib --extern mp3_duration=/tmp/build/target/release/deps/libmp3_duration-64cb1462bedf8088.rlib --extern params=/tmp/build/target/release/deps/libparams-8361403760b3498c.rlib --extern rand=/tmp/build/target/release/deps/librand-d58f405cdc7fcadd.rlib --extern regex=/tmp/build/target/release/deps/libregex-4cdf3eade6d6ea6a.rlib --extern reqwest=/tmp/build/target/release/deps/libreqwest-b483617bf6f38548.rlib --extern ring=/tmp/build/target/release/deps/libring-5d2255a8475268a6.rlib --extern router=/tmp/build/target/release/deps/librouter-29161bc5edc95ef1.rlib --extern rusqlite=/tmp/build/target/release/deps/librusqlite-fa1832c36447efdd.rlib --extern crypto=/tmp/build/target/release/deps/libcrypto-465ccafd4d97cc81.rlib --extern rustfm_scrobble=/tmp/build/target/release/deps/librustfm_scrobble-99a988e62604b50f.rlib --extern secure_session=/tmp/build/target/release/deps/libsecure_session-06558b4f29a804ec.rlib --extern serde=/tmp/build/target/release/deps/libserde-92e8884b3e1912fc.rlib --extern serde_xml_rs=/tmp/build/target/release/deps/libserde_xml_rs-b2c07aaf61ebe3f1.rlib --extern serde_derive=/tmp/build/target/release/deps/libserde_derive-be41198b78060a2b.so --extern serde_json=/tmp/build/target/release/deps/libserde_json-7f3a8f5b832a6cd4.rlib --extern simplelog=/tmp/build/target/release/deps/libsimplelog-e10632351e261078.rlib --extern staticfile=/tmp/build/target/release/deps/libstaticfile-0be2e85c028f9ad1.rlib --extern toml=/tmp/build/target/release/deps/libtoml-c73b22b85030a241.rlib --extern typemap=/tmp/build/target/release/deps/libtypemap-50d04dfef9490b5b.rlib --extern unix_daemonize=/tmp/build/target/release/deps/libunix_daemonize-96c75dc5dd78bbf1.rlib --extern url=/tmp/build/target/release/deps/liburl-b2af889dc144475c.rlib -L native=/tmp/build/target/release/build/libsqlite3-sys-5c736dee1d004455/out -L native=/tmp/build/target/release/build/backtrace-sys-cb2dae85b99abfe3/out -L native=/tmp/build/target/release/build/miniz-sys-41e2d529a6d3bfc9/out -L native=/tmp/build/target/release/build/ring-8ebddf3f9393cfbd/out -L native=/tmp/build/target/release/build/rust-crypto-17f02c822602d0e7/out`
error: proc-macro derive panicked
  --> src/db/mod.rs:17:1
   |
17 | embed_migrations!("migrations");
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: message: Error reading migrations: No such file or directory (os error 2)
   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to previous error

error: Could not compile `polaris`.

Caused by:
  process didn't exit successfully: `rustc --crate-name polaris src/main.rs --color never --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=49d56b74d4d08fc2 -C extra-filename=-49d56b74d4d08fc2 --out-dir /tmp/build/target/release/deps -L dependency=/tmp/build/target/release/deps --extern ape=/tmp/build/target/release/deps/libape-3f56468350313990.rlib --extern app_dirs=/tmp/build/target/release/deps/libapp_dirs-801ce704e5c563f0.rlib --extern base64=/tmp/build/target/release/deps/libbase64-4cd7c7c91cd36f1b.rlib --extern diesel=/tmp/build/target/release/deps/libdiesel-959a732b338db6ac.rlib --extern diesel_migrations=/tmp/build/target/release/deps/libdiesel_migrations-3359b7ece190b443.rlib --extern error_chain=/tmp/build/target/release/deps/liberror_chain-9a096bc481d6a8e6.rlib --extern getopts=/tmp/build/target/release/deps/libgetopts-f0dbf8a3994ea0fe.rlib --extern hyper=/tmp/build/target/release/deps/libhyper-29bd5f2dcf37668c.rlib --extern id3=/tmp/build/target/release/deps/libid3-75092fb5100d7164.rlib --extern image=/tmp/build/target/release/deps/libimage-25877204237e5056.rlib --extern iron=/tmp/build/target/release/deps/libiron-ab1ad9d7b42c587a.rlib --extern lewton=/tmp/build/target/release/deps/liblewton-88f8f9003f6d055c.rlib --extern log=/tmp/build/target/release/deps/liblog-46e03c5f60f6a79a.rlib --extern md5=/tmp/build/target/release/deps/libmd5-f566ec7c429113e1.rlib --extern metaflac=/tmp/build/target/release/deps/libmetaflac-64ee0e89cc4c2e97.rlib --extern mount=/tmp/build/target/release/deps/libmount-25e34f2957ebcc0d.rlib --extern mp3_duration=/tmp/build/target/release/deps/libmp3_duration-64cb1462bedf8088.rlib --extern params=/tmp/build/target/release/deps/libparams-8361403760b3498c.rlib --extern rand=/tmp/build/target/release/deps/librand-d58f405cdc7fcadd.rlib --extern regex=/tmp/build/target/release/deps/libregex-4cdf3eade6d6ea6a.rlib --extern reqwest=/tmp/build/target/release/deps/libreqwest-b483617bf6f38548.rlib --extern ring=/tmp/build/target/release/deps/libring-5d2255a8475268a6.rlib --extern router=/tmp/build/target/release/deps/librouter-29161bc5edc95ef1.rlib --extern rusqlite=/tmp/build/target/release/deps/librusqlite-fa1832c36447efdd.rlib --extern crypto=/tmp/build/target/release/deps/libcrypto-465ccafd4d97cc81.rlib --extern rustfm_scrobble=/tmp/build/target/release/deps/librustfm_scrobble-99a988e62604b50f.rlib --extern secure_session=/tmp/build/target/release/deps/libsecure_session-06558b4f29a804ec.rlib --extern serde=/tmp/build/target/release/deps/libserde-92e8884b3e1912fc.rlib --extern serde_xml_rs=/tmp/build/target/release/deps/libserde_xml_rs-b2c07aaf61ebe3f1.rlib --extern serde_derive=/tmp/build/target/release/deps/libserde_derive-be41198b78060a2b.so --extern serde_json=/tmp/build/target/release/deps/libserde_json-7f3a8f5b832a6cd4.rlib --extern simplelog=/tmp/build/target/release/deps/libsimplelog-e10632351e261078.rlib --extern staticfile=/tmp/build/target/release/deps/libstaticfile-0be2e85c028f9ad1.rlib --extern toml=/tmp/build/target/release/deps/libtoml-c73b22b85030a241.rlib --extern typemap=/tmp/build/target/release/deps/libtypemap-50d04dfef9490b5b.rlib --extern unix_daemonize=/tmp/build/target/release/deps/libunix_daemonize-96c75dc5dd78bbf1.rlib --extern url=/tmp/build/target/release/deps/liburl-b2af889dc144475c.rlib -L native=/tmp/build/target/release/build/libsqlite3-sys-5c736dee1d004455/out -L native=/tmp/build/target/release/build/backtrace-sys-cb2dae85b99abfe3/out -L native=/tmp/build/target/release/build/miniz-sys-41e2d529a6d3bfc9/out -L native=/tmp/build/target/release/build/ring-8ebddf3f9393cfbd/out -L native=/tmp/build/target/release/build/rust-crypto-17f02c822602d0e7/out` (exit code: 1)

@agersant
Copy link
Owner

This one is a real issue, thank you for finding it! I did not catch it on my Raspberry Pi because I built from master rather than using the release tarball.

Will fix tonight and update the tarball for the v0.8.0 release.

@agersant
Copy link
Owner

I just updated the tarball in the v0.8.0 release. Can you please re-download and confirm it works for you?

Thank you!

@ogarcia
Copy link
Author

ogarcia commented Oct 27, 2018

Yes, now it works. But gives a lot of warnings.
Polaris_warnings.txt

@agersant
Copy link
Owner

Thank you for confirming. These warnings are expected and harmless for now, they will go away when diesel (one of Polaris' dependencies) releases a new version with their fix. They are tracking the issue here: diesel-rs/diesel#1785

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants