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

SHELL variable interferes with parallel make #45

Closed
ceblanton opened this issue Aug 3, 2022 · 1 comment
Closed

SHELL variable interferes with parallel make #45

ceblanton opened this issue Aug 3, 2022 · 1 comment

Comments

@ceblanton
Copy link
Contributor

FRE compile job logs often show this warning indicating that parallel make is not working properly:

make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.

Parallel, or recursive make, ensures that a total number of compile jobs is not exceeded. Communication among the make processes is required to enable this, described here:

https://www.gnu.org/software/make/manual/html_node/Recursion.html#Recursion

Google searches and the make documentation are clear that the child make processes must be called exactly the same or make will bail out of the parallel operation with the warning above.

@underwoo found that the SHELL variable interferes with the parallel make operation, triggering the warning. I reproduced his finding, which is also supported by this documentation on SHELL, which mentions that is not inherited to child make processes. This would seem to explain the problem.

https://www.gnu.org/software/make/manual/html_node/Choosing-the-Shell.html

ceblanton added a commit to ceblanton/mkmf that referenced this issue Aug 3, 2022
which interferes with parallel/recursive make
@ceblanton
Copy link
Contributor Author

Done, in #44

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