[issue23496] Steps for Android Native Build of Python 3.4.2

2019-10-22 Thread STINNER Victor
STINNER Victor added the comment: It seems like attached patches are outdated: Python has been fixed to support Android. For example, Python now uses the UTF-8 codec rather than mbstowcs() to decode byte strings. I'm quite sure that there are still corner cases which are not well supported

[issue23496] Steps for Android Native Build of Python 3.4.2

2016-06-07 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2016-04-25 Thread Eric Snow
Eric Snow added the comment: FYI: https://mail.python.org/pipermail/python-dev/2016-April/144320.html -- nosy: +eric.snow ___ Python tracker ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2016-04-20 Thread Roman Evstifeev
Changes by Roman Evstifeev : -- nosy: +Roman.Evstifeev ___ Python tracker ___ ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-11-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ryan, please sign the PSF Contributor Agreement https://www.python.org/psf/contrib/ https://www.python.org/psf/contrib/contrib-form/ Also, when replying by email, please delete the previous message, except possibly for quoting a line or two. When listed on

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-11-01 Thread Cyd Haselton
Cyd Haselton added the comment: Key note: it looks like the config option --with-hash-algorithm does nothing; python is still built with the siphash hash algorithim even though I specified fnv and, in pyconfig.h: /* Define hash algorithm for str, bytes and memoryview. SipHash24: 1, FNV: 2,

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-11-01 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Are there no binaries? Pretty sure it isn't your device. I'd think a compiler issue. What are you using, and what version? You have insane determination! :D On November 1, 2015 8:34:21 AM CST, Cyd Haselton wrote: > >Cyd Haselton added

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-11-01 Thread Cyd Haselton
Cyd Haselton added the comment: Pretty sure there are binaries, but the python binary can't build its own modules. I'm using GCC 4.9.2 on Android L...which means it is a PIE and that Python is being built as a PIE -- ___ Python tracker

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-11-01 Thread Cyd Haselton
Cyd Haselton added the comment: GDB debugging isn't going to happen any time soon; all of the gdb tests fail. I re-compiled with the --with-pydebug option, thinking that would help, but it won't build; I get the following error when the newly built python starts to build packages: Debug

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-10-31 Thread Cyd Haselton
Cyd Haselton added the comment: UPDATE: Finslly rebuilding Python from github clone after having to factory reset my tablet for reasons (root access). Hopefully build and tests will benefit from paving and starting over. -- ___ Python tracker

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-10-31 Thread Cyd Haselton
Cyd Haselton added the comment: Unfortunately, in spite of the other minor issues that resolved,I am still getting a bus error when the hash test runs. Before I dive back into trying to get gdb working to debug this, is there any way to skip this test to see of the others run? --

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-09-26 Thread Cyd Haselton
Cyd Haselton added the comment: UPDATE: Before downloading/building Google gdb source I ran test_gdb.py, which failed completely. Details of those tests are attached. -- Added file: http://bugs.python.org/file40586/test_gdb.log ___ Python tracker

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-09-25 Thread Cyd Haselton
Cyd Haselton added the comment: Still battling this bus error issue. Recompiling gdb --with-python did not help; I still cannot get any useful info out of it. I suspect it may be due to this error: setpgrp failed in child: No such process but I'm not sure. At this point I'm going to try

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-09-17 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: -ethan.furman ___ Python tracker ___ ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-09-15 Thread Cyd Haselton
Cyd Haselton added the comment: Ryan, Here's the results after the edit to the ctypes test. I also re-compiled gdb with python support, which is why this took so long (gdb) file ./python Load new symbol table from "./python"? (y or n) y Reading symbols from ./python...done. Traceback (most

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-26 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: I don't think so. I believe that switch is just to enable writing gdb extensions in Python. On August 26, 2015 9:34:29 AM CDT, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: UPDATE: Still working on the test_hash issue; not making

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-26 Thread Cyd Haselton
Cyd Haselton added the comment: UPDATE: Still working on the test_hash issue; not making much progress QUESTION Does gdb have to be configured with the --with-python switch in order to debug the python binary correctly? -- ___ Python tracker

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-22 Thread Cyd Haselton
Cyd Haselton added the comment: On August 22, 2015 2:47:42 PM CDT, Ryan Gonzalez rep...@bugs.python.org wrote: Ryan Gonzalez added the comment: I'm assuming gdb still doesn't work? It does. I just don't know it well enough to know if the errors are something I'm doing wrong or something the

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-22 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: After typing 'run', enter 'bt' and post the results. On Sat, Aug 22, 2015 at 3:06 PM, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: On August 22, 2015 2:47:42 PM CDT, Ryan Gonzalez rep...@bugs.python.org wrote: Ryan Gonzalez

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-22 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: I'm assuming gdb still doesn't work? On August 22, 2015 1:06:41 PM CDT, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: Update: I found this bug report (https://bugs.python.org/issue23786) and re-compiled python with

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-22 Thread Cyd Haselton
Cyd Haselton added the comment: Update: I found this bug report (https://bugs.python.org/issue23786) and re-compiled python with -mno-unaligned-access as mentioned. test_hash still throws a bus error. Back to drawing boardsuggestions welcome. --

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-21 Thread Cyd Haselton
Cyd Haselton added the comment: Question for Ryan Gonzalez: Given this information... On August 20, 2015 8:03:13 PM CDT, Russell Keith-Magee rep...@bugs.python.org wrote: Russell Keith-Magee added the comment: What hardware architecture are you compiling for? If it's ARM64, and you're not

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-21 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: On August 21, 2015 9:25:10 AM CDT, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: Question for Ryan Gonzalez: Given this information... On August 20, 2015 8:03:13 PM CDT, Russell Keith-Magee rep...@bugs.python.org wrote: Russell

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-21 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Bus error is basically unaligned memory access. ... ...do you feel like trying to get a backtrace from GDB again? :) (The last time likely didn't end well because the machine stack got somehow corrupted.) On Fri, Aug 21, 2015 at 2:04 PM, Cyd Haselton

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-21 Thread Cyd Haselton
Cyd Haselton added the comment: Thanks Ryan. Running ./python -m test (with the edit to the __init__.py for ctypes) produces the following error: [151/390/18] test_hash Fatal Python error: Bus error Current thread 0xb6f72ec8 (most recent call first): File

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-20 Thread Russell Keith-Magee
Russell Keith-Magee added the comment: What hardware architecture are you compiling for? If it's ARM64, and you're not using a trunk version of libffi, that segfault in test_ctypes is to be expected. Does this mean I can safely ignore the segfault? Well, safely in the sense that everything

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-20 Thread Cyd Haselton
Cyd Haselton added the comment: A few questions for Russell: What hardware architecture are you compiling for? If it's ARM64, and you're not using a trunk version of libffi, that segfault in test_ctypes is to be expected. Does this mean I can safely ignore the segfault? Are you using the

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-17 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Wait, did you compile this with Clang? On August 17, 2015 9:24:50 AM CDT, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: Result: (gdb) bt #0 0xb6a63cc8 in ?? () #1 0xb6a5feb0 in ?? () Backtrace stopped: previous frame identical

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-17 Thread Cyd Haselton
Cyd Haselton added the comment: Result: (gdb) bt #0 0xb6a63cc8 in ?? () #1 0xb6a5feb0 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) -- ___ Python tracker rep...@bugs.python.org

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-17 Thread Cyd Haselton
Cyd Haselton added the comment: No...compiled with GCC 4.9.2 On August 17, 2015 9:39:55 AM CDT, Ryan Gonzalez rep...@bugs.python.org wrote: Ryan Gonzalez added the comment: Wait, did you compile this with Clang? On August 17, 2015 9:24:50 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-15 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: What if you run: bt ? On August 15, 2015 7:32:37 PM CDT, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: I thought porting gdb would be the difficult part of getting debug info. I was so wrong. Here is what I have so far, after

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-15 Thread Cyd Haselton
Cyd Haselton added the comment: I thought porting gdb would be the difficult part of getting debug info. I was so wrong. Here is what I have so far, after lengthy consultation of the gdb manual. Bear with me...it's basically a copy paste of gdb session output: (gdb) run Starting program:

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-12 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Doesn't Python still have debug symbols? The system ones don't matter too much. On August 12, 2015 6:21:23 AM CDT, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: After struggling to get helpful output from gdb it is looking like it

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-12 Thread Cyd Haselton
Cyd Haselton added the comment: After struggling to get helpful output from gdb it is looking like it will not be possible due to the lack of debugging symbols in the libs on the android device. Still investigating. -- ___ Python tracker

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-30 Thread Cyd Haselton
Cyd Haselton added the comment: A nominal bump before starting to re-build a PIE gdb to debug the segfault above -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-29 Thread Cyd Haselton
Cyd Haselton added the comment: Finally found a hacky fix for the no module named _struct found; I copied all Modules/*.cpython-34m.so objects to Lib. Unfortunately I still get a segfault error when test_ctypes is run: [ 83/390/11] test_ctypes Fatal Python error: Segmentation fault Current

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-25 Thread Marco Paolini
Changes by Marco Paolini markopaol...@gmail.com: -- nosy: +mpaolini ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ ___ Python-bugs-list

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-25 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: So...I have *no* clue why _struct can't be found. Can you use gdb to get the segfault backtrace like you did before? On July 25, 2015 6:56:10 AM CDT, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: I assume so; I'm using whatever is

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-25 Thread Cyd Haselton
Cyd Haselton added the comment: As soon as I build a PIE gdb I can. And right now, running ./python -m test throws the ImportError...so I'll need to resolve that first On Jul 25, 2015 12:38 PM, Ryan Gonzalez rep...@bugs.python.org wrote: Ryan Gonzalez added the comment: So...I have *no*

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-25 Thread Cyd Haselton
Cyd Haselton added the comment: I assume so; I'm using whatever is pulled frommy fork of the git repo. I've actually run into a different error that occured when i rebuilt to include readline support; when I run ./python -m test I;m getting ImportError: no module named _struct found. Trying

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-24 Thread Cyd Haselton
Cyd Haselton added the comment: I'm compiling for ARM, not ARM64, on an armv7 device. On July 23, 2015 7:10:35 PM CDT, Russell Keith-Magee rep...@bugs.python.org wrote: Russell Keith-Magee added the comment: What hardware architecture are you compiling for? If it's ARM64, and you're not

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-24 Thread Russell Keith-Magee
Russell Keith-Magee added the comment: Are you using the libffi sources vendored into the Python source tree, or a more recent version? I can verify that libffi v3.2 works on ARMv7 (on iOS, anyway), and there's been plenty of changes to the ARM source tree since the Python version was

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-23 Thread Russell Keith-Magee
Russell Keith-Magee added the comment: What hardware architecture are you compiling for? If it's ARM64, and you're not using a trunk version of libffi, that segfault in test_ctypes is to be expected. -- ___ Python tracker rep...@bugs.python.org

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-23 Thread Cyd Haselton
Cyd Haselton added the comment: Build complete. Unfortunately while some of the tests complete successfully, the run ends in a segfault (see attached log) -- Added file: http://bugs.python.org/file40002/py_test_results.log ___ Python tracker

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-22 Thread Cyd Haselton
Cyd Haselton added the comment: UPDATE: Build environment is up and running; cloning repo now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-19 Thread Cyd Haselton
Cyd Haselton added the comment: UPDATE: Haven't forgotten about this; I'm currently (thanks to Android's new mandatory PIE binaries requirement) rebuilding all of the necessary utilities (openssl, curl, git, etc) so that I can clone and test. Between the above and a sharp increase in workload

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-19 Thread Alex Walters
Changes by Alex Walters tritium-l...@sdamon.com: -- nosy: +tritium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ ___ Python-bugs-list

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-30 Thread Cyd Haselton
Cyd Haselton added the comment: Your question about -fPIE brings up a question: How should the differences between Android 5 and previous versions be handled in regards to this issue? Other than mandatory -fPIE, there are changes to Android[s libc that may make patches for python on Android

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-30 Thread Cyd Haselton
Cyd Haselton added the comment: On June 30, 2015 9:20:45 AM CDT, Ryan Gonzalez rep...@bugs.python.org wrote: Ryan Gonzalez added the comment: On June 30, 2015 8:14:34 AM CDT, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: Your question about -fPIE brings up a

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-30 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: On June 30, 2015 8:14:34 AM CDT, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: Your question about -fPIE brings up a question: How should the differences between Android 5 and previous versions be handled in regards to this issue?

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-29 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: You compiled with -fPIE and GCC, right? I know the Android Clang seems broken. On June 29, 2015 7:09:25 AM CDT, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: FYI, Figured out that running ./configure with --with-pydebug does NOT

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-29 Thread Cyd Haselton
Cyd Haselton added the comment: FYI, Figured out that running ./configure with --with-pydebug does NOT define Py_DEBUG in pyconfig.h. Defining it in pyconfig.h got me past the undefined reference to `_PyUnicode_CheckConsistency' error, but i'm now getting this: if test $? -ne 0 ; then \

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-29 Thread Cyd Haselton
Cyd Haselton added the comment: No...haven't upgraded to Android 5.0 yet. On June 29, 2015 9:00:01 AM CDT, Ryan Gonzalez rep...@bugs.python.org wrote: Ryan Gonzalez added the comment: You compiled with -fPIE and GCC, right? I know the Android Clang seems broken. On June 29, 2015 7:09:25 AM

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-27 Thread Cyd Haselton
Cyd Haselton added the comment: I've run into an error when building python in preparation for running tests (i. e. with --with-pydebug in the ./configure params). ./libpython3.4dm.so: undefined reference to `_PyUnicode_CheckConsistency' It doesn't seem to be defined anywhere in source that I

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-23 Thread Cyd Haselton
Cyd Haselton added the comment: UPDATE: Spent this past weekend fixing the broken on-device compiler. Will get to tests this weekend -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-17 Thread Cyd Haselton
Cyd Haselton added the comment: Update: Now that I;ve finished porting a much-needed gdb to my device, I should have time to tackle patch and testing this weekend. Will post results when I have them. -- ___ Python tracker rep...@bugs.python.org

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-05 Thread Cyd Haselton
Cyd Haselton added the comment: Will do...if by try the tests now you mean run 'make tests'...but it may be about a week or two as a) I'm currently in the last stages of a mono port and b) will be working on a PIE gcc for android 5.0 after, so that I have a KBOX environment to work with after

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-05 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: On June 5, 2015 6:22:07 AM CDT, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: Will do...if by try the tests now you mean run 'make tests' Pretty much. ...but it may be about a week or two as a) I'm currently in the last stages of

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-04 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: #1 and #2 are fixed. I hand-edited the patch file (!!), so here's to hoping it'll work... Working on #3. You probably should try the tests now (which is obviously the scary part ;). -- Added file: http://bugs.python.org/file39628/kbox_fix.patch

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-04 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Fixes for readline and _crypt done. -- Added file: http://bugs.python.org/file39629/lib_fixes.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-05-29 Thread Cyd Haselton
Cyd Haselton added the comment: All, Just checking in as it has been a while...is there anything I need to do on my end for this port? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-05-29 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: I thought you were running the tests... Or was there something I had to do that I missed? On May 29, 2015 5:54:18 AM CDT, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: All, Just checking in as it has been a while...is there

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-05-29 Thread Cyd Haselton
Cyd Haselton added the comment: On May 29, 2015 10:52:23 AM CDT, Ryan Gonzalez rep...@bugs.python.org wrote: Ryan Gonzalez added the comment: I thought you were running the tests... Which tests? Or was there something I had to do that I missed? From one of the earlier messages I posted:

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-26 Thread Cyd Haselton
Cyd Haselton added the comment: On a related note, I managed to get pip working with this build...minus some errors with verbose mode. I first had to make some edits to setup.py and Modules/Setup so that the build would find and make the _ssl and lzip modules. After running make install, I

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-23 Thread Cyd Haselton
Cyd Haselton added the comment: Finally got readline to work with this build, but since the fixes are to the readline source tree I'm not sure if they should go here. With that plus whatever fixes to patches I suggested previously, I think this build works. What would be the next steps for

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-22 Thread Cyd Haselton
Cyd Haselton added the comment: Still working at this; I can't get the readline module to work. It is built successfully but importing it produces the following error: Traceback (most recent call last): File stdin, line 1, in module ImportError: dlopen failed: could not load library

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-20 Thread Cyd Haselton
Cyd Haselton added the comment: FYI, I'm on commit c917493dc4ea2c32371da861aca2235f0a08e68e -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-20 Thread Cyd Haselton
Cyd Haselton added the comment: Ryan, There's not a python.c in the ./Programs file? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-20 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Nevermind. I was just being stupid. I kept searching the Python directory for references to get_codec_name and _PyMem_RawStrdup and completely missed the Programs directory. Sorry. Did the updated kbox_fix.patch work? --

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-20 Thread Cyd Haselton
Cyd Haselton added the comment: Ryan, Completely forgot to download and apply it, but based on what I see there are a few things that need to be corrected. 1) -python3.4m needs to be changed to -python3.5m...or the appropriate versioning variable. 2) colons at the end of the elif lines in

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-19 Thread Cyd Haselton
Cyd Haselton added the comment: Ryan, Found the missing fix. In ./Programs/python.c #ifndef __ANDROID__ oldloc = _PyMem_RawStrdup(setlocale(LC_ALL, NULL)); if (!oldloc) { fprintf(stderr, out of memory\n); return 1; }

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-19 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: On Sun, Apr 19, 2015 at 7:16 PM, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: Ryan, Found the missing fix. In ./Programs/python.c #ifndef __ANDROID__ oldloc = _PyMem_RawStrdup(setlocale(LC_ALL, NULL)); if

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-19 Thread Cyd Haselton
Cyd Haselton added the comment: Patch for python.c that prevents segfault on Android -- Added file: http://bugs.python.org/file39135/python.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-19 Thread Ryan Gonzalez
Changes by Ryan Gonzalez rym...@gmail.com: Added file: http://bugs.python.org/file39134/kbox_fix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-19 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: That's the thing; my repo has no python.c! On April 19, 2015 7:39:19 PM CDT, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: Ryan, That fix is in the android_segfault patch, but it's for frozenmain.c not python.c I cloned from

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-19 Thread Cyd Haselton
Cyd Haselton added the comment: Ryan, That fix is in the android_segfault patch, but it's for frozenmain.c not python.c I cloned from master on Fri/Sat. Will double-check commit tomorrow but I think the problem is with the unpatched python.c --

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-18 Thread Cyd Haselton
Cyd Haselton added the comment: Do you have the time/means to create a quick patch for that? I ask because even a simple flip like that becomes a major pain when working with nano on a tablet. If not, I'll start on it. Just thought Id ask -- ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-18 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Ok...try going to Python/pylifecycle.c and changing lines 220-230 from: #elif defined(HAVE_LANGINFO_H) defined(CODESET) char* codeset = nl_langinfo(CODESET); if (!codeset || codeset[0] == '\0') { PyErr_SetString(PyExc_ValueError, CODESET is not

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-18 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Here: diff -r 38f5b3beeb2a Python/pylifecycle.c --- a/Python/pylifecycle.c Thu Mar 19 15:16:03 2015 -0500 +++ b/Python/pylifecycle.c Sat Apr 18 13:07:36 2015 -0500 @@ -217,6 +217,10 @@ char codepage[100]; PyOS_snprintf(codepage, sizeof(codepage), cp%d,

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-18 Thread Cyd Haselton
Cyd Haselton added the comment: Ryan, Sorry...same problem. Segmentation fault generate-posix-vars failed make: *** [pybuilddir.txt] Error 1 /bld/python/cpython-master/cpython $ addr2line -C -f -e /lib/libpython3.5m.so.1.0 0008f42c _PyMem_RawStrdup

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-17 Thread Cyd Haselton
Cyd Haselton added the comment: Ryan, Here's the output from addr2line bld/python/cpython-master/cpython $ addr2line -C -f -e /lib/libpython3.5m.so.1.0 0008f42c _PyMem_RawStrdup /bld/python/cpython-master/cpython/Objects/obmalloc.c:358 -- ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-15 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Can you try to see exactly *which* line of the function is segfaulting? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-13 Thread Cyd Haselton
Cyd Haselton added the comment: Unfortunately starting from scratch did not solve the issue. Still getting a segfault when the newly built binary tries to run sysconfig -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-11 Thread Cyd Haselton
Cyd Haselton added the comment: FYI, even with patches applied to main.c and python.c, the newly-built python binary segfaults in the same location. I'll tear down and re-do everything (git clone master, patch, configure and make) but I may not get to it until next weekend. --

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-09 Thread Cyd Haselton
Cyd Haselton added the comment: Perhaps the 'include androidfn.h' should be removed from pythonrun.c? Or the function definition added to the androidfn.h? (IANACC) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-09 Thread Cyd Haselton
Cyd Haselton added the comment: FYI, running 'make clean' make does not resolve the last reported issue. Trying 'make distclean' ./configure make. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-09 Thread Cyd Haselton
Cyd Haselton added the comment: H. That patch failed to apply: Possibly reversed hunk 1 at 1582 Hunk 1 failed 35/35 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-09 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Whoops. Updated the patch. -- Added file: http://bugs.python.org/file38881/rjmatthews64_fixes2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-09 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Ack...I feel smart. Attached is kind of a part 2 to the rjmatthews patch. Apply and the errors shall be solved. :) -- Added file: http://bugs.python.org/file38880/rjmatthews64_fixes2.patch ___ Python tracker

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-09 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Maybe it's conflicted with the last one... Try: git checkout Python/pythonrun.c git apply rjmatthews... On Thu, Apr 9, 2015 at 12:28 PM, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: H. That patch failed to apply:

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-09 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: ARGH! Fixed. Re-apply rjmatthews64_fixes2.patch. -- Added file: http://bugs.python.org/file38884/rjmatthews64_fixes2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-09 Thread Cyd Haselton
Cyd Haselton added the comment: Hello Ryan, Error from latest patch: Python/pythonrun.c:44:8: error: conflicting types for 'android_mbstowcs' size_t android_mbstowcs(wchar_t *dest, char * in, int maxlen) { ^ In file included from Python/pythonrun.c:18:0: Include/androidfn.h:10:8: note:

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-09 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: I put a fix in the patch; I don't know why the heck it didn't apply. Just go to Python/pythonrun.c, line 66 and put a semicolon (;) at the end of the line. On Thu, Apr 9, 2015 at 1:51 PM, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-09 Thread Cyd Haselton
Cyd Haselton added the comment: Done, but got this error: Python/pythonrun.c: In function 'android_wcstombs': Python/pythonrun.c:67:5: error: expected ';' before 'if' if (c = 0xdc800 c = 0xdcff) ^ Python/pythonrun.c:62:11: warning: variable 'c' set but not used

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-09 Thread Cyd Haselton
Cyd Haselton added the comment: Thanks Ryan. (Probably should remove original androidfn.h patch; patch complains with 'file already exists' if I don't delete Include/androidfn.h before applying the latest patch) -- ___ Python tracker

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-07 Thread Cyd Haselton
Cyd Haselton added the comment: Will do, re: removing the '+'. Also, attempted to apply the updated patch and got the following: /bld/python/cpython-master $ patch -p1 issue_20306\ \(1\).patch patching file Modules/pwdmodule.c Possibly reversed hunk 1 at 244 Hunk 1 FAILED 79/79.

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-07 Thread Cyd Haselton
Cyd Haselton added the comment: Update: Removing the random '+' on line 87 of pwdmodule.c allowed the build to continue but it failed again with the following during or soon after linking: Objects/unicodeobject.o: In function `PyUnicode_EncodeLocale':

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-06 Thread Ryan Gonzalez
Changes by Ryan Gonzalez rym...@gmail.com: Removed file: http://bugs.python.org/file38579/issue_20306.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-06 Thread Cyd Haselton
Cyd Haselton added the comment: Thanks Ryan, the patch worked. Latest error (when building Modules/pwdmodule.c:) ^ ./Modules/pwdmodule.c:86:2: error: stray '#' in program +#endif ^ ./Modules/pwdmodule.c:86:3: error: 'endif' undeclared (first use in this function) +#endif ^

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-06 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Remove the + at the beginning of line 87. I re-uploaded issue_20306.patch to fix that issue. -- Added file: http://bugs.python.org/file38853/issue_20306.patch ___ Python tracker rep...@bugs.python.org

  1   2   >