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

Config jobs: $ncpus doesn't work on DragonflyBSD #2688

Closed
cgag opened this issue Jun 29, 2015 · 3 comments
Closed

Config jobs: $ncpus doesn't work on DragonflyBSD #2688

cgag opened this issue Jun 29, 2015 · 3 comments

Comments

@cgag
Copy link
Contributor

cgag commented Jun 29, 2015

Probably a problem on FreeBSD as well. The number of jobs seems to be getting set to 1 despite having 4 cpus, everything works fine if I manually set it to 4.

@23Skidoo
Copy link
Member

The code that is used to find the number of cores is in cbits/getnumcores.c. On GHC > 6.12 we use the getNumberOfProcessors function from GHC RTS.

Which version of GHC was your cabal-install exe compiled with?

@cgag
Copy link
Contributor Author

cgag commented Jun 29, 2015

Ah, 7.8.3, maybe it's fixed in later versions.

@23Skidoo
Copy link
Member

In GHC HEAD the POSIX version of this function looks like this (there's a separate Win32 implementation). Looks like it works on FreeBSD at least. If it doesn't work on your OS, please file a ticket on the GHC bug tracker.

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