Skip to content

cpuset_attribs not defined for ARM Linux #95

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

Closed
posborne opened this issue Apr 8, 2015 · 1 comment
Closed

cpuset_attribs not defined for ARM Linux #95

posborne opened this issue Apr 8, 2015 · 1 comment

Comments

@posborne
Copy link
Member

posborne commented Apr 8, 2015

No cpuset_attributes are defined for arch "arm" and os "linux". This results in compilation errors when cross-compiling for triples like "arm-unknown-linux-gnueabihf" used by boards like the raspberry pi and beaglebone black.

I copied the cpuset_attribs from android and these worked for my use case.

   Compiling nix v0.3.3
.../nix-0.3.3/src/sched.rs:94:25: 94:52 error: failed to resolve. Use of undeclared type or module `cpuset_attribs`
.../nix-0.3.3/src/sched.rs:94     cpu_mask: [CpuMask; cpuset_attribs::CPU_SETSIZE/cpuset_attribs::CPU_MASK_BITS]
@carllerche
Copy link
Contributor

There isn't that great ARM support right now, mostly because it isn't hooked into CI. If you have a PR adding cpuset_attribs for ARM linux, I will pull it in. In the mean time, I opened up an issue for improving ARM support: #97.

posborne added a commit to posborne/nix-rust that referenced this issue Apr 21, 2015
The limit of 32 cores may not actually be a limit with arm-linux, but
I am not aware of anything in excess of 32 processors out there currently
and this is what I have been running for awhile now on a beaglebone
black (`--target=arm-unknown-linux-gnueabihf`).

This change addresses nix-rust#95 and relates to nix-rust#97.
carllerche pushed a commit that referenced this issue Apr 24, 2015
The limit of 32 cores may not actually be a limit with arm-linux, but
I am not aware of anything in excess of 32 processors out there currently
and this is what I have been running for awhile now on a beaglebone
black (`--target=arm-unknown-linux-gnueabihf`).

This change addresses #95 and relates to #97.
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

2 participants