Linux install fails

84 views
Skip to first unread message

Sz Tengely

unread,
Nov 7, 2019, 4:00:55 PM11/7/19
to sage-devel
Hi,

I tried to install SageMath 8.9 from source and there was an error message at the end related to sagenb-1.1.2 (attached the log file). Google search directed me to the post https://groups.google.com/forum/#!topic/sage-devel/icbegwpf_3I where Dima Pasechnik wrote that one should try to run ./sage, so I did so and the appropriate crash report is attached as well.

Operating system: 64 bit Linux, Manjaro 18.1.2

Sage was installed: source, version 8.9, with export MAKE="make -j4"

Reproduce the crash: I followed the README.md file, extracted the tarball, export MAKE="make -j4" and make.

Thank you for your help in advance.

With kind regards,

 Szabolcs
Sage_crash_report.txt
sagenb-1.1.2.log

Dima Pasechnik

unread,
Nov 7, 2019, 4:08:51 PM11/7/19
to sage-devel
ImportError: /home/tengely/software/sage-8.9/local/lib/liblinbox.so.0: undefined symbol: GOMP_loop_ull_maybe_nonmonotonic_runtime_next

something went wrong with installing linbox.

please post the relevant log.

--
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/3f514ba6-b72b-4c82-a6ac-10e937118561%40googlegroups.com.

Sz Tengely

unread,
Nov 7, 2019, 4:41:45 PM11/7/19
to sage-devel
The log file is attached.


On Thursday, November 7, 2019 at 10:08:51 PM UTC+1, Dima Pasechnik wrote:
ImportError: /home/tengely/software/sage-8.9/local/lib/liblinbox.so.0: undefined symbol: GOMP_loop_ull_maybe_nonmonotonic_runtime_next

something went wrong with installing linbox.

please post the relevant log.

On Thu, 7 Nov 2019, 21:01 Sz Tengely, <szte...@gmail.com> wrote:
Hi,

I tried to install SageMath 8.9 from source and there was an error message at the end related to sagenb-1.1.2 (attached the log file). Google search directed me to the post https://groups.google.com/forum/#!topic/sage-devel/icbegwpf_3I where Dima Pasechnik wrote that one should try to run ./sage, so I did so and the appropriate crash report is attached as well.

Operating system: 64 bit Linux, Manjaro 18.1.2

Sage was installed: source, version 8.9, with export MAKE="make -j4"

Reproduce the crash: I followed the README.md file, extracted the tarball, export MAKE="make -j4" and make.

Thank you for your help in advance.

With kind regards,

 Szabolcs

--
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-...@googlegroups.com.
linbox-1.6.3.log

Dima Pasechnik

unread,
Nov 7, 2019, 4:48:06 PM11/7/19
to sage-devel
this seems to be related to OpenMP.

are you doing anything special related to this?


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/450b0ee3-5156-4682-83b9-87b3bd90442e%40googlegroups.com.

Sz Tengely

unread,
Nov 7, 2019, 4:51:18 PM11/7/19
to sage-devel
install.log contains the following:

[sagenb-1.1.2] Exception occurred:
[sagenb-1.1.2]   File "sage/misc/lazy_import.pyx", line 218, in sage.misc.lazy_i
mport.LazyImport._get_object (build/cythonized/sage/misc/lazy_import.c:2502)
[sagenb-1.1.2]     raise RuntimeError(f"resolving lazy import {self._name} durin
g startup")
[sagenb-1.1.2] RuntimeError: resolving lazy import dumps during startup
[sagenb-1.1.2] The full traceback has been saved in /tmp/sphinx-err-F4trNY.log,
if you want to report the issue to the developers.
[sagenb-1.1.2] Please also report this if it was a user error, so that a better
error message can be provided next time.
[sagenb-1.1.2] A bug report can be filed in the tracker at <https://github.com/s
phinx-doc/sphinx/issues>. Thanks!
[sagenb-1.1.2] make[4]: *** [Makefile:20: html] Error 2
[sagenb-1.1.2] make[4]: Leaving directory '/home/tengely/software/sage-8.9/local
/var/tmp/sage/build/sagenb-1.1.2/src/doc'
[sagenb-1.1.2] *****************************************************************
***************
[sagenb-1.1.2] Error building the documentation

Dima Pasechnik

unread,
Nov 7, 2019, 5:07:59 PM11/7/19
to sage-devel
sagenb build error is a red herring here.

the problem is that Sage, needed to build sagenb, does not start.


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/de0b81f0-2a99-4254-96ba-5dc7aade436d%40googlegroups.com.

Isuru Fernando

unread,
Nov 7, 2019, 5:10:28 PM11/7/19
to sage-devel
What does

ldd /home/tengely/software/sage-8.9/local/lib/liblinbox.so.0

give you? Looks like libgomp used at runtime is older than what is at build time.

Isuru

Sz Tengely

unread,
Nov 7, 2019, 5:12:03 PM11/7/19
to sage-devel
I have a working binary version of SageMath, however I would like to install a few optional packages via sage -i. That is the reason I go for this method. Now I found an old post https://sage-release.narkive.com/Cad5BdS6/sage-8-5-beta3-released in which a similar issue is mentioned (problem with lazy_import.pyx).

Sz Tengely

unread,
Nov 7, 2019, 5:17:10 PM11/7/19
to sage-devel
ldd /home/tengely/software/sage-8.9/local/lib/liblinbox.so.0
        linux-vdso.so.1 (0x00007ffc6d5a9000)
    libntl.so.42 => /usr/lib/libntl.so.42 (0x00007f3971b4a000)
    libflint.so.13 => /usr/lib/libflint.so.13 (0x00007f39717db000)
    libfflas.so.1 => /home/tengely/software/sage-8.9/local/lib/libfflas.so.1 (0x00007f39716ef000)
    libffpack.so.1 => /home/tengely/software/sage-8.9/local/lib/libffpack.so.1 (0x00007f39715b1000)
    libopenblas.so.0 => /home/tengely/software/sage-8.9/local/lib/libopenblas.so.0 (0x00007f3970883000)
    libgivaro.so.9 => /usr/lib/libgivaro.so.9 (0x00007f397082a000)
    libgmp.so.10 => /usr/lib/libgmp.so.10 (0x00007f3970794000)
    libgmpxx.so.4 => /usr/lib/libgmpxx.so.4 (0x00007f397078b000)
    libmpfr.so.6 => /usr/lib/libmpfr.so.6 (0x00007f397070c000)
    libiml.so.0 => /home/tengely/software/sage-8.9/local/lib/libiml.so.0 (0x00007f39706e6000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f39704fc000)
    libm.so.6 => /usr/lib/libm.so.6 (0x00007f39703b6000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007f39701ed000)
    libgcc_s.so.1 => /home/tengely/software/sage-8.9/local/lib/libgcc_s.so.1 (0x00007f39701d4000)
    libgomp.so.1 => /home/tengely/software/sage-8.9/local/lib/libgomp.so.1 (0x00007f39701a4000)
    libgf2x.so.1 => /usr/lib/libgf2x.so.1 (0x00007f3970187000)
    libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f3970165000)
    /usr/lib64/ld-linux-x86-64.so.2 (0x00007f3971eb9000)
    libgfortran.so.4 => /home/tengely/software/sage-8.9/local/lib/libgfortran.so.4 (0x00007f396ff8d000)
    libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f396ff88000)
    libquadmath.so.0 => /home/tengely/software/sage-8.9/local/lib/../lib/libquadmath.so.0 (0x00007f396ff46000)


Sz Tengely

unread,
Nov 8, 2019, 2:03:31 AM11/8/19
to sage-devel
As a test I also tried to install SageMath 8.8 and that went fine.

Dima Pasechnik

unread,
Nov 8, 2019, 2:49:27 AM11/8/19
to sage-devel
> libgcc_s.so.1 => /home/tengely/software/sage-8.9/local/lib/libgcc_s.so.1 (0x00007f39701d4000)
> libgomp.so.1 => /home/tengely/software/sage-8.9/local/lib/libgomp.so.1 (0x00007f39701a4000)

This looks strange. Are you building Sage's gcc for some reason?
(Most probably you're building gfortran, which does build parts of gcc)

What if you install system gfortran and tried to rebuild Sage 8.9
from scratch?
> --
> 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/7270ecc3-071b-40b5-91e4-b4655d7e0d09%40googlegroups.com.

Sz Tengely

unread,
Nov 8, 2019, 5:26:28 AM11/8/19
to sage-devel
Thank you for the help, installing gcc-fortran in fact solved the problem, Sage 8.9 is working now.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-...@googlegroups.com.

E. Madison Bray

unread,
Nov 25, 2019, 5:49:47 AM11/25/19
to sage-devel
By the way, I've been having problems with OpenMP ever since
https://trac.sagemath.org/ticket/27444, if anyone wants to take a look
at that...
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq0OYNQtDYSDLEiQ5kvasoB804tEOtQ14UnU%3Dc%2B46S%3D82A%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages