brunoczim / fslock

File locking for Rust.
MIT License
40 stars 11 forks source link

Not compiling on armv7 #1

Closed rakshith-ravi closed 4 years ago

rakshith-ravi commented 4 years ago

Hey. Thank you for this amazing library.

I tried cross-compiling it for ARMv7 for the Raspberry Pi today and found out that it wasn't working as intended.

I got this during cargo build:

error[E0308]: mismatched types
   --> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/fslock-0.1.4/src/unix.rs:267:13
    |
267 |             path.bytes.as_ptr(),
    |             ^^^^^^^^^^^^^^^^^^^ expected `u8`, found `i8`
    |
    = note: expected raw pointer `*const u8`
               found raw pointer `*const i8`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
error: could not compile `fslock`.
warning: build failed, waiting for other jobs to finish...
error: build failed

Would you be willing to accept PRs to fix this issue?

brunoczim commented 4 years ago

Yes, I will check your PR! Could you give me the target triple so I can test compilation check?

rakshith-ravi commented 4 years ago

Sure. You can try out armv7-unknown-linux-gnueabihf