-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Failed to allocate a guard page #32082
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
Comments
Was the standard library recompiled for armv5 as well? Right now I don't think we ship any armv5 standard libraries, nor do we have an armv5 target in the compiler. Maybe the libc definition of |
Ok, I need some work to do. |
I fixed my custom JSON target file for armv5te-unkwown-linux-musl. Now, I can cross-compile cargos |
Aha, I'm glad it worked out! Should we leave this open? Does a patch need to make its way upstream? |
I'll close this. I proposed a PR to libc rust-lang/libc#214 to link with the shared library. |
I am cross-compiling a cargo build
hello
for an unsupported ARMv5 target with a musl toolchain. I am using the instructions from rust-cross-libs to successfully build the rustlibs and hello.I added an debug output to https://github.com/rust-lang/rust/blob/master/src/libstd/sys/unix/thread.rs#L224 to get the page size used by Rust:
psize: 9459
However, using a C test file with
long sz = sysconf(_SC_PAGESIZE);
prints a page size of4096
, which I assume is correct.I know ARMv5 and arm---musl are not officially supported, but maybe can give me a hint why
os::page_size()
returns a wrong and obviously page size.The text was updated successfully, but these errors were encountered: