sandboxfs
sandboxfs copied to clipboard
Fails to build on FreeBSD/i386
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
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).
The issue isn't FreeBSD specific, it's all 32-bit platforms it seems.
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