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

diesel_cli installation is crashing #212

Closed
defyrlt opened this issue Feb 13, 2016 · 3 comments
Closed

diesel_cli installation is crashing #212

defyrlt opened this issue Feb 13, 2016 · 3 comments

Comments

@defyrlt
Copy link

defyrlt commented Feb 13, 2016

I've tried to follow the getting started guide and it's crashing on the diesel_cli installation step:

[user@localhost diesel_demo]$ cargo install diesel_cli
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling diesel v0.5.0
/home/user/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.5.0/src/sqlite/connection/mod.rs:20:5: 20:18 error: import `libc` conflicts with imported crate in this module (maybe you meant `use libc::*`?) [E0254]
/home/user/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.5.0/src/sqlite/connection/mod.rs:20 use self::raw::*;
                                                                                                            ^~~~~~~~~~~~~
/home/user/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.5.0/src/sqlite/connection/mod.rs:20:5: 20:18 error: import `ffi` conflicts with imported crate in this module (maybe you meant `use ffi::*`?) [E0254]
/home/user/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.5.0/src/sqlite/connection/mod.rs:20 use self::raw::*;
                                                                                                            ^~~~~~~~~~~~~
/home/user/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.5.0/src/sqlite/connection/mod.rs:22:5: 22:19 error: import `libc` conflicts with imported crate in this module (maybe you meant `use libc::*`?) [E0254]
/home/user/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.5.0/src/sqlite/connection/mod.rs:22 use self::stmt::*;
                                                                                                            ^~~~~~~~~~~~~~
/home/user/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.5.0/src/sqlite/connection/mod.rs:22:5: 22:19 error: import `ffi` conflicts with imported crate in this module (maybe you meant `use ffi::*`?) [E0254]
/home/user/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.5.0/src/sqlite/connection/mod.rs:22 use self::stmt::*;
                                                                                                            ^~~~~~~~~~~~~~
error: aborting due to 4 previous errors
failed to compile `diesel_cli v0.5.1`, intermediate artifacts can be found at `/home/user/projs/diesel_demo/target-install`

Caused by:
  Could not compile `diesel`.

rustc:

rustc 1.8.0-nightly (ce4b75f25 2016-02-12)
binary: rustc
commit-hash: ce4b75f25662cb9facafc4bef368410a2979b936
commit-date: 2016-02-12
host: x86_64-unknown-linux-gnu
release: 1.8.0-nightly

I'm having the same error when I'm trying to compile diesel_cli:

[user@localhost diesel_cli]$ cargo build
   Compiling diesel v0.5.0 (file:///home/user/projs/diesel/diesel)
/home/user/projs/diesel/diesel/src/sqlite/connection/mod.rs:20:5: 20:18 error: import `ffi` conflicts with imported crate in this module (maybe you meant `use ffi::*`?) [E0254]
/home/user/projs/diesel/diesel/src/sqlite/connection/mod.rs:20 use self::raw::*;
                                                                   ^~~~~~~~~~~~~
/home/user/projs/diesel/diesel/src/sqlite/connection/mod.rs:20:5: 20:18 error: import `libc` conflicts with imported crate in this module (maybe you meant `use libc::*`?) [E0254]
/home/user/projs/diesel/diesel/src/sqlite/connection/mod.rs:20 use self::raw::*;
                                                                   ^~~~~~~~~~~~~
/home/user/projs/diesel/diesel/src/sqlite/connection/mod.rs:22:5: 22:19 error: import `ffi` conflicts with imported crate in this module (maybe you meant `use ffi::*`?) [E0254]
/home/user/projs/diesel/diesel/src/sqlite/connection/mod.rs:22 use self::stmt::*;
                                                                   ^~~~~~~~~~~~~~
/home/user/projs/diesel/diesel/src/sqlite/connection/mod.rs:22:5: 22:19 error: import `libc` conflicts with imported crate in this module (maybe you meant `use libc::*`?) [E0254]
/home/user/projs/diesel/diesel/src/sqlite/connection/mod.rs:22 use self::stmt::*;
                                                                   ^~~~~~~~~~~~~~
error: aborting due to 4 previous errors
Could not compile `diesel`.

To learn more, run the command again with --verbose.
@mcasper
Copy link
Contributor

mcasper commented Feb 13, 2016

It looks like our build is failing on the most recent nightly as well, I'll look into it. In the meantime, it should work on nightly-2016-01-23 or older, or beta/stable, so you could switch to one of those for now

@sgrif
Copy link
Member

sgrif commented Feb 14, 2016

Oh yay, we're failing on nightly for obscure reasons again! >_>

Yeah, as @mcasper mentioned, try switching to an older nightly. Assuming you're using multirust, run

multirust update nightly-2016-02-09
multirust default nightly-2016-02-09

I'll get us working on the latest nightly soon.

@sgrif sgrif closed this as completed Feb 14, 2016
@sgrif
Copy link
Member

sgrif commented Feb 14, 2016

Looks like this was caused by rust-lang/rust#31487. I'll push up a fix as soon as I can (we need to synchronize dependencies for syntex versions), but I won't be doing a release for this change.

I've updated the website to include a note about this. Thank you for bringing it to our attention, @defyrlt

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