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: support mac m1 #1270

Closed
1 task
kernelai opened this issue Feb 18, 2023 · 7 comments
Closed
1 task

build: support mac m1 #1270

kernelai opened this issue Feb 18, 2023 · 7 comments
Assignees

Comments

@kernelai
Copy link
Collaborator

kernelai commented Feb 18, 2023

  • support kqueue API
@wanghenshui wanghenshui changed the title mac 环境支持编译 build: support mac m1 Feb 21, 2023
@wanghenshui wanghenshui mentioned this issue Feb 21, 2023
78 tasks
@Tangruilin
Copy link
Collaborator

这个是要直接在 mac 上编译还是在 m1 上使用 docker 就可以了

@Tangruilin
Copy link
Collaborator

如果是 m1 上用 docker 能编译 pika 的话,现在已经支持了

@kernelai
Copy link
Collaborator Author

是期望M1 MAC环境里支持。这个改动会比较大,需要把epoll 替换为kqueue。这个feature 可以作为一个长期task

@Tangruilin
Copy link
Collaborator

@kernelai 那这个给我吧,我的电脑是m1 的mac,我看看这个怎么弄

@kernelai
Copy link
Collaborator Author

kernelai commented Feb 28, 2023

@kernelai 那这个给我吧,我的电脑是m1 的mac,我看看这个怎么弄

我觉着可以尝试,但是不必要花费太多精力。这里的考虑是如果后期pika的网络库支持liburing或者libevent,这个工作不是必要的。

@Tangruilin
Copy link
Collaborator

@kernelai 那这个给我吧,我的电脑是m1 的mac,我看看这个怎么弄

我觉着可以尝试,但是不必要花费太多精力。这里的考虑是如果后期pika的网络库支持liburing或者libevent,这个工作不是必要的。

okk,我有多的时间就看看,主要还是弄功能支持还有 bug 修复这方面的 PR 吧。

@loveyacper
Copy link
Collaborator

@kernelai 那这个给我吧,我的电脑是m1 的mac,我看看这个怎么弄

我觉着可以尝试,但是不必要花费太多精力。这里的考虑是如果后期pika的网络库支持liburing或者libevent,这个工作不是必要的。

不少代码是 linux specific 的,不仅仅是 kqueue。另外也有许多不规范的代码无法通过 clang 编译。

AlexStocks pushed a commit that referenced this issue Apr 9, 2023
* refactor: net multiplexer interface for epoll/kqueue/select

* Feature: import kqueue and many fix for compile/run on MacOS (#1270)
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this issue Jun 8, 2024
…Foundation#1372)

* refactor: net multiplexer interface for epoll/kqueue/select

* Feature: import kqueue and many fix for compile/run on MacOS (OpenAtomFoundation#1270)
cheniujh pushed a commit to cheniujh/pika that referenced this issue Sep 24, 2024
…Foundation#1372)

* refactor: net multiplexer interface for epoll/kqueue/select

* Feature: import kqueue and many fix for compile/run on MacOS (OpenAtomFoundation#1270)
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

4 participants