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

Not sure what this error is about #18

Closed
thisiswei opened this issue Feb 22, 2015 · 8 comments
Closed

Not sure what this error is about #18

thisiswei opened this issue Feb 22, 2015 · 8 comments

Comments

@thisiswei
Copy link

Downloading natord v1.0.7
 Downloading regex v0.1.15
 Downloading git2 v0.1.20
 Downloading pkg-config v0.1.7
 Downloading libssh2-sys v0.1.8
 Downloading matches v0.1.2
 Downloading openssl-sys v0.4.3
 Downloading datetime v0.1.4
 Downloading pkg-config v0.2.2
 Downloading getopts v0.2.4
 Downloading libgit2-sys v0.1.14
 Downloading number_prefix v0.2.3
 Downloading ansi_term v0.5.0
 Downloading pad v0.1.2
 Downloading regex_macros v0.1.8
 Downloading log v0.2.4
 Downloading locale v0.1.3
 Downloading users v0.2.3
 Downloading rustc-serialize v0.2.15
 Downloading gcc v0.2.1
 Downloading libz-sys v0.1.0
   Compiling pad v0.1.2
   Compiling log v0.2.4
   Compiling bitflags v0.1.1
   Compiling ansi_term v0.5.0
   Compiling natord v1.0.7
   Compiling number_prefix v0.2.3
   Compiling pkg-config v0.1.7
   Compiling rustc-serialize v0.2.15
   Compiling regex v0.1.15
/Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-0.1.15/src/re.rs:582:58: 582:70 error: wrong number of type arguments: expected 2, found 1 [E0243]
/Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-0.1.15/src/re.rs:582     fn reg_replace<'a>(&'a mut self, caps: &Captures) -> Cow<'a, str>;
                                                                                                                                               ^~~~~~~~~~~~
   Compiling libc v0.1.2
   Compiling pkg-config v0.2.2
/Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.15/src/collection_impls.rs:17:24: 17:34 error: unresolved import `std::collections::LinkedList`. There is no `LinkedList` in `std::collections`
/Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.15/src/collection_impls.rs:17 use std::collections::{LinkedList, VecDeque, BTreeMap, BTreeSet, HashMap, HashSet, VecMap};
                                                                                                                                    ^~~~~~~~~~
/Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.15/src/collection_impls.rs:17:36: 17:44 error: unresolved import `std::collections::VecDeque`. There is no `VecDeque` in `std::collections`
/Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.15/src/collection_impls.rs:17 use std::collections::{LinkedList, VecDeque, BTreeMap, BTreeSet, HashMap, HashSet, VecMap};
                                                                                                                                                ^~~~~~~~
error: aborting due to 2 previous errors
   Compiling matches v0.1.2
   Compiling gcc v0.2.1
   Compiling locale v0.1.3
   Compiling getopts v0.2.4
Build failed, waiting for other jobs to finish...
Could not compile `regex`.

To learn more, run the command again with --verbose.
(air)exa(master)$ cargo build --no-default-features
   Compiling regex v0.1.15
   Compiling users v0.2.3
/Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-0.1.15/src/re.rs:582:58: 582:70 error: wrong number of type arguments: expected 2, found 1 [E0243]
/Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-0.1.15/src/re.rs:582     fn reg_replace<'a>(&'a mut self, caps: &Captures) -> Cow<'a, str>;
                                                                                                                                               ^~~~~~~~~~~~
Build failed, waiting for other jobs to finish...
Could not compile `regex`.

To learn more, run the command again with --verbose.
(air)exa(master)$ v .
@nwin
Copy link
Contributor

nwin commented Feb 22, 2015

Update rustc or do cargo update

@thisiswei
Copy link
Author

yo @nwin

exa(master)$ cargo update
    Updating registry `https://github.com/rust-lang/crates.io-index`
exa(master)$ cargo build --verbose
       Fresh pkg-config v0.1.7
       Fresh pad v0.1.2
       Fresh number_prefix v0.2.3
       Fresh matches v0.1.2
       Fresh bitflags v0.1.1
       Fresh locale v0.1.3
       Fresh gcc v0.2.1
       Fresh libc v0.1.2
       Fresh ansi_term v0.5.0
       Fresh log v0.2.4
       Fresh natord v1.0.7
   Compiling rustc-serialize v0.2.15
     Running `rustc /Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.15/src/lib.rs --crate-name rustc-serialize --crate-type lib -g -C metadata=ebc743271f9255aa -C extra-filename=-ebc743271f9255aa --out-dir /private/tmp/exa/target/deps --emit=dep-info,link -L dependency=/private/tmp/exa/target/deps -L dependency=/private/tmp/exa/target/deps -Awarnings`
   Compiling regex v0.1.15
     Running `rustc /Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-0.1.15/src/lib.rs --crate-name regex --crate-type lib -g -C metadata=2796c106c9344244 -C extra-filename=-2796c106c9344244 --out-dir /private/tmp/exa/target/deps --emit=dep-info,link -L dependency=/private/tmp/exa/target/deps -L dependency=/private/tmp/exa/target/deps -Awarnings`
       Fresh pkg-config v0.2.2
       Fresh users v0.2.3
       Fresh getopts v0.2.4
       Fresh libz-sys v0.1.0
   Compiling libssh2-sys v0.1.8
     Running `/private/tmp/exa/target/build/libssh2-sys-207fdfe7cc83e73b/build-script-build`
   Compiling openssl-sys v0.4.3
     Running `rustc /Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.4.3/src/lib.rs --crate-name openssl-sys --crate-type lib -g -C metadata=26edf94d95ec3590 -C extra-filename=-26edf94d95ec3590 --out-dir /private/tmp/exa/target/deps --emit=dep-info,link -L dependency=/private/tmp/exa/target/deps -L dependency=/private/tmp/exa/target/deps -Awarnings -L native=/usr/lib -L native=/private/tmp/exa/target/build/openssl-sys-26edf94d95ec3590/out -l ssl -l crypto -l z -l static=old_openssl_shim`
/Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-0.1.15/src/re.rs:582:58: 582:70 error: wrong number of type arguments: expected 2, found 1 [E0243]
/Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-0.1.15/src/re.rs:582     fn reg_replace<'a>(&'a mut self, caps: &Captures) -> Cow<'a, str>;
                                                                                                                                               ^~~~~~~~~~~~
Build failed, waiting for other jobs to finish...
/Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.15/src/collection_impls.rs:17:24: 17:34 error: unresolved import `std::collections::LinkedList`. There is no `LinkedList` in `std::collections`
/Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.15/src/collection_impls.rs:17 use std::collections::{LinkedList, VecDeque, BTreeMap, BTreeSet, HashMap, HashSet, VecMap};
                                                                                                                                    ^~~~~~~~~~
/Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.15/src/collection_impls.rs:17:36: 17:44 error: unresolved import `std::collections::VecDeque`. There is no `VecDeque` in `std::collections`
/Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.15/src/collection_impls.rs:17 use std::collections::{LinkedList, VecDeque, BTreeMap, BTreeSet, HashMap, HashSet, VecMap};
                                                                                                                                                ^~~~~~~~
error: aborting due to 2 previous errors
Could not compile `regex`.

Caused by:
  Process didn't exit successfully: `rustc /Users/yo1/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-0.1.15/src/lib.rs --crate-name regex --crate-type lib -g -C metadata=2796c106c9344244 -C extra-filename=-2796c106c9344244 --out-dir /private/tmp/exa/target/deps --emit=dep-info,link -L dependency=/private/tmp/exa/target/deps -L dependency=/private/tmp/exa/target/deps -Awarnings` (status=101)
exa(master)$

@ogham
Copy link
Owner

ogham commented Feb 22, 2015

Could you please paste your rustc --version? I'm using 2b01a37ec 2015-02-21.

@thisiswei
Copy link
Author

(air)air(master*)$ rustc --version
rustc 1.0.0-nightly (b63cee4a1 2015-02-14 17:01:11 +0000)

@thisiswei
Copy link
Author

I will update rust and cargo.

@ogham
Copy link
Owner

ogham commented Feb 23, 2015

Any luck?

@thisiswei
Copy link
Author

Yup, updated rustc solved the problem. 👍 @ogham

@ogham
Copy link
Owner

ogham commented Feb 23, 2015

👍

@ogham ogham closed this as completed Feb 23, 2015
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