Error building sage

60 views
Skip to first unread message

DIVESH KUMAR

unread,
Mar 12, 2020, 4:27:02 AM3/12/20
to sage-devel
On trying the make command this error is shown.
***************************************************************
Error building Sage.

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

* package: pyzmq-19.0.0
  log file: /home/diveshcode/Downloads/SageMath/logs/pkgs/pyzmq-19.0.0.log
  build directory: /home/diveshcode/Downloads/SageMath/local/var/tmp/sage/build/pyzmq-19.0.0

The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.

Makefile:31: recipe for target 'all-start' failed
make[1]: *** [all-start] Error 1
make[1]: Leaving directory '/home/diveshcode/Downloads/SageMath'
Makefile:13: recipe for target 'all' failed
make: *** [all] Error 2


What should I do in this case?
Thank you for your time. Cheers.
 
pyzmq-19.0.0.log

Dima Pasechnik

unread,
Mar 12, 2020, 4:39:46 AM3/12/20
to sage-devel
You may try to copy the file
http://files.sagemath.org/spkg/upstream/pyzmq/pyzmq-19.0.0.tar.gz
to upstream/ directory in your Sage directory, and try building again.

I guess it could be a firewall issue, preventing package downloads.
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/a764f2ac-7ca5-46b5-981a-c4e71159c43b%40googlegroups.com.

DIVESH KUMAR

unread,
Mar 12, 2020, 8:32:24 AM3/12/20
to sage-devel
Issue is still there any clue what to do ?
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-...@googlegroups.com.
pyzmq-19.0.0.log

Dima Pasechnik

unread,
Mar 12, 2020, 8:54:43 AM3/12/20
to sage-devel
Have you placed
http://files.sagemath.org/spkg/upstream/pyzmq/pyzmq-19.0.0.tar.gz
(using wget, say)
into /home/diveshcode/Downloads/SageMath/upstream/
?

As far as I can see from the attached log, you did not.
(What's strange that the 1st line of this file normally should say
Found local metadata for pyzmq-19.0.0)

If it's there, please compute it's md5sum and compare it with one in

/home/diveshcode/Downloads/SageMath/build/pkgs/pyzmq/checksums.ini
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/75b20680-723f-4e17-9888-ab2e977478c9%40googlegroups.com.

DIVESH KUMAR

unread,
Mar 12, 2020, 10:02:29 AM3/12/20
to sage-devel
~/Downloads/SageMath/upstream$ md5sum pyzmq-19.0.0.tar.gz 
4650e45ebcf8e08620211c0e720d6066  pyzmq-19.0.0.tar.gz

~/Downloads/SageMath/build/pkgs/pyzmq$ md5sum checksums.ini 
eaae91b6017353df47f8f4f1415c07d7  checksums.ini

Dima Pasechnik

unread,
Mar 12, 2020, 10:54:48 AM3/12/20
to sage-devel
On Thu, Mar 12, 2020 at 2:02 PM DIVESH KUMAR
<f201...@pilani.bits-pilani.ac.in> wrote:
>
> ~/Downloads/SageMath/upstream$ md5sum pyzmq-19.0.0.tar.gz
> 4650e45ebcf8e08620211c0e720d6066 pyzmq-19.0.0.tar.gz
>
> ~/Downloads/SageMath/build/pkgs/pyzmq$ md5sum checksums.ini
> eaae91b6017353df47f8f4f1415c07d7 checksums.ini

I talked about the contents of checksums.ini, i.e.

tarball=pyzmq-VERSION.tar.gz
sha1=b84077344ed67649f34d4af8f619d96acbd03e73
md5=4650e45ebcf8e08620211c0e720d6066
cksum=2135729608

not its own md5sum. Anyhow, it appears that everything is OK, and the
build should use the copy
in ~/Downloads/SageMath/upstream/

What happens if you just run

make

?

Are you able to build any other packages? Where have you go the source from?
via git? if yes, what tag and from where, if tarball, where from?
What (Linux?) system are you using?
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/9349a43d-479d-46e0-a92f-14553a2498a8%40googlegroups.com.

DIVESH KUMAR

unread,
Mar 12, 2020, 11:24:12 AM3/12/20
to sage-devel
First of all, I thank you for your prompt replies and please spare me for my mistakes as I am a beginner.

Contents of checksum.ini
tarball=pyzmq-VERSION.tar.gz
sha1=64799b73d6109fb6da5b7deb6101ba13cd7fe885
md5=3c8039d007bbbd08a2275f52f5dc9a35
cksum=1455168757

 make command returns this
configure: error: "/home/diveshcode/Downloads/SageMath/build/pkgs/sage_conf/type" is missing.
If you would like to try to build Sage anyway (to help porting),
export the variable 'SAGE_PORT' to something non-empty.
Makefile:39: recipe for target 'build/make/Makefile' failed
make[1]: *** [build/make/Makefile] Error 1
make[1]: Leaving directory '/home/diveshcode/Downloads/SageMath'
Makefile:31: recipe for target 'base-toolchain' failed
make: *** [base-toolchain] Error 2
 
 
upon doing 
export SAGE_PORT=1
make
the error returned is 
Error building Sage.

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

* package: pyzmq-19.0.0
  log file: /home/diveshcode/Downloads/SageMath/logs/pkgs/pyzmq-19.0.0.log
  build directory: /home/diveshcode/Downloads/SageMath/local/var/tmp/sage/build/pyzmq-19.0.0

The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.

Makefile:31: recipe for target 'all-start' failed
make[1]: *** [all-start] Error 1
make[1]: Leaving directory '/home/diveshcode/Downloads/SageMath'
Makefile:13: recipe for target 'all' failed
make: *** [all] e 2

 

I have cloned the git repository from  git://git.sagemath.org//sage.git

I am using Ubuntu 18.04.

As I haven't done any signification modifications can I clone sage again and link it with my trac account(which is already linked to the current directory).


Thank you for your time.
Cheers.

Dima Pasechnik

unread,
Mar 12, 2020, 11:32:00 AM3/12/20
to sage-devel
the md5 in your checksum.ini does not match the (correct) md5 of the tar file.

I gues that your git branch is 
somehow inconsistent.
What is the output of 

git status

?

if you wanted to build the development branch you needed to do

git checkout develop




To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/3f7b2c85-dbea-43fa-b3b3-6ecc97658517%40googlegroups.com.

DIVESH KUMAR

unread,
Mar 12, 2020, 2:36:01 PM3/12/20
to sage-devel
I used git pull and then make worked fine.
However upon starting this message is displayed

SageMath version 9.1.beta7, Release Date: 2020-03-08               │
│ Using Python 3.7.3. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Warning: this is a prerelease version, and it may be unstable.     ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
  ***   Warning: not enough memory, new PARI stack 1286025216

what does  Warning: not enough memory, new PARI stack 1286025216 mean?



Dima Pasechnik

unread,
Mar 12, 2020, 5:55:56 PM3/12/20
to sage-devel
On Thu, Mar 12, 2020 at 6:36 PM DIVESH KUMAR
<f201...@pilani.bits-pilani.ac.in> wrote:
>
> I used git pull and then make worked fine.
> However upon starting this message is displayed
>
> SageMath version 9.1.beta7, Release Date: 2020-03-08 │
> │ Using Python 3.7.3. Type "help()" for help. │
> └────────────────────────────────────────────────────────────────────┘
> ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
> ┃ Warning: this is a prerelease version, and it may be unstable. ┃
> ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
> *** Warning: not enough memory, new PARI stack 1286025216
>
> what does Warning: not enough memory, new PARI stack 1286025216 mean?

it probably is innocent, and tells you that you didn't have much free
memory as the moment you
started Sage.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/1f6549be-abea-4597-89be-b9b4ca55e26e%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages