After debugging problem in building Sage library during initial build, how to continue?

Suppose you are building Sage, and an error comes up. Usually, in most spkgs, if there is something that needs to be changed in the code of the spkg, you can cd into the spkg/build/ directory for the package, go into src/, fix the error (if you have any idea what it is, of course!) in the source, and then continue the spkg-install from there.

This is not the case in the Sage library spkg sage-x.y.z. itself, though. You have to do something else. I am trying to figure out what that is! I was once shown, but have forgotten. I've tried $SAGE_ROOT/sage -b, $SAGE_ROOT/sage -ba, and ./spkg-install. I didn't really expect the first two to work, given that they would operate on the already copied files (not the ones in the build directory), but the latter also doesn't seem to work.

I remember having this exact problem, and cannot remember what to do. Help!

edit retag close merge delete

Sort by » oldest newest most voted

If you want to fix (build) issues in the Sage library, the best thing to do is just to go in and fix the changes in $SAGE_ROOT/devel/sage-main and then run $SAGE_ROOT/sage -b. If you want to make a new spkg from $SAGE_ROOT/devel/sage-main, you can always do sage -sdist. When working with the Sage library spkg, it's best to just avoid the $SAGE_ROOT/spkg/build directory since that's not where the actual build occurs.

more

I think this was my problem, where I was located. In the meantime I must have done something like this anyway, since I was able to continue the build with the fix I had. Unfortunate that the error message led me astray again :( but thanks for the help.

( 2011-06-27 17:21:46 +0200 )edit