building sage from git.
Hi I am trying to build sage from the source by cloning from the git repository. I tried with both the master and the develop branch. I am using Fedora 39. There is a issue with building sagelib. The relevant error is below. Any help appreciated.
Ayan
[sagelib-10.1] error: command '/usr/bin/gcc' failed with exit code 1
[sagelib-10.1] error: subprocess-exited-with-error
[sagelib-10.1]
[sagelib-10.1] × python setup.py develop did not run successfully.
[sagelib-10.1] │ exit code: 1
[sagelib-10.1] ╰─> See above for output.
[sagelib-10.1]
[sagelib-10.1] note: This error originates from a subprocess, and is likely not a problem with pip.
[sagelib-10.1] full command: /home/ayan/programs/sage/local/var/lib/sage/venv-python3.11.1/bin/python3 -c '
[sagelib-10.1] exec(compile('"'"''"'"''"'"'
[sagelib-10.1] # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
[sagelib-10.1] #
[sagelib-10.1] # - It imports setuptools before invoking setup.py, to enable projects that directly
[sagelib-10.1] # import from `distutils.core` to work with newer packaging standards.
[sagelib-10.1] # - It provides a clear error message when setuptools is not installed.
[sagelib-10.1] # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
[sagelib-10.1] # setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
[sagelib-10.1] # manifest_maker: standard file '"'"'-c'"'"' not found".
[sagelib-10.1] # - It generates a shim setup.py, for handling setup.cfg-only projects.
[sagelib-10.1] import os, sys, tokenize
[sagelib-10.1]
[sagelib-10.1] try:
[sagelib-10.1] import setuptools
[sagelib-10.1] except ImportError as error:
[sagelib-10.1] print(
[sagelib-10.1] "ERROR: Can not execute `setup.py` since setuptools is not available in "
[sagelib-10.1] "the build environment.",
[sagelib-10.1] file=sys.stderr,
[sagelib-10.1] )
[sagelib-10.1] sys.exit(1)
[sagelib-10.1]
[sagelib-10.1] __file__ = %r
[sagelib-10.1] sys.argv[0] = __file__
[sagelib-10.1]
[sagelib-10.1] if os.path.exists(__file__):
[sagelib-10.1] filename = __file__
[sagelib-10.1] with tokenize.open(__file__) as f:
[sagelib-10.1] setup_py_code = f.read()
[sagelib-10.1] else:
[sagelib-10.1] filename = "<auto-generated setuptools caller>"
[sagelib-10.1] setup_py_code = "from setuptools import setup; setup()"
[sagelib-10.1]
[sagelib-10.1] exec(compile(setup_py_code, filename, "exec"))
[sagelib-10.1] '"'"''"'"''"'"' % ('"'"'/home/ayan/programs/sage/src/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' --no-user-cfg develop --no-deps
[sagelib-10.1] cwd: /home/ayan/programs/sage/src/
[sagelib-10.1] error: subprocess-exited-with-error
[sagelib-10.1]
[sagelib-10.1] × python setup.py develop did not run successfully.
[sagelib-10.1] │ exit code: 1
[sagelib-10.1] ╰─> See above for output.
[sagelib-10.1]
[sagelib-10.1] note: This error originates from a subprocess, and is likely not a problem with pip.
The 6th line says "See above for output." Can you find error messages before this in the log file?
fedora 39 may be too new, using a too recent version of something, maybe gcc ?