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

failed to compile `diesel_cli v0.7.1`, intermediate artifacts can be found at `/home/user/target-install` #403

Closed
metmirr opened this Issue Aug 14, 2016 · 12 comments

Comments

Projects
None yet
2 participants
@metmirr

metmirr commented Aug 14, 2016

metin@metin-demir:~$ cargo install diesel_cli
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling diesel v0.7.1
   Compiling dotenv v0.8.0
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 error: source trait is inaccessible
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 note: module `belongs_to` is private
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 error: source trait is inaccessible
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 note: module `belongs_to` is private
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 error: source trait is inaccessible
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 note: module `belongs_to` is private
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 error: source trait is inaccessible
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 note: module `belongs_to` is private
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 error: source trait is inaccessible
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 note: module `belongs_to` is private
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 error: source trait is inaccessible
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 note: module `belongs_to` is private
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 error: source trait is inaccessible
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 note: module `belongs_to` is private
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 error: source trait is inaccessible
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 note: module `belongs_to` is private
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 error: source trait is inaccessible
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 note: module `belongs_to` is private
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 error: source trait is inaccessible
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 note: module `belongs_to` is private
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 error: source trait is inaccessible
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 note: module `belongs_to` is private
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 error: source trait is inaccessible
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 note: module `belongs_to` is private
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 error: source trait is inaccessible
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 note: module `belongs_to` is private
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 error: source trait is inaccessible
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 note: module `belongs_to` is private
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 error: source trait is inaccessible
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 note: module `belongs_to` is private
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 error: source trait is inaccessible
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290:22: 290:42 note: module `belongs_to` is private
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:290                     &self.0.foreign_key()
                                                                                                                ^~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs:301:1: 470:2 note: in this expansion of tuple_impls! (defined in .cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.7.1/src/types/impls/tuples.rs)
error: aborting due to 16 previous errors
failed to compile `diesel_cli v0.7.1`, intermediate artifacts can be found at `/home/metin/target-install`
@sgrif

This comment has been minimized.

Member

sgrif commented Aug 14, 2016

Can you please paste your full console output as well as the command you were trying to run?

@metmirr

This comment has been minimized.

metmirr commented Aug 14, 2016

By the way I don't have installed nightly rust. May it is cause the error?

@sgrif

This comment has been minimized.

Member

sgrif commented Aug 14, 2016

Nightly Rust shouldn't be required. What version are you using? (The output of rustc --version would help)

@metmirr

This comment has been minimized.

metmirr commented Aug 14, 2016

rustc 1.8.0 (db2939409 2016-04-11)

@sgrif

This comment has been minimized.

Member

sgrif commented Aug 14, 2016

Can you try with 1.9.0 or 1.10.0?

@sgrif

This comment has been minimized.

Member

sgrif commented Aug 14, 2016

(I can confirm that it does not compile with 1.8.0, but I do not know the minimum version it compiles with. My guess would be 1.9.0)

@metmirr

This comment has been minimized.

metmirr commented Aug 14, 2016

Updated 1.10, got following error:

error: linking with `cc` failed: exit code: 1
note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/tmp/cargo-install.IchmseIjqLSz/release/diesel.0.o" "-o" "/tmp/cargo-install.IchmseIjqLSz/release/diesel" "-Wl,--gc-sections" "-pie" "-Wl,-O1" "-nodefaultlibs" "-L" "/tmp/cargo-install.IchmseIjqLSz/release" "-L" "/tmp/cargo-install.IchmseIjqLSz/release/deps" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/usr/lib" "-L" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libclap-9bc84d3c3d1b047d.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libansi_term-3a668ea74b382988.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libvec_map-f8aa344cc08e9b03.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libdotenv-695bff8444756e3d.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libbitflags-e61ad67c3301e77d.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libdiesel-2d4d8ef254ad0303.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/liblibsqlite3_sys-755891849c290f5c.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libpq_sys-d9fc24829db90d4f.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libchrono-7342810e34d1c30d.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libtime-750bfdd52feafcb7.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libnum-262f3a136066b482.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libnum_iter-50df698bc905252c.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libbyteorder-f3f7821512ca2fd0.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libregex-a1c323daba09617d.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libthread_local-e5ce0d44bcaf00e6.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libutf8_ranges-5c6a6dacba3be7ce.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libaho_corasick-e528bf4fdf3954ff.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libmemchr-c555f740a543880f.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libthread_id-bcd46c79a620a618.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/liblibc-1bd8847afb79f283.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libnum_integer-52fdddf28cd8e924.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libnum_traits-ca71ec056d3f4118.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libregex_syntax-b24da02611351433.rlib" "/tmp/cargo-install.IchmseIjqLSz/release/deps/libstrsim-cb9b0c8013c1be6f.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e8edd0fd.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-e8edd0fd.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-e8edd0fd.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_unicode-e8edd0fd.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e8edd0fd.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/librand-e8edd0fd.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-e8edd0fd.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-e8edd0fd.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-e8edd0fd.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e8edd0fd.rlib" "-l" "sqlite3" "-l" "sqlite3" "-l" "sqlite3" "-l" "pq" "-l" "util" "-l" "dl" "-l" "pthread" "-l" "gcc_s" "-l" "pthread" "-l" "c" "-l" "m" "-l" "rt" "-l" "util" "-l" "compiler-rt"
note: /usr/bin/ld: cannot find -lsqlite3
/usr/bin/ld: cannot find -lsqlite3
/usr/bin/ld: cannot find -lsqlite3
collect2: error: ld returned 1 exit status

error: aborting due to previous error
error: failed to compile `diesel_cli v0.7.1`, intermediate artifacts can be found at `/tmp/cargo-install.IchmseIjqLSz`

@sgrif

This comment has been minimized.

Member

sgrif commented Aug 14, 2016

You need to either install sqlite3 on your system or install with --no-default-features --features "postgres"

@metmirr

This comment has been minimized.

metmirr commented Aug 14, 2016

I already have sqlite3

@sgrif

This comment has been minimized.

Member

sgrif commented Aug 14, 2016

-lsqlite failing is most likely an issue with your setup. Make sure that libsqlite3.so is either in a directory on your LIBRARY_PATH, in the directory specified by SQLITE3_LIB_DIR, or properly being discovered by pkg-config

@metmirr

This comment has been minimized.

metmirr commented Aug 14, 2016

It worked with --no-default-features --features "postgres"
Thank you for help.

@sgrif

This comment has been minimized.

Member

sgrif commented Aug 14, 2016

No problem. Glad I could help. The next release will have a more helpful error if you try to install it on an unsupported version of rustc. :)

@sgrif sgrif closed this Aug 14, 2016

weiznich added a commit to weiznich/diesel that referenced this issue Sep 7, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment