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

exa failing to build on macOS #925

Closed
mikemadden42 opened this issue Aug 7, 2021 · 1 comment · Fixed by #920
Closed

exa failing to build on macOS #925

mikemadden42 opened this issue Aug 7, 2021 · 1 comment · Fixed by #920

Comments

@mikemadden42
Copy link

I'm having issues getting exa to build out of the master branch.

  • The exact exa commit you are building (git rev-parse --short HEAD)
$ git rev-parse --short HEAD
dc5c42a
  • The version of rustc you are compiling it with (rustc --version)
$ rustc --version
rustc 1.54.0 (a178d0322 2021-07-26)
  • Your operating system and hardware platform
$ sw_vers 
ProductName:	macOS
ProductVersion:	11.5.1
BuildVersion:	20G80
  • The Rust build target (the exact output of rustc --print cfg)
$ rustc --print cfg
debug_assertions
target_arch="x86_64"
target_endian="little"
target_env=""
target_family="unix"
target_feature="fxsr"
target_feature="sse"
target_feature="sse2"
target_feature="sse3"
target_feature="ssse3"
target_os="macos"
target_pointer_width="64"
target_vendor="apple"
unix

If you are seeing compilation errors, please include the output of the build process.

   Compiling cc v1.0.67
   Compiling zoneinfo_compiled v0.5.1
   Compiling idna v0.2.3
   Compiling exa v0.10.1 (/Users/hulk/rust2/exa)
   Compiling libz-sys v1.1.2
   Compiling libgit2-sys v0.12.19+1.1.0
   Compiling url v2.2.1
   Compiling git2 v0.13.18
error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements
  --> /Users/hulk/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/git2-0.13.18/src/attr.rs:74:15
   |
74 |         match (self, other) {
   |               ^^^^^^^^^^^^^
   |
note: first, the lifetime cannot outlive the anonymous lifetime defined on the method body at 73:26...
  --> /Users/hulk/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/git2-0.13.18/src/attr.rs:73:26
   |
73 |     fn eq(&self, other: &AttrValue<'_>) -> bool {
   |                          ^^^^^^^^^^^^^
note: ...so that the types are compatible
  --> /Users/hulk/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/git2-0.13.18/src/attr.rs:74:15
   |
74 |         match (self, other) {
   |               ^^^^^^^^^^^^^
   = note: expected `(&AttrValue<'_>, &AttrValue<'_>)`
              found `(&AttrValue<'_>, &AttrValue<'_>)`
note: but, the lifetime must be valid for the lifetime `'_` as defined on the impl at 72:30...
  --> /Users/hulk/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/git2-0.13.18/src/attr.rs:72:30
   |
72 | impl PartialEq for AttrValue<'_> {
   |                              ^^
note: ...so that the types are compatible
  --> /Users/hulk/.cargo/registry/src/jackfan.us.kg-1ecc6299db9ec823/git2-0.13.18/src/attr.rs:79:16
   |
79 |             | (Self::Bytes(bytes), AttrValue::String(string)) => string.as_bytes() == *bytes,
   |                ^^^^^^^^^^^^^^^^^^
   = note: expected `AttrValue<'_>`
              found `AttrValue<'_>`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0495`.
error: could not compile `git2`

To learn more, run the command again with --verbose.

@j-tai
Copy link
Contributor

j-tai commented Aug 7, 2021

Fixed by #920

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

Successfully merging a pull request may close this issue.

2 participants