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

Can't build with 0.10 on OSX 10.9 #38

Closed
julienXX opened this issue Jun 24, 2014 · 6 comments
Closed

Can't build with 0.10 on OSX 10.9 #38

julienXX opened this issue Jun 24, 2014 · 6 comments

Comments

@julienXX
Copy link

Hi,
I'm having trouble building Cargo:

λ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C libs/hammer.rs
rustc src/hammer.rs --out-dir target --crate-type=rlib
src/usage.rs:7:12: 7:21 error: unknown `deriving` trait: `PartialEq`
src/usage.rs:7 #[deriving(PartialEq, Clone, Show)]
                          ^~~~~~~~~
src/hammer.rs:85:18: 85:27 error: unknown `deriving` trait: `PartialEq`
src/hammer.rs:85 #[deriving(Show, PartialEq)]
                                  ^~~~~~~~~
src/hammer.rs:125:18: 125:27 error: unknown `deriving` trait: `PartialEq`
src/hammer.rs:125 #[deriving(Show, PartialEq)]
                                   ^~~~~~~~~
src/hammer.rs:131:18: 131:27 error: unknown `deriving` trait: `PartialEq`
src/hammer.rs:131 #[deriving(Show, PartialEq)]
                                   ^~~~~~~~~
src/hammer.rs:196:30: 196:40 error: unknown `deriving` trait: `PartialOrd`
src/hammer.rs:196 #[deriving(Clone, PartialEq, PartialOrd, Hash, Show)]
                                               ^~~~~~~~~~
src/hammer.rs:196:19: 196:28 error: unknown `deriving` trait: `PartialEq`
src/hammer.rs:196 #[deriving(Clone, PartialEq, PartialOrd, Hash, Show)]
                                    ^~~~~~~~~
error: aborting due to 6 previous errors
make[1]: *** [target/libhammer-e1cb8171-0.0.rlib] Error 101
make: *** [libs/hammer.rs/target/libhammer-e1cb8171-0.0.rlib] Error 2

Rust is version 0.10 installed with home-brew on OSX 10.9.

@bvssvni
Copy link

bvssvni commented Jun 24, 2014

Most people are keeping their libraries in track with Rust master. You should probably try downloading Rust nightly. http://www.rust-lang.org/

@julienXX
Copy link
Author

@bvssvni: thanks, it compile on nightly.

@hsribei
Copy link

hsribei commented Jul 3, 2014

Getting this on OSX 10.9.3:

$ make
/Library/Developer/CommandLineTools/usr/bin/make -C libs/hammer.rs
rustc src/hammer.rs --out-dir target --crate-type=rlib
src/hammer.rs:175:44: 175:59 error: cannot index a value of type `&str`
src/hammer.rs:175                 source.iter().position(|s| s.as_slice()[0] == '-' as u8 && s.as_slice()[1] == c as u8)
                                                             ^~~~~~~~~~~~~~~
src/hammer.rs:175:76: 175:91 error: cannot index a value of type `&str`
src/hammer.rs:175                 source.iter().position(|s| s.as_slice()[0] == '-' as u8 && s.as_slice()[1] == c as u8)
                                                                                             ^~~~~~~~~~~~~~~
error: aborting due to 2 previous errors
make[1]: *** [target/libhammer-e1cb8171-0.0.rlib] Error 101
make: *** [libs/hammer.rs/target/libhammer-e1cb8171-0.0.rlib] Error 2

Rust version:
rustc 0.11.0-pre-nightly (67776ba3dab24a3e281931da437d30ccfc3b04c1 2014-07-03 01:06:38 +0000)

Cargo sha1: d3e28cfe5dada42235c6af5db670da51792fa8f6

@steveklabnik
Copy link
Member

@obvio171 yes, this is a change that landed yesterday.

@steveklabnik
Copy link
Member

I suggest opening a new bug for it though

@hsribei
Copy link

hsribei commented Jul 3, 2014

Ok, thanks!

ehuss pushed a commit to ehuss/cargo that referenced this issue Nov 19, 2023
38: Fix tests and instructions r=killercup a=oli-obk
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

4 participants