-
Notifications
You must be signed in to change notification settings - Fork 818
Closed
Description
Using Rust-1.91.1 on NetBSD-dev branch I get the following mismatched types when building mio v1.1.0
as a dependency of nostui, see akiomik/nostui#180
error[E0308]: mismatched types
--> /usr/pkgsrc/wip/nostui/work/vendor/mio-1.1.0/src/sys/unix/selector/kqueue.rs:64:20
|
64 | udata: $data as UData,
| ^^^^^^^^^^^^^^ expected `*mut c_void`, found `isize`
...
137 | let kevent = kevent!(fd, libc::EVFILT_WRITE, flags, token.0);
| ----------------------------------------------- in this macro invocation
|
= note: expected raw pointer `*mut c_void`
found type `isize`
= note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0308]: mismatched types
--> /usr/pkgsrc/wip/nostui/work/vendor/mio-1.1.0/src/sys/unix/selector/kqueue.rs:64:20
|
64 | udata: $data as UData,
| ^^^^^^^^^^^^^^ expected `*mut c_void`, found `isize`
...
143 | let kevent = kevent!(fd, libc::EVFILT_READ, flags, token.0);
| ---------------------------------------------- in this macro invocation
|
= note: expected raw pointer `*mut c_void`
found type `isize`
= note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0308]: mismatched types
--> /usr/pkgsrc/wip/nostui/work/vendor/mio-1.1.0/src/sys/unix/selector/kqueue.rs:64:20
|
64 | udata: $data as UData,
| ^^^^^^^^^^^^^^ expected `*mut c_void`, found `isize`
...
183 | kevent!(fd, libc::EVFILT_WRITE, write_flags, token.0),
| ----------------------------------------------------- in this macro invocation
|
= note: expected raw pointer `*mut c_void`
found type `isize`
= note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0308]: mismatched types
--> /usr/pkgsrc/wip/nostui/work/vendor/mio-1.1.0/src/sys/unix/selector/kqueue.rs:64:20
|
64 | udata: $data as UData,
| ^^^^^^^^^^^^^^ expected `*mut c_void`, found `isize`
...
184 | kevent!(fd, libc::EVFILT_READ, read_flags, token.0),
| --------------------------------------------------- in this macro invocation
|
= note: expected raw pointer `*mut c_void`
found type `isize`
= note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0308]: mismatched types
--> /usr/pkgsrc/wip/nostui/work/vendor/mio-1.1.0/src/sys/unix/selector/kqueue.rs:64:20
|
64 | udata: $data as UData,
| ^^^^^^^^^^^^^^ expected `*mut c_void`, found `isize`
...
205 | kevent!(fd, libc::EVFILT_WRITE, flags, 0),
| ----------------------------------------- in this macro invocation
|
= note: expected raw pointer `*mut c_void`
found type `isize`
= note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0308]: mismatched types
--> /usr/pkgsrc/wip/nostui/work/vendor/mio-1.1.0/src/sys/unix/selector/kqueue.rs:64:20
|
64 | udata: $data as UData,
| ^^^^^^^^^^^^^^ expected `*mut c_void`, found `isize`
...
206 | kevent!(fd, libc::EVFILT_READ, flags, 0),
| ---------------------------------------- in this macro invocation
|
= note: expected raw pointer `*mut c_void`
found type `isize`
= note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0308`.
error: could not compile `mio` (lib) due to 6 previous errors
warning: build failed, waiting for other jobs to finish...
*** Error code 101
Any pointers on how to fix this?
Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels