Error in compiling from source

90 views
Skip to first unread message

dibyendu...@gmail.com

unread,
Apr 24, 2023, 6:25:29 AM4/24/23
to sage-support
Dear all,

I was trying to compile Sage 9.8 from the source in macbook m2 and getting the following error. Kindly help.

[sagelib-9.8] Successfully installed sagemath-standard-9.8

[sagelib-9.8] 

[sagelib-9.8] real 20m6.827s

[sagelib-9.8] user 21m31.875s

[sagelib-9.8] sys 0m37.380s

make --no-print-directory sagemath_doc_html-SAGE_DOCS-no-deps

[sagemath_doc_html-none] mkdir -p en/reference/repl

[sagemath_doc_html-none] sage -advanced > en/reference/repl/options.txt

[sagemath_doc_html-none] make doc-inventory--reference-references

[sagemath_doc_html-none] sage --docbuild --no-pdf-links reference/references inventory 

[sagemath_doc_html-none] ------------------------------------------------------------------------

[sagemath_doc_html-none] (no backtrace available)

[sagemath_doc_html-none] ------------------------------------------------------------------------

[sagemath_doc_html-none] Unhandled SIGBUS: A bus error occurred.

[sagemath_doc_html-none] This probably occurred because a *compiled* module has a bug

[sagemath_doc_html-none] in it and is not properly wrapped with sig_on(), sig_off().

[sagemath_doc_html-none] Python will now terminate.

[sagemath_doc_html-none] ------------------------------------------------------------------------

[sagemath_doc_html-none] /Users/dibyendu/sage-9.8/local/var/lib/sage/venv-python3.11.1/bin/sage-python: line 2: 73739 Bus error: 10           sage -python "$@"

[sagemath_doc_html-none] make[6]: *** [doc-inventory--reference-references] Error 138

[sagemath_doc_html-none] make[5]: *** [doc-inventory-reference] Error 2

make[4]: *** [sagemath_doc_html-SAGE_DOCS-no-deps] Error 2

make[3]: *** [/Users/dibyendu/sage-9.8/local/var/lib/sage/installed/sagemath_doc_html-none] Error 2

make[2]: *** [all-start] Error 2


real 21m47.461s

user 21m38.313s

sys 0m39.371s

***************************************************************

Error building Sage.


The following package(s) may have failed to build (not necessarily

during this run of 'make all-start'):


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.


make[1]: *** [all-start] Error 1

make: *** [all] Error 2

dibyendu...@gmail.com

unread,
Apr 24, 2023, 7:27:13 AM4/24/23
to sage-support

[sagelib-9.8] error: subprocess-exited-with-error

[sagelib-9.8] 

[sagelib-9.8] × python setup.py develop did not run successfully.

[sagelib-9.8] │ exit code: 1

[sagelib-9.8] ╰─> See above for output.

[sagelib-9.8] 

[sagelib-9.8] note: This error originates from a subprocess, and is likely not a problem with pip.

[sagelib-9.8] ********************************************************************************

[sagelib-9.8] Error installing

[sagelib-9.8] ********************************************************************************

make[4]: *** [sagelib-SAGE_VENV-no-deps] Error 1

make[3]: *** [/Users/dibyendu/sage-9.8/local/var/lib/sage/venv-python3.11.1/var/lib/sage/installed/sagelib-9.8] Error 2

make[2]: *** [all-start] Error 2


real 24m0.469s

user 25m12.494s

sys 0m49.759s

***************************************************************

Error building Sage.


The following package(s) may have failed to build (not necessarily

during this run of 'make all-start'):


* package:         sagemath_doc_html-none

  last build time: Apr 24 16:31

  log file:        /Users/dibyendu/sage-9.8/logs/pkgs/sagemath_doc_html-none.log


* package:         sagelib-9.8

  last build time: Apr 24 16:55

  log file:        /Users/dibyendu/sage-9.8/logs/pkgs/sagelib-9.8.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.


make[1]: *** [all-start] Error 1

make: *** [all] Error 2


Kindly help.

Dima Pasechnik

unread,
Apr 24, 2023, 7:39:46 AM4/24/23
to sage-s...@googlegroups.com
please post config.log
> --
> 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/79560a20-e7a9-4a16-a219-7c0ea51f0810n%40googlegroups.com.

dibyendu...@gmail.com

unread,
Apr 24, 2023, 9:30:20 AM4/24/23
to sage-support
Please find the attached config.log
config.log

dibyendu...@gmail.com

unread,
Apr 25, 2023, 12:24:18 AM4/25/23
to sage-support
Kindly help me. I am getting the following error.

make --no-print-directory sagemath_doc_html-SAGE_DOCS-no-deps

[sagemath_doc_html-none] mkdir -p en/reference/repl

[sagemath_doc_html-none] sage -advanced > en/reference/repl/options.txt

[sagemath_doc_html-none] make doc-inventory--reference-references

[sagemath_doc_html-none] sage --docbuild --no-pdf-links reference/references inventory 

[sagemath_doc_html-none] ------------------------------------------------------------------------

[sagemath_doc_html-none] (no backtrace available)

[sagemath_doc_html-none] ------------------------------------------------------------------------

[sagemath_doc_html-none] Unhandled SIGSEGV: A segmentation fault occurred.

[sagemath_doc_html-none] This probably occurred because a *compiled* module has a bug

[sagemath_doc_html-none] in it and is not properly wrapped with sig_on(), sig_off().

[sagemath_doc_html-none] Python will now terminate.

[sagemath_doc_html-none] ------------------------------------------------------------------------

[sagemath_doc_html-none] /Users/dibyendu/sage-9.8/local/var/lib/sage/venv-python3.11.1/bin/sage-python: line 2: 87940 Segmentation fault: 11  sage -python "$@"

[sagemath_doc_html-none] make[6]: *** [doc-inventory--reference-references] Error 139

[sagemath_doc_html-none] make[5]: *** [doc-inventory-reference] Error 2

make[4]: *** [sagemath_doc_html-SAGE_DOCS-no-deps] Error 2

make[3]: *** [/Users/dibyendu/sage-9.8/local/var/lib/sage/installed/sagemath_doc_html-none] Error 2

make[2]: *** [all-start] Error 2


real 1m47.694s

user 0m9.522s

sys 0m3.107s

***************************************************************

Error building Sage.


The following package(s) may have failed to build (not necessarily

during this run of 'make all-start'):


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.


make[1]: *** [all-start] Error 1

make: *** [all] Error 2


Dima Pasechnik

unread,
Apr 25, 2023, 4:17:22 AM4/25/23
to sage-support
Can you try starting Sage's Python:

./sage --python

and at Python prompt, run

from sage.all import *

It should lead to a crash, but hopefully it will produce more information.

As well, it might be that the latest updates to macOS, or XCode, or Homebrew, after 9.8 was released, broke it. Can you try the latest, 10.0.rc0 ?
(you will need to get the source via git, as we only release tarballs for stable releases)

Last but not the least, it could be that you have things in /usr/local which clash with libraries/binaries used by Sage.





dibyendu...@gmail.com

unread,
Apr 26, 2023, 4:20:57 AM4/26/23
to sage-support
Thanks a lot. Successfully installed 10.0.rc0
Reply all
Reply to author
Forward
0 new messages