Skip to content

Comments

README.md: Procedure for building missing wheels of 3rd party packages (Linux ARM, Python 3.13, ...)#781

Merged
mkoeppe merged 5 commits intomainfrom
README-missing-wheels
May 11, 2025
Merged

README.md: Procedure for building missing wheels of 3rd party packages (Linux ARM, Python 3.13, ...)#781
mkoeppe merged 5 commits intomainfrom
README-missing-wheels

Conversation

@mkoeppe
Copy link
Member

@mkoeppe mkoeppe commented May 11, 2025

Since https://github.com/passagemath/passagemath/releases/tag/passagemath-10.5.32, Linux ARM wheels are available @xuluze but some 3rd party packages have not published wheels for this platform.

Here we document a robust procedure for building these wheels on the user's system.

@xuluze
Copy link
Contributor

xuluze commented May 11, 2025

I tried the procedure.
In the step, pip install --force-reinstall -v passagemath-conf
The configure stuck at fricas:
Checking whether SageMath should install SPKG fricas...

I also tried ./configure in the current passagemath, and it is also stuck there.

@mkoeppe
Copy link
Member Author

mkoeppe commented May 11, 2025

Do you have fricas on your machine? (What does command -v fricas say?)
Try uninstalling it (apt-get remove fricas)

@xuluze
Copy link
Contributor

xuluze commented May 11, 2025

I have fricas installed. Shall I remove it and don't install it?

@mkoeppe
Copy link
Member Author

mkoeppe commented May 11, 2025

Yes, uninstall it please, it's not needed

@xuluze
Copy link
Contributor

xuluze commented May 11, 2025

After uninstalling fricas, it installs the four packages.
But passagemath-conf fails to build.
And sage-config cannot be found by export PIP_FIND_LINKS=$(sage-config SAGE_SPKG_WHEELS)
sage-config: command not found

I am wondering if we need to reset export SAGE_CONF_TARGETS=build or build-local?

@xuluze
Copy link
Contributor

xuluze commented May 11, 2025

Or is it sage-env-config?

@mkoeppe
Copy link
Member Author

mkoeppe commented May 11, 2025

passagemath-conf fails to build.

Can you find the log please?

@mkoeppe
Copy link
Member Author

mkoeppe commented May 11, 2025

sage-config cannot be found by export PIP_FIND_LINKS=$(sage-config SAGE_SPKG_WHEELS)

Yes, that's only available after a successful install of passagemath-conf.

@xuluze
Copy link
Contributor

xuluze commented May 11, 2025

install.log
This shows the packages are finished.
Then the terminal output is:

  error: make ${SAGE_CONF_TARGETS-base} failed
  error: subprocess-exited-with-error

  × Building wheel for passagemath-conf (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /home/xuluze/passagemath-venv/bin/python3 /home/xuluze/passagemath-venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmp961ne0go
  cwd: /tmp/pip-install-17ax5urw/passagemath-conf_78e9fccd973149e985ac0aa3e971c0f9
  Building wheel for passagemath-conf (pyproject.toml) ... error
  ERROR: Failed building wheel for passagemath-conf
Failed to build passagemath-conf
ERROR: Could not build wheels for passagemath-conf, which is required to install pyproject.toml-based projects

@xuluze
Copy link
Contributor

xuluze commented May 11, 2025

These should be the related logs.
pip-25.0.1.log
config.log

@mkoeppe mkoeppe force-pushed the README-missing-wheels branch from 9cbe3d1 to b1d008f Compare May 11, 2025 19:30
@mkoeppe
Copy link
Member Author

mkoeppe commented May 11, 2025

@xuluze Thanks. This is a parallelization bug in passagemath-conf. I've fixed it now I think.
As a workaround until new versions are pushed, please try: export MAKE=make

@mkoeppe mkoeppe merged commit cab42cf into main May 11, 2025
31 of 199 checks passed
@mkoeppe mkoeppe deleted the README-missing-wheels branch May 11, 2025 21:05
@xuluze
Copy link
Contributor

xuluze commented May 11, 2025

Thank you very much! I tried export MAKE=make and it works.

When sage starts, it has the following message:

// ** Could not find dynamic library: p_Procs_FieldIndep.so (path /home/xuluze/passagemath-venv/lib/python3.12/site-packages/sage_wheels/bin/..)
// ** Singular will work properly, but much slower.
// ** See the INSTALL section in the Singular manual for details.

@mkoeppe
Copy link
Member Author

mkoeppe commented May 11, 2025

Thanks. The message from singular is already tracked in #713

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants