Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Building for target of different words size than host #14

Open
jaskij opened this issue Jan 13, 2021 · 2 comments
Open

Building for target of different words size than host #14

jaskij opened this issue Jan 13, 2021 · 2 comments

Comments

@jaskij
Copy link

jaskij commented Jan 13, 2021

I'm trying to build scipy for a 32-bit target (Cortex-A7) using a 64-bit host and am hitting an error which I suppose has something to do with this:

| build/tmp-glibc/work/armv7vet2hf-neon-ultima-linux-gnueabi/python3-scipy/1.5.3-r0/recipe-sysroot-native/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?)."
|       |  ^~~~~

It seems that for whatever reason the native pyport.h is used which due to the word size mismatch will obviously be wrong.

@jaskij
Copy link
Author

jaskij commented Jan 14, 2021

To be specific, this happens when trying to compile pypocketfft.cxx in scipy/fft/_pocketfft.

It seems that the issue here is more with pybind11 than with NumPy or SciPy

@jaskij
Copy link
Author

jaskij commented Jan 20, 2021

I can't share the patch, but _pocketfft's setup.py gets a list of include directories which not only draws in native but even host include directories.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant