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

compilation failure #24

Closed
kazuf3 opened this issue Dec 9, 2018 · 9 comments
Closed

compilation failure #24

kazuf3 opened this issue Dec 9, 2018 · 9 comments

Comments

@kazuf3
Copy link

kazuf3 commented Dec 9, 2018

==> Making package: vivid 0.4.0-1 (Sun 09 Dec 2018 07:39:44 PM GMT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
   Compiling libc v0.2.44
   Compiling cc v1.0.25
   Compiling unicode-width v0.1.5
   Compiling bitflags v1.0.4
   Compiling strsim v0.7.0
   Compiling vec_map v0.8.1
   Compiling ansi_term v0.11.0
   Compiling linked-hash-map v0.5.1
   Compiling lazy_static v1.2.0
   Compiling yaml-rust v0.4.2
   Compiling term_size v0.3.1
   Compiling atty v0.2.11
   Compiling textwrap v0.10.0
   Compiling ansi_colours v1.0.1
   Compiling clap v2.32.0
   Compiling vivid v0.4.0 (file:///home/kazuhiro/.cache/yay/vivid/src/vivid-0.4.0)
error[E0658]: access to extern crates through prelude is experimental (see issue #44660)
  --> src/error.rs:25:29
   |
25 |     fn fmt(&self, fmt: &mut std::fmt::Formatter) -> result::Result<(), std::fmt::Error>
{
   |                             ^^^

error[E0658]: access to extern crates through prelude is experimental (see issue #44660)
  --> src/error.rs:25:72
   |
25 |     fn fmt(&self, fmt: &mut std::fmt::Formatter) -> result::Result<(), std::fmt::Error>
{
   |                                                                        ^^^

error[E0658]: access to extern crates through prelude is experimental (see issue #44660)
  --> src/error.rs:72:22
   |
72 | pub type Result<T> = std::result::Result<T, VividError>;
   |                      ^^^

error[E0658]: access to extern crates through prelude is experimental (see issue #44660)
  --> src/util.rs:17:17
   |
17 |     opt: Option<std::result::Result<T, E>>,
   |                 ^^^

error[E0658]: access to extern crates through prelude is experimental (see issue #44660)
  --> src/util.rs:18:6
   |
18 | ) -> std::result::Result<Option<T>, E> {
   |      ^^^

error: aborting due to 5 previous errors

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

To learn more, run the command again with --verbose.
==> ERROR: A failure occurred in build().
    Aborting...
Error making: vivid

rust-lang/rust#44660

This happens with both yay -S vivid and cargo install vivid .

@polyzen
Copy link

polyzen commented Dec 9, 2018

Are you using Rust 1.30.1 from the repos?

@sharkdp
Copy link
Owner

sharkdp commented Dec 9, 2018

I have recently updated vivid to Rust 2018 (>= Rust 1.31) in 099ff6b but completely forgot to update the README and .travis.yml (which currently shows a build failure, too), sorry about that. I'll update this soon.

Does having Rust 1.31 as a dependency cause any problems with packaging for Arch?

@polyzen
Copy link

polyzen commented Dec 9, 2018

Turns out our Rust maintainer is currently in the process of building the 1.31 package. \o/

@sharkdp
Copy link
Owner

sharkdp commented Dec 9, 2018

Ah, great!

If there is any problem, it's also easy to restore 1.30 compatibility.

@kazuf3 The latest vivid release should still work with 1.30.

@kazuf3
Copy link
Author

kazuf3 commented Dec 10, 2018

Thank you, I will try.

community/rust is 1.29, btw. I think in this case, do I have to first install rust-nightly-bin first?

@kazuf3
Copy link
Author

kazuf3 commented Dec 10, 2018

ah, rustup
I will try it now :)

@polyzen
Copy link

polyzen commented Dec 10, 2018

@kazuf3
Copy link
Author

kazuf3 commented Dec 10, 2018

oh, got Rust 1.31 via rustup (and removed repo's rust already). It now works.

@kazuf3
Copy link
Author

kazuf3 commented Dec 10, 2018

Thank you, @polyzen , @sharkdp !!

@kazuf3 kazuf3 closed this as completed Dec 10, 2018
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

3 participants