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

Build failure on macOS Big Sur #31

Closed
brightly-salty opened this issue Dec 21, 2020 · 6 comments
Closed

Build failure on macOS Big Sur #31

brightly-salty opened this issue Dec 21, 2020 · 6 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@brightly-salty
Copy link

When I try to build calloop (as a dependency of client-toolkit) on macOS Big Sur 10.1, I get the following error messages:

MacBook :: Desktop/client-toolkit » cargo check
    Checking calloop v0.6.5
error[E0432]: unresolved import `nix::unistd::pipe2`
  --> /Users/cadenhaustein/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/calloop-0.6.5/src/sources/ping.rs:18:21
   |
18 |     unistd::{close, pipe2, read, write},
   |                     ^^^^^
   |                     |
   |                     no `pipe2` in `unistd`
   |                     help: a similar name exists in the module: `pipe`

error[E0433]: failed to resolve: use of undeclared type `Poller`
   --> /Users/cadenhaustein/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/calloop-0.6.5/src/sys/mod.rs:172:21
    |
172 |             poller: Poller::new()?,
    |                     ^^^^^^ use of undeclared type `Poller`

error[E0412]: cannot find type `Poller` in this scope
   --> /Users/cadenhaustein/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/calloop-0.6.5/src/sys/mod.rs:166:13
    |
166 |     poller: Poller,
    |             ^^^^^^ not found in this scope

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0412, E0432, E0433.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `calloop`
@elinorbgr
Copy link
Member

Indeed, macOS support is not yet implemented in calloop.

We do have a *BSD kqueue implementation that might be compatible with macOS or not, but we need someone who knows about this stuff to ensure this is the case.

@elinorbgr elinorbgr added enhancement New feature or request help wanted Extra attention is needed labels Dec 21, 2020
@curtisforrester
Copy link

I can confirm that this is also still an issue in Big Sur 11.5.2 - this, due to this this change in the "nix" crate. They've removed support for that function on Mac in general it seems.

Disappointing since I was pondering switching to calloop for handling an event loop in our server. Might dig into it later.

1 similar comment
@curtisforrester
Copy link

I can confirm that this is also still an issue in Big Sur 11.5.2 - this, due to this this change in the "nix" crate. They've removed support for that function on Mac in general it seems.

Disappointing since I was pondering switching to calloop for handling an event loop in our server. Might dig into it later.

@curtisforrester
Copy link

I would like to gently suggest that a note be added that this library does not support Mac to save some time for those of us who develop on Mac (even though, in my case, the final target of the software is generally Linux).

@elinorbgr
Copy link
Member

Well, it is already in the readme:

Platforms support

Currently, only Linux and the *BSD are supported.

Are you suggesting something more?

@elinorbgr
Copy link
Member

Since 0.10 calloop is now working and tested on macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants