muhzi added the comment:
Yeah, makes sense
--
___
Python tracker
<https://bugs.python.org/issue36162>
___
___
Python-bugs-list mailing list
Unsubscribe:
muhzi added the comment:
err, wrong logs sorry...
configure:11514: checking for truncate
configure:11514: armv7a-linux-androideabi16-clang -o conftest -pie
-march=armv7-a -Wl,--fix-cortex-a8 conftest.c -ldl >&5
configure:11514: $? = 0
configure:11514: result: yes
configu
muhzi added the comment:
Yes it is detected by configure because they exist.
>From config.log:
configure:11514: checking for truncate
configure:11514: armv7a-linux-androideabi21-clang -o conftest -pie
-march=armv7-a -Wl,--fix-cortex-a8 conftest.c -ldl >&5
configure:115
muhzi added the comment:
After some testing, it works and builds extensions OK for android arm with
API>=21. fails on lower API versions (e.g. 16).
--
___
Python tracker
<https://bugs.python.org/issu
muhzi added the comment:
Using the latest NDK r19. Here is my compilation steps for arm:
export PATH="$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH"
export CC="armv7a-linux-androideabi16-clang"
export CXX="$CC++"
export AR="arm-linux-a
New submission from muhzi :
I encountered yet another issue with cross compilation on android, it so
happens that these errors occur only when I cross compile for non 64-bit archs.
i.e. I could cross compile just fine for arm64 & x86_64 but the 32-bit version
of these archs prod
muhzi added the comment:
Yes, pretty much so, which I think was what caused the pthread problem. Why
would it fail to find the headers?
--
___
Python tracker
<https://bugs.python.org/issue36
Change by muhzi :
--
title: android arm cross compilation fails, h -> android arm cross compilation
fails, config issue
___
Python tracker
<https://bugs.python.org/issu
New submission from muhzi :
This is a follow up of #36141, I'm trying to build python for android armv7a.
The problem was the configure script fails to find pthread_create in the
android headers. Now after getting past the configuration, I get a build error:
armv7a-linux-androideabi16-clang
muhzi added the comment:
OK! NDK version is 19.1.5304403
Cool, so I uploaded the output of configure (attachments)
Sorry for the confusion about pyconfig.h, what I was trying to say is after
providing ac_cv_pthread_is_default=yes to configure I get errors in make:
Python/pytime.c:911:9
muhzi added the comment:
Well, it solves the problem with the configure script.
My pyconfig.h.in contains:
/* Define to 1 if you have the header file. */
#undef HAVE_PTHREAD_H
/* Define to 1 if you have the `pthread_init' function. */
#undef HAVE_PTHREAD_INIT
/* Define to 1 if you have
Change by muhzi :
--
type: -> compile error
___
Python tracker
<https://bugs.python.org/issue36141>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by muhzi :
--
components: +Cross-Build
nosy: +Alex.Willmer
___
Python tracker
<https://bugs.python.org/issue36141>
___
___
Python-bugs-list mailin
New submission from muhzi :
I am facing a problem while trying to compile Python for android armv7a using
the latest NDK version (clang). The configure script fails to find pthread
library, which should be bundled in libc. Here is the full configure output:
Building for armv7a-linux
muhzi added the comment:
Ah! I used the option -Bsymbolic while linking the extension to make it work
and it did, but I figure it is not ideal. I will be checking that patch!
--
components: +Extension Modules -Regular Expressions
___
Python
Change by muhzi :
Added file: https://bugs.python.org/file48140/xcompile-py3.sh
___
Python tracker
<https://bugs.python.org/issue35997>
___
___
Python-bugs-list mailin
Change by muhzi :
Removed file: https://bugs.python.org/file48139/xcompile-py3.sh
___
Python tracker
<https://bugs.python.org/issue35997>
___
___
Python-bugs-list mailin
muhzi added the comment:
OK, I uploaded it. I give the path for NDK then it determines those values for
the target architecture, in my case I use it for x86_64.
--
Added file: https://bugs.python.org/file48139/xcompile-py3.sh
___
Python tracker
muhzi added the comment:
Yes, the symbols are there.
And here is how I cross compiled Python:
export CC="${ANDROID_TARGET}${ANDROID_API}-clang"
export CXX="$CC++"
# environment variables for binary utils..
export AR="$BIN_UTILS_PREFIX-ar"
export LD
New submission from muhzi :
I cross compiled python for android x86_64, and the interpreter works fine, no
problems. But when I compiled some other extension and try to import it. I get
an import error as such the imported shared library fails to locate the symbol
"PyBool_Type".
I
New submission from muhzi :
Trying to cross compile python for android using NDK r19. but I keep facing a
linker error.
x86_64-linux-android21-clang -pie
-L~/Android/Sdk/ndk-bundle/platforms/android-21/arch-x86_64/usr/lib64 -Xlinker
-export-dynamic -o python \
Modules
Change by muhzi :
--
components: Cross-Build
nosy: Alex.Willmer, muhzi
priority: normal
severity: normal
status: open
title: crosscompilation fails with clang on android
type: compile error
versions: Python 2.7
___
Python tracker
<ht
22 matches
Mail list logo