Skip to content

error: 'large_os_page_size' undeclared #802

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

Open
mtelka opened this issue Aug 7, 2023 · 2 comments
Open

error: 'large_os_page_size' undeclared #802

mtelka opened this issue Aug 7, 2023 · 2 comments

Comments

@mtelka
Copy link

mtelka commented Aug 7, 2023

Compilation on illumos (Solaris clone) fails:

warning: In file included from c_src/mimalloc/src/prim/prim.c:22,
warning:                  from c_src/mimalloc/src/static.c:37:
warning: c_src/mimalloc/src/prim/unix/prim.c: In function 'unix_mmap':
warning: c_src/mimalloc/src/prim/unix/prim.c:313:28: error: 'large_os_page_size' undeclared (first use in this function); did you mean '_mi_os_page_size'?
warning:   313 |         cmd.mha_pagesize = large_os_page_size;
warning:       |                            ^~~~~~~~~~~~~~~~~~
warning:       |                            _mi_os_page_size
warning: c_src/mimalloc/src/prim/unix/prim.c:313:28: note: each undeclared identifier is reported only once for each function it appears in
devnexen added a commit to devnexen/mimalloc that referenced this issue Aug 7, 2023
@devnexen
Copy link
Contributor

devnexen commented Aug 7, 2023

Would the PR's branch work for you ?

@kulikjak
Copy link

kulikjak commented Nov 7, 2023

Hi, not the original reporter, but I've also hit this issue on Solaris (Oracle), and the fix works in our case.

I've hit/tested it in Python 3.13, but I don't see how it would be different here.

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