-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
Fix "warning: -jN forced in submake: disabling jobserver mode" warnings #21610
Comments
comment:1
I always wondered about the reason for the current recommendation; it would be good to get to the bottom of it. |
This comment has been minimized.
This comment has been minimized.
comment:2
The I am adjusting the ticket issue. |
make -jNUM
instead of MAKE='make -jNUM' make
comment:3
In other words, the |
comment:4
Replying to @jdemeyer:
OK, would this mean that it's just an unfortunate choice of the name for this variable? |
comment:5
Replying to @dimpase:
No, because it also serves as
I think that we can fix the warnings without changing the variable name. |
comment:6
I am currently doing a build from scratch of Sage, I'll check when those warnings appear. |
comment:7
In all cases where the warning occurs inside a package build, it is because of problems with the upstream package and it has nothing to do with the |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:12
Still, I don't understand why the toplevel makefile can't set MAKE (or appropriately renamed) variable as it sees fit (from the value of -j parameter). Why do we do this highly non-standard way of starting the build, with setting MAKE variable manually? |
comment:13
I've had this same thought before--really we should not be passing down The problem is that for Sage's build it's being used for cross-purposes. For packages that use make we want them to be able to take advantage of parallel builds (but jobserver mode is disabled that means the number of jobs started by make can actually well overtake I experimented with this a bit in the past and found that it could actually speed things up quite a bit, but only in limited cases. To really make it work properly we need further reworking of the spkg structure so that the builds for packages that use make are actually launched as proper sub-makes. |
comment:14
Replying to @dimpase:
Because there is no simple way to figure out the value of |
comment:15
Replying to @embray:
This statement is wrong. In Sage, parallel |
This comment has been minimized.
This comment has been minimized.
comment:17
Replying to @jdemeyer:
How about this:
Now:
That is, you can parse top-level MAKEFLAGS and get the value you need. |
comment:18
What does |
comment:19
Well, your trick does not work with
The output is |
comment:20
Replying to @jdemeyer:
mine is 4.2.1. Well, a bug in |
comment:21
So there is hope that we might be able to implement this in the future... |
comment:22
Replying to @jdemeyer:
or we can add |
comment:23
Replying to @dimpase:
Not really because we are talking about the user running the system What we could do is try to support both mechanisms: for users running a recent enough version of |
comment:24
just for the sake of it, added this piece of |
comment:27
See #30369 for another approach -- actually using the jobserver protocol. |
comment:29
Sage development has entered the release candidate phase for 9.3. Setting a new milestone for this ticket based on a cursory review of ticket status, priority, and last modification date. |
We should try to fix these warnings:
There are 3 different issues:
sage-env
higher up:-j1
(presumably to fix parallel build issues):brial
gap
pari
pkgconf
python2
singular
zeromq
openblas
: no idea where it comes from, probably theopenblas
build system itself.CC: @embray @jdemeyer @vbraun @jhpalmieri @dimpase @orlitzky
Component: build
Issue created by migration from https://trac.sagemath.org/ticket/21610
The text was updated successfully, but these errors were encountered: