ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 27 Jun 2011 17:21:46 +0200After debugging problem in building Sage library during initial build, how to continue?https://ask.sagemath.org/question/8191/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!Sat, 25 Jun 2011 21:43:26 +0200https://ask.sagemath.org/question/8191/after-debugging-problem-in-building-sage-library-during-initial-build-how-to-continue/Answer by Mike Hansen for <p>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 <code>cd</code> into the <code>spkg/build/</code> directory for the package, go into <code>src/</code>, fix the error (if you have any idea what it is, of course!) in the source, and then continue the <code>spkg-install</code> from there.</p>
<p>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 <code>$SAGE_ROOT/sage -b</code>, <code>$SAGE_ROOT/sage -ba</code>, and <code>./spkg-install</code>. 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. </p>
<p>I remember having this exact problem, and cannot remember what to do. Help!</p>
https://ask.sagemath.org/question/8191/after-debugging-problem-in-building-sage-library-during-initial-build-how-to-continue/?answer=12471#post-id-12471If 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.Sun, 26 Jun 2011 02:28:25 +0200https://ask.sagemath.org/question/8191/after-debugging-problem-in-building-sage-library-during-initial-build-how-to-continue/?answer=12471#post-id-12471Comment by kcrisman for <p>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 <code>$SAGE_ROOT/devel/sage-main</code> and then run <code>$SAGE_ROOT/sage -b</code>. If you want to make a new spkg from <code>$SAGE_ROOT/devel/sage-main</code>, you can always do <code>sage -sdist</code>. When working with the Sage library spkg, it's best to just avoid the <code>$SAGE_ROOT/spkg/build</code> directory since that's not where the actual build occurs.</p>
https://ask.sagemath.org/question/8191/after-debugging-problem-in-building-sage-library-during-initial-build-how-to-continue/?comment=21542#post-id-21542I 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. Mon, 27 Jun 2011 17:21:46 +0200https://ask.sagemath.org/question/8191/after-debugging-problem-in-building-sage-library-during-initial-build-how-to-continue/?comment=21542#post-id-21542