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

Fails to build on FreeBSD/i386 #71

Open
ghost opened this issue Feb 6, 2019 · 3 comments · May be fixed by #82
Open

Fails to build on FreeBSD/i386 #71

ghost opened this issue Feb 6, 2019 · 3 comments · May be fixed by #82

Comments

@ghost
Copy link

ghost commented Feb 6, 2019

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
@jmmv
Copy link
Contributor

jmmv commented Feb 6, 2019

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).

@abenson
Copy link

abenson commented Jun 19, 2019

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

@abenson
Copy link

abenson commented Jun 19, 2019

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 abenson linked a pull request Jun 19, 2019 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants