Error building 9.8 on Ubuntu 23.04

80 views
Skip to first unread message

Eric Majzoub

unread,
Apr 7, 2023, 5:22:20 PM4/7/23
to sage-support
Following the procedure outlined on the Sage install page for Ubuntu.

make fails showing:
Error building Sage.

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

* package:         sagelib-9.8
 last build time: Apr 7 15:48
 log file:        /home/packages/SOURCE/sage/logs/pkgs/sagelib-9.8.log

The log file is attached. It shows that gcc exits with status 1, but doesn't give any specific error output from gcc itself. It fails on building
multi_polynomial_libsingular.

Any help is appreciated.
sagelib-9.8.log

John H Palmieri

unread,
Apr 7, 2023, 5:53:15 PM4/7/23
to sage-support
Some recent versions of Singular don't seem to work with Sage. You could try "make distclean" (to start over) and "./configure --with-system-singular=no" to force Sage to build its own Singular. Then "make".

Thierry Dumont

unread,
Apr 8, 2023, 2:17:28 AM4/8/23
to sage-s...@googlegroups.com


Le 07/04/2023 à 23:53, John H Palmieri a écrit :
> Some recent versions of Singular don't seem to work with Sage. You could
> try "make distclean" (to start over) and "./configure
> --with-system-singular=no" to force Sage to build its own Singular. Then
> "make".
>
Yes, I had the same problem on Debian Testing. BUT: remove all singular
from your system befor (re)building Sage. Otherwise, you will encounter
a problem again, as the building mechanism will first look at somme
singular files (probably the dev one).

t.d.

Eric Majzoub

unread,
Apr 8, 2023, 6:19:13 PM4/8/23
to sage-support
Thank you, this allows sage to complete the build. However, now I have another problem. When I run sage from its install directory it gives the error:

AttributeError: module 'sage_conf' has no attribute '_main'

And then strangely, it starts Sage 9.5, the version installed on my system through apt. I didn't want to remove this version using apt because I thought it would remove a lot of packages that I need for other programs. Here is the full output.

./sage
Traceback (most recent call last):
 File "/home/packages/SOURCE/sage/ehm_install/bin/././sage-config", line 33, in <
module>
   sys.exit(load_entry_point('sage-conf', 'console_scripts', 'sage-config')())
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/home/packages/SOURCE/sage/ehm_install/bin/././sage-config", line 25, in i
mportlib_load_entry_point
   return next(matches).load()
          ^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 204, in load
   return functools.reduce(getattr, attrs, module)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'sage_conf' has no attribute '_main'
Traceback (most recent call last):
 File "/home/packages/SOURCE/sage/ehm_install/bin/././sage-config", line 33, in <
module>
   sys.exit(load_entry_point('sage-conf', 'console_scripts', 'sage-config')())
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/home/packages/SOURCE/sage/ehm_install/bin/././sage-config", line 25, in i
mportlib_load_entry_point
   return next(matches).load()
          ^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 204, in load
   return functools.reduce(getattr, attrs, module)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'sage_conf' has no attribute '_main'
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.5, Release Date: 2022-01-30                     │
│ Using Python 3.11.2. Type "help()" for help.                       │
└────────────────────────────────────────────────────────────────────┘


Matthias Koeppe

unread,
Apr 9, 2023, 12:52:39 PM4/9/23
to sage-support
Try if "make sage_conf" fixes this problem.
If this persists, please post the file "config.log".

Eric Majzoub

unread,
Apr 9, 2023, 6:16:13 PM4/9/23
to sage-support
That does not seem to fix the issue. I have attached the config.log.
config.log
Reply all
Reply to author
Forward
0 new messages