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

Fails to build on FreeBSD #10

Open
asomers opened this issue Dec 18, 2018 · 0 comments
Open

Fails to build on FreeBSD #10

asomers opened this issue Dec 18, 2018 · 0 comments

Comments

@asomers
Copy link

asomers commented Dec 18, 2018

rustc-test fails to build on FreeBSD. The error is:

error[E0425]: cannot find value `HW_AVAILCPU` in module `libc`
    --> /usr/home/somers/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/rustc-test-0.3.0/src/lib.rs:1007:44
     |
1007 |         let mut mib = [libc::CTL_HW, libc::HW_AVAILCPU, 0, 0];
     |                                            ^^^^^^^^^^^ not found in `libc`

I think you probably should be using libc::HW_NCPU instead.

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