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

Rust 1.6 arm incompatibility #3

Closed
MagaTailor opened this issue Dec 3, 2015 · 2 comments
Closed

Rust 1.6 arm incompatibility #3

MagaTailor opened this issue Dec 3, 2015 · 2 comments
Labels

Comments

@MagaTailor
Copy link

There's been a wee breakage causing lots of woe:

Compiling rusqlite v0.4.0
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/types.rs:110:60: 110:74 error: mismatched types:
 expected `*const i8`,
    found `*const u8`
(expected i8,
    found u8) [E0308]
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/types.rs:110             Ok(c_str) => ffi::sqlite3_bind_text(stmt, col, c_str.as_ptr(), length as c_int,
                                                                                                                                                        ^~~~~~~~~~~~~~
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/types.rs:110:60: 110:74 help: run `rustc --explain E0308` to see a detailed explanation
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/types.rs:204:42: 204:65 error: mismatched types:
 expected `*const u8`,
    found `*const i8`
(expected u8,
    found i8) [E0308]
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/types.rs:204             let c_slice = CStr::from_ptr(c_text as *const c_char).to_bytes();
                                                                                                                                      ^~~~~~~~~~~~~~~~~~~~~~~
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/types.rs:204:42: 204:65 help: run `rustc --explain E0308` to see a detailed explanation
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:88:34: 88:40 error: mismatched types:
 expected `*const u8`,
    found `*const i8`
(expected u8,
    found i8) [E0308]
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:88     let c_slice = CStr::from_ptr(errmsg).to_bytes();
                                                                                                                           ^~~~~~
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:88:34: 88:40 help: run `rustc --explain E0308` to see a detailed explanation
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:486:42: 486:57 error: mismatched types:
 expected `*const i8`,
    found `*const u8`
(expected i8,
    found u8) [E0308]
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:486             let r = ffi::sqlite3_open_v2(c_path.as_ptr(), &mut db, flags.bits(), ptr::null());
                                                                                                                                    ^~~~~~~~~~~~~~~
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:486:42: 486:57 help: run `rustc --explain E0308` to see a detailed explanation
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:543:50: 543:64 error: mismatched types:
 expected `*const i8`,
    found `*const u8`
(expected i8,
    found u8) [E0308]
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:543             let r = ffi::sqlite3_exec(self.db(), c_sql.as_ptr(), None, ptr::null_mut(), &mut errmsg);
                                                                                                                                            ^~~~~~~~~~~~~~
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:543:50: 543:64 help: run `rustc --explain E0308` to see a detailed explanation
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:588:48: 588:62 error: mismatched types:
 expected `*const i8`,
    found `*const u8`
(expected i8,
    found u8) [E0308]
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:588             ffi::sqlite3_prepare_v2(self.db(), c_sql.as_ptr(), len_with_nul, &mut c_stmt,
                                                                                                                                          ^~~~~~~~~~~~~~
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:588:48: 588:62 help: run `rustc --explain E0308` to see a detailed explanation
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:628:32: 628:70 error: mismatched types:
 expected `*const u8`,
    found `*const i8`
(expected u8,
    found i8) [E0308]
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:628                 CStr::from_ptr(ffi::sqlite3_column_name(self.stmt, i))
                                                                                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:628:32: 628:70 help: run `rustc --explain E0308` to see a detailed explanation
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:780:42: 780:69 error: mismatched types:
 expected `*const u8`,
    found `*const i8`
(expected u8,
    found i8) [E0308]
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:780             let c_slice = CStr::from_ptr(ffi::sqlite3_sql(self.stmt)).to_bytes();
                                                                                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/odroid/.cargo/registry/src/github.com-48ad6e4054423464/rusqlite-0.4.0/src/lib.rs:780:42: 780:69 help: run `rustc --explain E0308` to see a detailed explanation
error: aborting due to 8 previous errors
@ivanceras ivanceras added the bug label Dec 3, 2015
@ivanceras
Copy link
Owner

Unfortunately I don't have an arm machine to test this out. I am certain that the code that need to be fixed is in https://github.com/jgallagher/rusqlite.

@MagaTailor
Copy link
Author

Oh, sorry, I was tired and seeing r2d2 everywhere :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants