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

Cross-compilation from Linux to MacOS #57

Open
serjflint opened this issue Jun 22, 2023 · 1 comment
Open

Cross-compilation from Linux to MacOS #57

serjflint opened this issue Jun 22, 2023 · 1 comment

Comments

@serjflint
Copy link

serjflint commented Jun 22, 2023

Hi! I am trying to cross-compile ruff manually. It succeeds for target x86_64-unknown-linux-gnu but fails for target x86_64-apple-darwin. It fails when compiling dependency tikv-jemalloc-sys with an error:

In file included from include/jemalloc/internal/jemalloc_preamble.h:5:
  include/jemalloc/internal/jemalloc_internal_decls.h:23:14: fatal error: 'sys/syscall.h' file not found

Did anyone encounter a similar problem? I am not good with compiler's configuration and need help here.
Related issue: astral-sh/ruff#5226

@serjflint
Copy link
Author

serjflint commented Jun 23, 2023

Providing macOS SDK helped, but is it the only way to cross-compile jemalloc?

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

1 participant