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

ARM build fails on stable 1.5 #4

Closed
MagaTailor opened this issue Dec 22, 2015 · 6 comments
Closed

ARM build fails on stable 1.5 #4

MagaTailor opened this issue Dec 22, 2015 · 6 comments

Comments

@MagaTailor
Copy link

Using stable rust 1.5 it's the usual:

Compiling filetime v0.1.8
/home/odroid/.cargo-1.5/registry/src/github.com-48ad6e4054423464/filetime-0.1.8/src/lib.rs:222:19: 222:29 error: mismatched types:
 expected `*const u8`,
    found `*const i8`
(expected u8,
    found i8) [E0308]
/home/odroid/.cargo-1.5/registry/src/github.com-48ad6e4054423464/filetime-0.1.8/src/lib.rs:222         if utimes(p.as_ptr(), times.as_ptr()) == 0 {
                                                                                                                 ^~~~~~~~~~
/home/odroid/.cargo-1.5/registry/src/github.com-48ad6e4054423464/filetime-0.1.8/src/lib.rs:222:19: 222
@MagaTailor
Copy link
Author

Same for git2-0.3.3 and curl-0.2.14

In other words, cargo doesn't build on stable 1.5 due to those broken crates.

EDIT: at least nightly 1.7 seems to be compatible

@MagaTailor MagaTailor changed the title ARM build fails ARM build fails on stable 1.5 Dec 22, 2015
@SimonSapin
Copy link

Does it build on 1.5 when changing the libc dependency to 0.1?

@SimonSapin
Copy link

@alexcrichton Could a build script conditionally decide add dependencies? (Or in this case, change the dependency version based on rustc version.)

@alexcrichton
Copy link
Owner

Ah for now I'll just add some casts, thanks for the report!

@MagaTailor
Copy link
Author

Yeah, that particular cast originally allowed me to find out about the other two crates. What about those?

@alexcrichton
Copy link
Owner

Yeah I'm working on those as well

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