You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/bin/ld: build/temp.linux-armv8l-3.10/src/numbers.o: in function `_PyFloat_is_Intlike':
/home/iurt/rpmbuild/BUILD/fastnumbers-3.2.1/src/numbers.c:69: undefined reference to `floor'
As the code uses floor() it should set -lm when linking. I guess on other architectures something else is already pulling in -lm so it was not noticed.
Adding extra_link_args=["-lm"]to setup.py fixes it.
Environment (please complete the following information):
fastnumbers version: 3.2.1
Python Version: 3.10
OS: Mageia
Compiler (if known): gcc 11.2
The text was updated successfully, but these errors were encountered:
Describe the bug
Build failure on armv7hl
As the code uses floor() it should set -lm when linking. I guess on other architectures something else is already pulling in -lm so it was not noticed.
Adding
extra_link_args=["-lm"]
to setup.py fixes it.Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: