could not find Python headers when cross compiling: LONG_BIT definition appears wrong for platform (bad gcc/glibc config?).
I am trying to package nautilus-python
for Void Linux. When cross compiling for armv7l
, I got errors in configure:
configure:9474: checking for headers required to compile python extensions
configure:9530: armv7l-linux-gnueabihf-cpp -I/usr/include/python3.8 -I/usr/include/python3.8 conftest.c
In file included from /usr/include/python3.8/Python.h:63,
from conftest.c:23:
/usr/include/python3.8/pyport.h:726:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
726 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
I've tried cross compilation for different architectures, but got the same error.
Here's the full config.log .
Edited by Andre Klapper