error building gmpy2 (rasperry pi)

125 views
Skip to first unread message

Emil Widmann

unread,
Dec 31, 2023, 4:01:54 PM12/31/23
to sage-devel
uname -a
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
gcc version 10.2.1 20210110 (Raspbian 10.2.1-6+rpi1) 

I get the following error:

Building wheel for gmpy2 (setup.py): finished with status 'done'
  Created wheel for gmpy2: filename=gmpy2-2.1.2-cp39-cp39-linux_aarch64.whl size=681411 sha256=4d2bbd2af65f5c5b1825755a18e6acb4ce8176a937765b2db5424c15a1d18318
  Stored in directory: /tmp/pip-ephem-wheel-cache-rbthbrnz/wheels/79/ff/e8/c51beabfd533d837031ea07bcac1aa8094f67d4371e077f79f
Successfully built gmpy2
WARNING: Skipping gmpy2 as it is not installed.
Using pip 22.3.1 from /home/papa/sage-build/sage-10.1/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/pip (python 3.9)
Looking in links: /home/papa/sage-build/sage-10.1/local/var/lib/sage/venv-python3.9/var/lib/sage/wheels
ERROR: gmpy2-2.1.2-cp39-cp39-linux_aarch64.whl is not a supported wheel on this platform.

what am i doing wrong? 
Is it even possible on ARM?
thanks!



gmpy2-2.1.2.log
config.log

Matthias Koeppe

unread,
Dec 31, 2023, 4:37:26 PM12/31/23
to sage-devel
We don't test this platform. 
Has the installation succeeded in building any platform wheels yet? (What does "ls venv/var/lib/sage/" say?)
If you do something like "/usr/bin/python3 -m pip install --user numpy", does it succeed and what whl file does it try to install?

Dima Pasechnik

unread,
Dec 31, 2023, 6:06:28 PM12/31/23
to sage-...@googlegroups.com
Is there an (incomplete?) Sage 10.1 installation that is interfering?

Asking, as the log says:

Using pip 22.3.1 from /home/papa/sage-build/sage-10.1/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/pip

We used to be able to build Sage on Rasperry Pi arm32. It had a weird bug, though.

If someone can tell me how to install a 64-bit OS on Raspberry Pi 4 (I have one collecting dust in a box) I can try this.
RPi used to hesitate in regard of switching to 64-bit, having it "unofficial" for years, and last time I checked a year or so ago, they still were in two minds, it was quite hard to tell which installer to choose.

In principle aarch 64 should not be a problem at all.





Emil Widmann

unread,
Jan 1, 2024, 2:30:43 AM1/1/24
to sage-devel
I did:

ls venv/var/lib/sage/
gives 3 directories:
installed  scripts  wheels

in directory wheels there are:
flit_core-3.7.1-py3-none-any.whl         packaging-21.3-py3-none-any.whl   selfcheck                              tomli-2.0.1-py3-none-any.whl
gmpy2-2.1.2-cp39-cp39-linux_aarch64.whl  pip-22.3.1-py3-none-any.whl       setuptools-65.6.3-py3-none-any.whl     typing_extensions-4.5.0-py3-none-any.whl
http-v2                                  pyparsing-3.0.9-py3-none-any.whl  setuptools_scm-7.0.5-py3-none-any.whl  wheel-0.38.4-py3-none-any.whl

/usr/bin/python3 -m pip install --user numpy
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (1.19.5)

installed a different package and it installed ok:
/usr/bin/python3 -m pip install --user pint
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pint
  Downloading https://www.piwheels.org/simple/pint/Pint-0.23-py3-none-any.whl (305 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 305.0/305.0 kB 1.9 MB/s eta 0:00:00
Requirement already satisfied: typing-extensions in /usr/local/lib/python3.9/dist-packages (from pint) (4.4.0)
Installing collected packages: pint
  WARNING: The script pint-convert is installed in '/home/papa/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pint-0.23

The original error message looks strange to me:
Successfully buílt, but
Wasrning because not installed.

Happy new year!

Emil Widmann

unread,
Jan 1, 2024, 2:41:51 AM1/1/24
to sage-devel
There is no earlier installation, it is a new box, I bought it for the kids.
I start the build directly in the source directory, the error reproduces after make distclean.

Installation of the 64bit-OS as no problem, I just downloaded and followed instructions from their homepage (just did Pi4 - 3 boxes). 

Thanks,
Happy new year!


Matthias Koeppe

unread,
Jan 1, 2024, 12:57:00 PM1/1/24
to sage-devel
On Sunday, December 31, 2023 at 11:30:43 PM UTC-8 Emil Widmann wrote:
I did:

ls venv/var/lib/sage/
gives 3 directories:
installed  scripts  wheels

in directory wheels there are:
flit_core-3.7.1-py3-none-any.whl         packaging-21.3-py3-none-any.whl   selfcheck                              tomli-2.0.1-py3-none-any.whl
gmpy2-2.1.2-cp39-cp39-linux_aarch64.whl  pip-22.3.1-py3-none-any.whl       setuptools-65.6.3-py3-none-any.whl     typing_extensions-4.5.0-py3-none-any.whl
http-v2                                  pyparsing-3.0.9-py3-none-any.whl  setuptools_scm-7.0.5-py3-none-any.whl  wheel-0.38.4-py3-none-any.whl

The "*-none-any.whl" files are architecture-independent.
So gmpy2 is simply the first platform wheel that was built.

 
/usr/bin/python3 -m pip install --user numpy
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (1.19.5)

OK, please repeat this test with another package; one that is not already installed, and that installs as a platform wheel from PyPI.
 
installed a different package and it installed ok:
/usr/bin/python3 -m pip install --user pint

Platform-independent, does not help with the diagnosis.

Reply all
Reply to author
Forward
0 new messages