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

Won't build on OSX 10.10? #41

Closed
ctgreybeard opened this issue Feb 28, 2015 · 8 comments
Closed

Won't build on OSX 10.10? #41

ctgreybeard opened this issue Feb 28, 2015 · 8 comments
Assignees

Comments

@ctgreybeard
Copy link

I've installed the prereq's with fink plus the nightly of rust but exa does not build for me:

--> cargo build --no-default-features
   Compiling exa v0.1.0 (file:///Volumes/DroboM1/Projects/exa)
src/file.rs:454:62: 454:76 error: mismatched types:
 expected `std::path::PathBuf`,
    found `std::old_path::posix::Path`
(expected struct `std::path::PathBuf`,
    found struct `std::old_path::posix::Path`) [E0308]
src/file.rs:454             Some(d) => d.git_status(&current_dir().unwrap_or(Path::new(".")).join(&self.path),
                                                                             ^~~~~~~~~~~~~~
src/file.rs:454:37: 454:94 error: mismatched types:
 expected `&std::old_path::posix::Path`,
    found `&std::path::PathBuf`
(expected struct `std::old_path::posix::Path`,
    found struct `std::path::PathBuf`) [E0308]
src/file.rs:454             Some(d) => d.git_status(&current_dir().unwrap_or(Path::new(".")).join(&self.path),
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to 2 previous errors
Could not compile `exa`.

To learn more, run the command again with --verbose.
@ogham ogham self-assigned this Mar 1, 2015
@ogham ogham closed this as completed in 027ca60 Mar 1, 2015
@ogham
Copy link
Owner

ogham commented Mar 1, 2015

There was a problem with current_dir using the new Path library, but I'm still using the old one everywhere (and will have to for a little while longer).

@ctgreybeard
Copy link
Author

I see a similar problem with both libgit2-sys and libssh2-sys ...

@ogham
Copy link
Owner

ogham commented Mar 1, 2015

Yeah, I'm getting the following error when I try to build it:

native library `openssl` is being linked to by more than one package, and can only be linked to by one package

  openssl-sys v0.5.0
  openssl-sys v0.4.3

Unfortunately I think I just have to wait for the dependencies to be updated.

@ctgreybeard
Copy link
Author

This is what I am getting:

/Users/dad/.cargo/registry/src/github.com-1ecc6299db9ec823/libssh2-sys-0.1.8/build.rs:130:19: 130:27 error: type `&std::path::PathBuf` does not implement any method in scope named `exists`
/Users/dad/.cargo/registry/src/github.com-1ecc6299db9ec823/libssh2-sys-0.1.8/build.rs:130     }).find(|p| p.exists())
                                                                                                            ^~~~~~~~
/Users/dad/.cargo/registry/src/github.com-1ecc6299db9ec823/libssh2-sys-0.1.8/build.rs:130:27: 130:27 help: methods from traits can only be called if the trait is in scope; the following trait is implemented but not in scope, perhaps add a `use` for it:
/Users/dad/.cargo/registry/src/github.com-1ecc6299db9ec823/libssh2-sys-0.1.8/build.rs:130:27: 130:27 help: candidate #1: use `std::fs::PathExt`
/Users/dad/.cargo/registry/src/github.com-1ecc6299db9ec823/libssh2-sys-0.1.8/build.rs:128:5: 130:28 error: mismatched types:
 expected `core::option::Option<std::old_path::posix::Path>`,
    found `core::option::Option<std::path::PathBuf>`
(expected struct `std::old_path::posix::Path`,
    found struct `std::path::PathBuf`) [E0308]
/Users/dad/.cargo/registry/src/github.com-1ecc6299db9ec823/libssh2-sys-0.1.8/build.rs:128     env::split_paths(&env::var("PATH").unwrap()).map(|p| {
/Users/dad/.cargo/registry/src/github.com-1ecc6299db9ec823/libssh2-sys-0.1.8/build.rs:129         p.join(&cmd)
/Users/dad/.cargo/registry/src/github.com-1ecc6299db9ec823/libssh2-sys-0.1.8/build.rs:130     }).find(|p| p.exists())
error: aborting due to 2 previous errors

But if it's coming from upstream then I'll just keep trying. That would be in the rust nightlies, right?

@ogham
Copy link
Owner

ogham commented Mar 1, 2015

Yeah, the nightlies change the language under the feet of all the libraries. cargo update should update them.

@ctgreybeard
Copy link
Author

Ah, yes. Now I'm getting the same error about openssl. I'll keep trying until they get everything sync'd up.

@ogham
Copy link
Owner

ogham commented Mar 2, 2015

Try now!

@ctgreybeard
Copy link
Author

Success! Thanks.

sbatial pushed a commit to syphar/zetta that referenced this issue Jul 30, 2023
(exa PR) 1085: Merge pull request ogham#41 from cafkafk/pr-1085
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

2 participants