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

Crate no longer compiles on arm #18

Closed
MagaTailor opened this issue Nov 20, 2015 · 4 comments
Closed

Crate no longer compiles on arm #18

MagaTailor opened this issue Nov 20, 2015 · 4 comments

Comments

@MagaTailor
Copy link

Breakage caused by this.

 Compiling tempfile v1.1.1
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/tempfile-1.1.1/src/imp/unix.rs:23:20: 23:46 error: mismatched types:
 expected `*const i8`,
    found `*const u8`
(expected i8,
    found u8) [E0308]
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/tempfile-1.1.1/src/imp/unix.rs:23         libc::open(try!(cstr(&path)).as_ptr(), O_CLOEXEC | O_EXCL | O_RDWR | O_CREAT, 0o600)
                                                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/tempfile-1.1.1/src/imp/unix.rs:23:20: 23:46 help: run `rustc --explain E0308` to see a detailed explanation
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/tempfile-1.1.1/src/imp/unix.rs:35:20: 35:44 error: mismatched types:
 expected `*const i8`,
    found `*const u8`
(expected i8,
    found u8) [E0308]
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/tempfile-1.1.1/src/imp/unix.rs:35         libc::open(try!(cstr(dir)).as_ptr(), O_CLOEXEC | O_EXCL | O_TMPFILE | O_RDWR, 0o600)
                                                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/tempfile-1.1.1/src/imp/unix.rs:35:20: 35:44 help: run `rustc --explain E0308` to see a detailed explanation
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/tempfile-1.1.1/src/imp/unix.rs:95:24: 95:54 error: mismatched types:
 expected `*const i8`,
    found `*const u8`
(expected i8,
    found u8) [E0308]
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/tempfile-1.1.1/src/imp/unix.rs:95             libc::open(try!(cstr(&tmp_path)).as_ptr(), O_CLOEXEC | O_EXCL | O_RDWR | O_CREAT, 0o600)
                                                                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/tempfile-1.1.1/src/imp/unix.rs:95:24: 95:54 help: run `rustc --explain E0308` to see a detailed explanation
error: aborting due to 3 previous errors
Stebalien added a commit that referenced this issue Nov 21, 2015
Because libc >= 2.0 and std <= 1.5 disagree.

fixes: #18
@Stebalien
Copy link
Owner

Well, that's mildly infuriating. Does the fix-arm branch work?

@MagaTailor
Copy link
Author

The fix works, thank you. And yes it's mighty infuriating!

@Stebalien
Copy link
Owner

Fixed in e7e800a

@Stebalien
Copy link
Owner

Also released 1.1.3

KodrAus pushed a commit to KodrAus/tempfile that referenced this issue Aug 11, 2017
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