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

Compiling mio in AIX fails #1782

Open
ayappanec opened this issue May 3, 2024 · 4 comments
Open

Compiling mio in AIX fails #1782

ayappanec opened this issue May 3, 2024 · 4 comments

Comments

@ayappanec
Copy link

Compiling mio in AIX fails with the below error.,
rustc --crate-name mio --edition=2018 /.cargo/registry/src/index.crates.io-d11c229612889eed/mio-0.8.11/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="net"' --cfg 'feature="os-ext"' --cfg 'feature="os-poll"' -C metadata=6daf56d29685c1b2 -C extra-filename=-6daf56d29685c1b2 --out-dir /tmp/pip-install-2doeq8db/tokenizers_a6dcd574fc864cb793f0985f2a16d7f5/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-2doeq8db/tokenizers_a6dcd574fc864cb793f0985f2a16d7f5/target/release/deps --extern libc=/tmp/pip-install-2doeq8db/tokenizers_a6dcd574fc864cb793f0985f2a16d7f5/target/release/deps/liblibc-3a5102201a3aa852.rmeta --cap-lints allow -C link-arg=-bbigtoc -L/opt/freeware/lib -D_ALL_SOURCE -lpython3.9

error[E0432]: unresolved imports `self::selector::event`, `self::selector::Event`, `self::selector::Events`, `self::selector::Selector`
   --> /.cargo/registry/src/index.crates.io-d11c229612889eed/mio-0.8.11/src/sys/unix/mod.rs:18:37
    |
 18 |     pub(crate) use self::selector::{event, Event, Events, Selector};
    |                                     ^^^^^  ^^^^^  ^^^^^^  ^^^^^^^^ no `Selector` in `sys::unix::selector`
    |                                     |      |      |
    |                                     |      |      no `Events` in `sys::unix::selector`
    |                                     |      no `Event` in `sys::unix::selector`
    |                                     no `event` in `sys::unix::selector`
    |
    = help: consider importing this module instead:
            crate::event
 note: found an item that was configured out
   --> /.cargo/registry/src/index.crates.io-d11c229612889eed/mio-0.8.11/src/sys/unix/selector/mod.rs:21:30
    |
 21 | pub(crate) use self::epoll::{event, Event, Events, Selector};
    |                              ^^^^^
 note: found an item that was configured out
   --> /.cargo/registry/src/index.crates.io-d11c229612889eed/mio-0.8.11/src/sys/unix/selector/mod.rs:35:29
    |
 35 | pub(crate) use self::poll::{event, Event, Events, Selector};
    |                             ^^^^^
 note: found an item that was configured out
   --> /.cargo/registry/src/index.crates.io-d11c229612889eed/mio-0.8.11/src/sys/unix/selector/mod.rs:70:31
    |
 70 | pub(crate) use self::kqueue::{event, Event, Events, Selector};
    |                               ^^^^^
    = help: consider importing this struct through its public re-export instead:
            crate::event::Event
@Thomasdezeeuw
Copy link
Collaborator

AIX is not supported.

@Thomasdezeeuw
Copy link
Collaborator

See https://github.com/tokio-rs/mio?tab=readme-ov-file#platforms for the supported platforms.

@ayappanec
Copy link
Author

Noted.
AIX has pollset which is kind of similar to epoll in Linux. I will check what it takes to make it use by mio.

@ecnelises
Copy link
Contributor

ecnelises commented May 15, 2024

I had initial patch for pollset: #1620 . But AIX pollset handle does not support DUPFD (fcntl(ps, F_DUPFD_CLOEXEC, 3)), which is quite a fundamental issue. You may need --cfg mio_unsupported_force_poll_poll to use poll facility.

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

No branches or pull requests

3 participants