[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-06 Thread muhzi
muhzi added the comment: Yeah, makes sense -- ___ Python tracker <https://bugs.python.org/issue36162> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-02 Thread muhzi
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

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-02 Thread muhzi
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

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-01 Thread muhzi
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

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-01 Thread muhzi
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

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-01 Thread muhzi
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

[issue36145] android arm cross compilation fails, config issue

2019-02-28 Thread muhzi
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

[issue36145] android arm cross compilation fails, config issue

2019-02-28 Thread muhzi
Change by muhzi : -- title: android arm cross compilation fails, h -> android arm cross compilation fails, config issue ___ Python tracker <https://bugs.python.org/issu

[issue36145] android arm cross compilation fails, h

2019-02-28 Thread muhzi
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

[issue36141] configure: error: could not find pthreads on your system during cross compilation

2019-02-28 Thread muhzi
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

[issue36141] configure: error: could not find pthreads on your system during cross compilation

2019-02-28 Thread muhzi
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

[issue36141] configure: error: could not find pthreads on your system during cross compilation

2019-02-27 Thread muhzi
Change by muhzi : -- type: -> compile error ___ Python tracker <https://bugs.python.org/issue36141> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue36141] configure: error: could not find pthreads on your system during cross compilation

2019-02-27 Thread muhzi
Change by muhzi : -- components: +Cross-Build nosy: +Alex.Willmer ___ Python tracker <https://bugs.python.org/issue36141> ___ ___ Python-bugs-list mailin

[issue36141] configure: error: could not find pthreads on your system during cross compilation

2019-02-27 Thread muhzi
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

[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-15 Thread muhzi
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

[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread muhzi
Change by muhzi : Added file: https://bugs.python.org/file48140/xcompile-py3.sh ___ Python tracker <https://bugs.python.org/issue35997> ___ ___ Python-bugs-list mailin

[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread muhzi
Change by muhzi : Removed file: https://bugs.python.org/file48139/xcompile-py3.sh ___ Python tracker <https://bugs.python.org/issue35997> ___ ___ Python-bugs-list mailin

[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread muhzi
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

[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread muhzi
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

[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-02-14 Thread muhzi
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

[issue35953] crosscompilation fails with clang on android

2019-02-10 Thread muhzi
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

[issue35953] crosscompilation fails with clang on android

2019-02-10 Thread muhzi
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