sage 10.3.b2 build problem on OSX 12.7.1

61 views
Skip to first unread message

David Joyner

unread,
Dec 15, 2023, 1:52:10 PM12/15/23
to SAGE support, David Joyner
Hi:

I tried to compile sage and got this:

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

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


* package:         editables-0.5

  last build time: Dec 15 10:48

  log file:        /Users/davidjoyner/sagefiles/sage-10.3.beta2/logs/pkgs/editables-0.5.log


The corresponding log is attached.


Does anyone have any suggestions on how to fix this?

- David


editables-0.5.log

John H Palmieri

unread,
Dec 15, 2023, 3:04:24 PM12/15/23
to sage-support
In sage-release, Matthias pointed to missing dependencies for editables, fixed in https://github.com/sagemath/sage/pull/36885. Maybe you can just do "make flit_core" (to build the missing dependency) and then "make".

David Joyner

unread,
Dec 16, 2023, 6:40:00 AM12/16/23
to sage-s...@googlegroups.com
On Fri, Dec 15, 2023 at 3:04 PM John H Palmieri <jhpalm...@gmail.com> wrote:
In sage-release, Matthias pointed to missing dependencies for editables, fixed in https://github.com/sagemath/sage/pull/36885. Maybe you can just do "make flit_core" (to build the missing dependency) and then "make".

That works, thanks!!

BTW, on startup I got this:

./sage

┌────────────────────────────────────────────────────────────────────┐

│ SageMath version 10.3.beta2, Release Date: 2023-12-13             

│ Using Python 3.11.1. Type "help()" for help.                      

└────────────────────────────────────────────────────────────────────┘

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓

┃ Warning: this is a prerelease version, and it may be unstable.    

┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

/Users/davidjoyner/sagefiles/sage-10.3.beta2/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/prompt_toolkit/application/application.py:988: DeprecationWarning: There is no current event loop

  loop = asyncio.get_event_loop()

Seems to be working fine though.

Thanks again, John.
 


On Friday, December 15, 2023 at 10:52:10 AM UTC-8 David Joyner wrote:
Hi:

I tried to compile sage and got this:

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

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


* package:         editables-0.5

  last build time: Dec 15 10:48

  log file:        /Users/davidjoyner/sagefiles/sage-10.3.beta2/logs/pkgs/editables-0.5.log


The corresponding log is attached.


Does anyone have any suggestions on how to fix this?

- David


--
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/ce30cd4c-f431-4eb8-ac35-f4ab5e941e49n%40googlegroups.com.

Heiko Knospe

unread,
Dec 16, 2023, 9:45:44 AM12/16/23
to sage-support
Hi, 

same build problem with flit_core for sage 10.3.b2 on Debian 11:

[editables-0.5] Thread model: posix

[editables-0.5] Supported LTO compression algorithms: zlib zstd

[editables-0.5] gcc version 10.2.1 20210110 (Debian 10.2.1-6) 

[editables-0.5] ****************************************************

[editables-0.5] Package 'editables' is currently not installed

[editables-0.5] No legacy uninstaller found for 'editables'; nothing to do

[editables-0.5] Installing editables-0.5

[editables-0.5] Looking in links: /home/xxx/sage/local/var/lib/sage/venv-python3.9/var/lib/sage/wheels

[editables-0.5] Processing /home/xxx/sage/local/var/lib/sage/venv-python3.9/var/tmp/sage/build/editables-0.5/src

[editables-0.5]   Installing build dependencies: started

[editables-0.5]   Running command pip subprocess to install build dependencies

[editables-0.5]   Looking in links: /home/xxx/sage/local/var/lib/sage/venv-python3.9/var/lib/sage/wheels

[editables-0.5]   ERROR: Could not find a version that satisfies the requirement flit_core>=3.3 (from versions: none)

[editables-0.5]   ERROR: No matching distribution found for flit_core>=3.3

[editables-0.5]   error: subprocess-exited-with-error

[editables-0.5]   

[editables-0.5]   × pip subprocess to install build dependencies did not run successfully.

[editables-0.5]   │ exit code: 1

[editables-0.5]   ╰─> See above for output.


My (quick and dirty) workaround was to copy flit_core-3.9.0-py3-none-any.whl from https://www.piwheels.org/project/flit-core/ to local/var/lib/sage/venv-python3.9/var/lib/sage/wheels. Then compiling sage works and flit_core-3.9.0 is installed.

- Heiko

John H Palmieri

unread,
Dec 16, 2023, 2:44:24 PM12/16/23
to sage-support
Another quick solution (cherry-picked from the PR I mentioned) would be to change the first line of build/pkgs/editables/dependencies from

 | $(PYTHON_TOOLCHAIN) $(PYTHON)

to

 | flit_core $(PYTHON)
Reply all
Reply to author
Forward
0 new messages