sandboxfs icon indicating copy to clipboard operation
sandboxfs copied to clipboard

Fails to build on FreeBSD/i386

Open ghost opened this issue 6 years ago • 3 comments

error[E0308]: mismatched types
  --> src/nodes/conv.rs:72:19
   |
72 |     Timespec::new(val.tv_sec() as sys::time::time_t, usec)
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected i64, found i32
help: you can cast an `i32` to `i64`, which will sign-extend the source value
   |
72 |     Timespec::new((val.tv_sec() as sys::time::time_t).into(), usec)
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

ghost avatar Feb 06 '19 10:02 ghost

Before fixing FreeBSD issues, I'd like to have automated testing running for this platform. Otherwise this will be a recurrent problem.

I think it should be possible to use Cirrus CI for this (I recently got a couple of PRs for other projects of mine in this regard but haven't had a chance to look at them).

jmmv avatar Feb 06 '19 21:02 jmmv

The issue isn't FreeBSD specific, it's all 32-bit platforms it seems.

abenson avatar Jun 19 '19 11:06 abenson

See also

error[E0308]: mismatched types
   --> src/nodes/mod.rs:180:48
    |
180 |         try_path(path, |p| unistd::truncate(p, size as i64))
    |                                                ^^^^^^^^^^^ expected i32, found i64

abenson avatar Jun 19 '19 11:06 abenson