Problem with rebuilding Sage

115 views
Skip to first unread message

Ruchit Jagodara

unread,
Dec 15, 2023, 2:00:02 PM12/15/23
to sage-support
I am trying to rebuild sage using ./sage -br but it is failing for some reason ( I don't know exactly what is the reason.) This is happening to me since yesterday when I pulled developer branch from sage to get the most updated branch but after that whenever I am trying to rebuild sage it is giving some errors below are few lines of error message that I am getting. I am working on Linux and using 10.2 Sage version.

***************************************************************
Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make sagelib-no-deps'):

* package:         sagelib-10.3.beta0
  last build time: Dec 15 22:20
  log file:        /home/ruchitjagodara/sage/sage/logs/pkgs/sagelib-10.3.beta0.log

It is safe to delete any log files and build directories, but they
contain information that is helpful for debugging build problems.
WARNING: If you now run 'make' again, the build directory of the
same version of the package will, by default, be deleted. Set the
environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.

Dima Pasechnik

unread,
Dec 15, 2023, 3:14:12 PM12/15/23
to sage-s...@googlegroups.com
On Fri, Dec 15, 2023 at 7:00 PM Ruchit Jagodara
<ruchit....@iitgn.ac.in> wrote:
>
> I am trying to rebuild sage using ./sage -br but it is failing for some reason ( I don't know exactly what is the reason.) This is happening to me since yesterday when I pulled developer branch from sage to get the most updated branch but after that whenever I am trying to rebuild sage it is giving some errors below are few lines of error message that I am getting. I am working on Linux and using 10.2 Sage version.

Can you try

make build

(and not ./sage -br ?)


>
> ***************************************************************
> Error building Sage.
>
> The following package(s) may have failed to build (not necessarily
> during this run of 'make sagelib-no-deps'):
>
> * package: sagelib-10.3.beta0
> last build time: Dec 15 22:20
> log file: /home/ruchitjagodara/sage/sage/logs/pkgs/sagelib-10.3.beta0.log
>
> It is safe to delete any log files and build directories, but they
> contain information that is helpful for debugging build problems.
> WARNING: If you now run 'make' again, the build directory of the
> same version of the package will, by default, be deleted. Set the
> environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.
>
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/27b740b3-f0d5-4c68-8ee6-3f086ac17cd7n%40googlegroups.com.

David Ayotte

unread,
Dec 15, 2023, 3:16:44 PM12/15/23
to sage-support
Can you post the following log file:

    /home/ruchitjagodara/sage/sage/logs/pkgs/sagelib-10.3.beta0.log

here? There might be some error message that would help us find the problem.

Best,

David A.

Ruchit Jagodara

unread,
Dec 16, 2023, 11:30:52 AM12/16/23
to sage-support

Ruchit Jagodara

unread,
Dec 16, 2023, 1:18:24 PM12/16/23
to sage-support
This worked, but it's still not convenient because ./sage -br was much faster than this. I noticed that I created some pull requests in Sage, and they are failing in the build and test check. However, I believe they should pass because I have taken care of everything, so I am not sure what the exact probelm is?

David Ayotte

unread,
Dec 17, 2023, 10:44:13 AM12/17/23
to sage-support
Sometime the build and test checks fail for unrelated reasons. You can always post your PR number here; we can look at it.

Ruchit Jagodara

unread,
Dec 21, 2023, 5:27:20 AM12/21/23
to sage-support
Can you please check this PR - https://github.com/sagemath/sage/pull/36877. I am not sure why the build and test check is failing because I have just corrected linting errors in the file. 
Thank you for your support !

Reply all
Reply to author
Forward
0 new messages