[installation error] Any idea ?

asked 2023-01-29 20:24:57 +0100

draz gravatar image

[sagelib-9.8.beta7] error: Command "gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -g -O2 -fPIC -I/usr/include/singular -Isage/cpython -I/home/draz/local/lib/python3.10/site-packages/cypari2 -I/home/draz/local/lib/python3.10/site-packages/cysignals -Isage/rings/finite_rings -Isage/libs/ntl -I/home/draz/sage/src -I/home/draz/local/lib/python3.10/site-packages/numpy/core/include -I/usr/include/python3.10 -I/home/draz/local/include -I/usr/include/python3.10 -c sage/rings/polynomial/multi_polynomial_libsingular.cpp -o build/temp.linux-x86_64-cpython-310/sage/rings/polynomial/multi_polynomial_libsingular.o -std=c++11 -fabi-version=6" failed with exit status 1

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

[sagelib-9.8.beta7]

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

[sagelib-9.8.beta7] │ exit code: 1

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

[sagelib-9.8.beta7]

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

[sagelib-9.8.beta7] full command: /home/draz/local/bin/python3 -c '

[sagelib-9.8.beta7] exec(compile('"'"''"'"''"'"'

[sagelib-9.8.beta7] # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py

[sagelib-9.8.beta7] #

[sagelib-9.8.beta7] # - It imports setuptools before invoking setup.py, to enable projects that directly

[sagelib-9.8.beta7] # import from distutils.core to work with newer packaging standards.

[sagelib-9.8.beta7] # - It provides a clear error message when setuptools is not installed.

[sagelib-9.8.beta7] # - It sets sys.argv[0] to the underlying setup.py, when invoking setup.py so

[sagelib-9.8.beta7] # setuptools doesn'"'"'t think the script is -c. This avoids the following warning:

[sagelib-9.8.beta7] # manifest_maker: standard file '"'"'-c'"'"' not found".

[sagelib-9.8.beta7] # - It generates a shim setup.py, for handling setup.cfg-only projects.

[sagelib-9.8.beta7] import os, sys, tokenize

[sagelib-9.8.beta7]

[sagelib-9.8.beta7] try:

[sagelib-9.8.beta7] import setuptools

[sagelib-9.8.beta7] except ImportError as error:

[sagelib-9.8.beta7] print(

[sagelib-9.8.beta7] "ERROR: Can not execute setup.py since setuptools is not available in "

[sagelib-9.8.beta7] "the build environment.",

[sagelib-9.8.beta7] file=sys.stderr,

[sagelib-9.8.beta7] )

[sagelib-9.8.beta7] sys.exit(1)

[sagelib-9.8.beta7]

[sagelib-9.8.beta7] __file__ = %r

[sagelib-9.8.beta7] sys.argv[0] = __file__

[sagelib-9.8.beta7]

[sagelib-9.8.beta7] if os.path.exists(__file__):

[sagelib-9.8.beta7] filename = __file__

[sagelib-9.8.beta7] with tokenize.open(__file__) as f:

[sagelib-9.8.beta7] setup_py_code = f.read()

[sagelib-9.8.beta7] else:

[sagelib-9.8.beta7] filename = "<auto-generated setuptools="" caller="">"

[sagelib-9.8.beta7] setup_py_code = "from setuptools import setup; setup()"

[sagelib-9.8.beta7]

[sagelib-9.8.beta7] exec(compile(setup_py_code, filename, "exec"))

[sagelib-9.8.beta7] '"'"''"'"''"'"' % ('"'"'/home/draz/sage/src/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' --no-user-cfg develop --no-deps

[sagelib-9.8.beta7] cwd: /home/draz/sage/src/

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

[sagelib-9.8.beta7]

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

[sagelib-9.8.beta7] │ exit code: 1

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

[sagelib-9.8.beta7]

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

[sagelib-9.8.beta7]


[sagelib-9.8.beta7] Error installing

[sagelib-9.8.beta7] ********************************************** [sagelib-9.8.beta7]

edit retag flag offensive close merge delete

Comments

It's best to provide information about the OS and any system packages, but my guess is that the system's version of Singular is too new. Try make distclean; ./configure --with-system-singular=no and then make.

John Palmieri gravatar imageJohn Palmieri ( 2023-01-29 20:42:39 +0100 )edit

I'll try your suggestion. I use

$lsb_release -a                                                                                                                                           
LSB Version:    n/a
Distributor ID: ManjaroLinux
Description:    Manjaro Linux
Release:    22.0.1
Codename:   Sikaris

and

$ uname -a
Linux xxx 6.1.7-1-MANJARO #1 SMP PREEMPT_DYNAMIC Wed Jan 18 22:33:03 UTC 2023 x86_64 GNU/Linux

Thanks for the hint.

draz gravatar imagedraz ( 2023-01-30 00:34:07 +0100 )edit

Yes, but another error occurred:

make[4]: *** [Makefile:3257: sagemath_doc_html-SAGE_DOCS-no-deps] Error 2
make[3]: *** [Makefile:3257: /home/draz/sage/local/var/lib/sage/installed/sagemath_doc_html-none] Error 2
make[2]: *** [Makefile:2761: all-start] Error 2

I'll try the stable version.

draz gravatar imagedraz ( 2023-01-30 01:30:04 +0100 )edit

same error with the released version. Finally,

sudo pacman -S sagemath

worked. However I am wondering if someone with Manjaro/arch managed to install the developing version from source.

draz gravatar imagedraz ( 2023-01-30 03:44:48 +0100 )edit