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

Fix parallel building of Singular #12137

Closed
jdemeyer opened this issue Dec 9, 2011 · 17 comments
Closed

Fix parallel building of Singular #12137

jdemeyer opened this issue Dec 9, 2011 · 17 comments

Comments

@jdemeyer
Copy link

jdemeyer commented Dec 9, 2011

See http://sage.math.washington.edu/home/palmieri/misc/singular-3-1-3-3.p1.log from #12016.

New spkg: http://boxen.math.washington.edu/home/jdemeyer/spkg/singular-3-1-3-3.p2.spkg

Reported upstream: http://www.singular.uni-kl.de:8002/trac/ticket/395

Upstream: Reported upstream. Developers acknowledge bug.

CC: @jhpalmieri @malb

Component: packages: standard

Author: Jeroen Demeyer

Reviewer: Volker Braun

Merged: sage-4.8.alpha4

Issue created by migration from https://trac.sagemath.org/ticket/12137

@jdemeyer jdemeyer added this to the sage-4.8 milestone Dec 9, 2011
@jdemeyer

This comment has been minimized.

@jdemeyer

This comment has been minimized.

@jdemeyer
Copy link
Author

jdemeyer commented Dec 9, 2011

comment:3

Fixed one issue, hit another. It seems Singular's Makefiles are very broken. Looks like a "$MAKE -j1" is in order.

@jdemeyer jdemeyer changed the title Fix parallel building Singular Disable parallel building certain parts of Singular Dec 9, 2011
@jdemeyer
Copy link
Author

jdemeyer commented Dec 9, 2011

Upstream: Not yet reported upstream; Will do shortly.

@jdemeyer
Copy link
Author

Author: Jeroen Demeyer

@malb
Copy link
Member

malb commented Dec 10, 2011

comment:6

At some Sage/Singular days there was a push to make Singular compile in parallel and it worked. Perhaps it got broken recently, but the Singular developers do fix these bugs. Hence, they should be reported upstream and fixed,not worked around by "make -j1".

@jdemeyer jdemeyer changed the title Disable parallel building certain parts of Singular Fix parallel building of Singular Dec 10, 2011
@jdemeyer
Copy link
Author

comment:8

Replying to @malb:

At some Sage/Singular days there was a push to make Singular compile in parallel and it worked. Perhaps it got broken recently, but the Singular developers do fix these bugs. Hence, they should be reported upstream and fixed,not worked around by "make -j1".

Fair enough. I found two problems and fixed them. I am now continuously building Singular in a loop, so far it seems to work. So needs_review.

@jdemeyer
Copy link
Author

Changed upstream from Not yet reported upstream; Will do shortly. to Reported upstream. Little or no feedback.

@jdemeyer

This comment has been minimized.

@jdemeyer
Copy link
Author

diff for the new Singular spkg, for review only

@vbraun
Copy link
Member

vbraun commented Dec 10, 2011

comment:12

Attachment: singular-3-1-3-3.p1-p2.diff.gz

Is there a particular reason why you are adding the + to some commands in the makefile?

-       $(recurse) 
+       +$(recurse) 

I'm fine with it as it helps debugging, but it shouldn't change whether or not the Singular spkg builds.

@jdemeyer
Copy link
Author

comment:13

Replying to @vbraun:

Is there a particular reason why you are adding the + to some commands in the makefile?

To fix the warning

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

The problem is that make doesn't recognize it as a recursive rule because the command is the result of a variable expansion.

I'm fine with it as it helps debugging

Debugging, how?

but it shouldn't change whether or not the Singular spkg builds.

True. But it does fit with the theme of fixing parallel building.

@vbraun
Copy link
Member

vbraun commented Dec 10, 2011

Reviewer: Volker Braun

@vbraun
Copy link
Member

vbraun commented Dec 10, 2011

comment:14

I guess the usual use for + rules is to execute the command even if you run make --just-print. I hadn't thought about the make job server, this is indeed modified as well.

@jhpalmieri
Copy link
Member

comment:15

This also works for me. I could force the old version to fail when building in parallel (on sage.math: MAKEFLAGS='j -l8' ./sage -f ..., and similar on OS X). With the new spkg, it has built every time on sage.math (using both -l30 and -l2). On OS X, I had one failure with the new spkg using -l8, although I've had 4 successful builds that way. The machine only has 2 cores, so -l8 is probably a bad setting anyway. With -l2 on that machine, no problems.

@jdemeyer
Copy link
Author

Merged: sage-4.8.alpha4

@jdemeyer
Copy link
Author

Changed upstream from Reported upstream. Little or no feedback. to Reported upstream. Developers acknowledge bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants