[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 on Android, but I would suggest to open more specific issues 
in that case.

--
nosy: +vstinner
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the web page, big 
quotations are useless noise.

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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,
   externally defined: 0 */
#define Py_HASH_ALGORITHM 2

What's the correct way to build with fnv as the hash algorithm?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 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 memory block at address p=0xb6003070: API 'a'
>795107700 bytes originally requested
>The 3 pad bytes at p-3 are not all FORBIDDENBYTE (0xfb):
>at p-3: 0x2f *** OUCH
>at p-2: 0x00 *** OUCH
>at p-1: 0x00 *** OUCH
> Because memory is corrupted at the start, the count of bytes requested
>   may be bogus, and checking the trailing pad bytes may segfault.
>The 4 pad bytes at tail=0xe56491e4 are Segmentation fault
>generate-posix-vars failed
>
>Additional things I've attemptedto try to resolve the test_hash
>failure, based on this  bug report
>(https://mail.python.org/pipermail/python-bugs-list/2015-March/267442.html)
>1) compiling with -mno-unaligned-access
>2) compiling with FNV as the default hash algorithm.
>
>Neither worked. At this point I am at a loss and am beginning to think
>there may be a problem with my device.  Any suggestions are welcome.
>
>--
>
>___
>Python tracker 
>
>___

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 memory block at address p=0xb6003070: API 'a'
795107700 bytes originally requested
The 3 pad bytes at p-3 are not all FORBIDDENBYTE (0xfb):
at p-3: 0x2f *** OUCH
at p-2: 0x00 *** OUCH
at p-1: 0x00 *** OUCH
Because memory is corrupted at the start, the count of bytes requested
   may be bogus, and checking the trailing pad bytes may segfault.
The 4 pad bytes at tail=0xe56491e4 are Segmentation fault
generate-posix-vars failed

Additional things I've attemptedto try to resolve the test_hash failure, based 
on this  bug report 
(https://mail.python.org/pipermail/python-bugs-list/2015-March/267442.html)
1) compiling with -mno-unaligned-access
2) compiling with FNV as the default hash algorithm.

Neither worked. At this point I am at a loss and am beginning to think there 
may be a problem with my device.  Any suggestions are welcome.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 downloading the Google-patched 
version...hopefully it is patched such that the setpgrp bug is resolved.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 recent call last):
  File "/bld/pyt/cpython-android/python-gdb.py", line 59, in 
_type_char_ptr = gdb.lookup_type('char').pointer() # char*
AttributeError: 'module' object has no attribute 'lookup_type'

(gdb) set args -m tests
(gdb) set sysroot /usr/gcc-4.9-pie/sysroot
(gdb) run

Starting program: /bld/pyt/cpython-android/python -m tests
setpgrp failed in child: No such process
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.

Program received signal SIGILL, Illegal instruction.
0xb6a63cc8 in ?? ()
(gdb) bt
Python Exception  No module named 'gdb.frames':
#0  0xb6a63cc8 in ?? ()
#1  0xb6a5feb0 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 much progress

QUESTION
Does gdb have to be configured with the --with-python switch in order
to debug the python binary correctly?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 program is doing wrong.

Basically I'm running
gdb
file ./python
set args -m test
set sysroot /path/to/sysroot
run

and examining/posting the results.  Which are confusing to me because, again, 
don't know it well enough.

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 -mno-unaligned-access as mentioned. test_hash
still throws a bus error.

Back to drawing boardsuggestions welcome.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 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 program is doing wrong.

 Basically I'm running
 gdb
 file ./python
 set args -m test
 set sysroot /path/to/sysroot
 run

 and examining/posting the results.  Which are confusing to me because,
 again, don't know it well enough.
 
 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 -mno-unaligned-access as mentioned. test_hash
 still throws a bus error.
 
 Back to drawing boardsuggestions welcome.
 
 --
 
 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___
 
 --
 
 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 -mno-unaligned-access as mentioned. test_hash
still throws a bus error.

Back to drawing boardsuggestions welcome.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 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 except a very recent
version of libffi is known to not work on ARM64 - so if it doesn't
work, it's not because of something Python is doing wrong, it's a
problem with a dependency.


...do you know of a way to run all tests except _ctypes, so that Imcan verify 
everything else?

And to answer Russell's questions:

Are you using the libffi sources vendored into the Python source
tree, or a more recent version? 

By 'vendored in' do you mean 'sources included in python source tree
for building?'

Correct. The libffi source code that is in the Python source tree is
quite old, and *definitely* doesn't work on ARM64. I'm not even sure
that it works on ARMv7.

Definitely using the vendored in sources.


 Would your recommend downloading and building libffi from sources (on
device) and then building python?

Well, for starters - as I've said before, I'd recommend not compiling
on device at all, but that's a separate issue. 

Any particular reason why? The device I'm working with has a port of GCC which 
I've used to build other utilities that work well...given that I'm working on a 
tablet.

However, regardless of where you're compiling, you can either use an
external libffi, or you can do what I've done in the iOS patch - update
the Python source tree to include a newer version of libffi. If you
update the source in the Python tree, you need to use 2 versions (or a
merged version); you need v3.2 sources for ARMv7, and trunk sources for
ARM64. This is because libffi v3.2 doesn't work for ARM64, and trunk
doesn't even compile for ARMv7. See the iOS patch for details.

Since I'm not compiling for ARM64...and have zero experience with hacking 
configure.ac files...would it be okay to include just the 3.2 sources if I note 
somewhere that this fork does not include ARM64 support?

 I'm asking the above questions because I've hit a fairly significant
roadblock; I'm still getting the segfault when test_ctypes is run and I
can't seem to get anything useful out of gdb.

Personally, I've pretty much given up on CPython on Android. Even when
I got it working, the performance of the JNI layer is *abysmal*, and
severely crippled. If you're planning to actually interact with the
device in any way (like, say, put a button on the screen), that's a big
problem. 

My goal is to build a port that operates on Android in a Linux-like 
environment; I'm currently using KBOX3.  I've no experience with the Python 
language so JNI interop is Greek to me.  For what i'm using the port for it 
functions fairly well.

I'm working on an approach that uses Java natively - think Jython for
Android. I'm still a way off having anything working, though.

I'll keep an eye out for it once I've got Python basics under my belt.
--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 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 except a very recent
version of libffi is known to not work on ARM64 - so if it doesn't
work, it's not because of something Python is doing wrong, it's a
problem with a dependency.


...do you know of a way to run all tests except _ctypes, so that Imcan
verify everything else?


You can temporarily change the last line of Lib/ctypes/test/__init__.py to:

return args[1]

And to answer Russell's questions:

Are you using the libffi sources vendored into the Python source
tree, or a more recent version? 

By 'vendored in' do you mean 'sources included in python source tree
for building?'

Correct. The libffi source code that is in the Python source tree is
quite old, and *definitely* doesn't work on ARM64. I'm not even sure
that it works on ARMv7.

Definitely using the vendored in sources.


 Would your recommend downloading and building libffi from sources
(on
device) and then building python?

Well, for starters - as I've said before, I'd recommend not compiling
on device at all, but that's a separate issue. 

Any particular reason why? The device I'm working with has a port of
GCC which I've used to build other utilities that work well...given
that I'm working on a tablet.

However, regardless of where you're compiling, you can either use an
external libffi, or you can do what I've done in the iOS patch -
update
the Python source tree to include a newer version of libffi. If you
update the source in the Python tree, you need to use 2 versions (or a
merged version); you need v3.2 sources for ARMv7, and trunk sources
for
ARM64. This is because libffi v3.2 doesn't work for ARM64, and trunk
doesn't even compile for ARMv7. See the iOS patch for details.

Since I'm not compiling for ARM64...and have zero experience with
hacking configure.ac files...would it be okay to include just the 3.2
sources if I note somewhere that this fork does not include ARM64
support?

 I'm asking the above questions because I've hit a fairly significant
roadblock; I'm still getting the segfault when test_ctypes is run and
I
can't seem to get anything useful out of gdb.

Personally, I've pretty much given up on CPython on Android. Even when
I got it working, the performance of the JNI layer is *abysmal*, and
severely crippled. If you're planning to actually interact with the
device in any way (like, say, put a button on the screen), that's a
big
problem. 

My goal is to build a port that operates on Android in a Linux-like
environment; I'm currently using KBOX3.  I've no experience with the
Python language so JNI interop is Greek to me.  For what i'm using the
port for it functions fairly well.

I'm working on an approach that uses Java natively - think Jython for
Android. I'm still a way off having anything working, though.

I'll keep an eye out for it once I've got Python basics under my belt.
--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
wrote:


 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 /bld/pyt/cpython-android/Lib/test/test_hash.py, line 89 in
 test_unaligned_buffers
   File /bld/pyt/cpython-android/Lib/unittest/case.py, line 577 in run
   File /bld/pyt/cpython-android/Lib/unittest/case.py, line 625 in
 __call__
   File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 122 in run
   File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 84 in
 __call__
   File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 122 in run
   File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 84 in
 __call__
   File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 122 in run
   File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 84 in
 __call__
   File /bld/pyt/cpython-android/Lib/test/support/__init__.py, line 1668
 in run
   File /bld/pyt/cpython-android/Lib/test/support/__init__.py, line 1769
 in _run_suite
   File /bld/pyt/cpython-android/Lib/test/support/__init__.py, line 1803
 in run_unittest
   File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 1279 in
 test_runner
   File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 1280 in
 runtest_inner
   File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 978 in runtest
   File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 763 in main
   File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 1564 in
 main_in_temp_cwd  File /bld/pyt/cpython-android/Lib/test/__main__.py,
 line 3 in module
   File /bld/pyt/cpython-android/Lib/runpy.py, line 85 in _run_code
   File /bld/pyt/cpython-android/Lib/runpy.py, line 170 in
 _run_module_as_main
 Bus error

 Not sure what a bus error is...off to Google

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 /bld/pyt/cpython-android/Lib/test/test_hash.py, line 89 in 
test_unaligned_buffers
  File /bld/pyt/cpython-android/Lib/unittest/case.py, line 577 in run
  File /bld/pyt/cpython-android/Lib/unittest/case.py, line 625 in __call__
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 122 in run
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 84 in __call__
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 122 in run
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 84 in __call__
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 122 in run
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 84 in __call__
  File /bld/pyt/cpython-android/Lib/test/support/__init__.py, line 1668 in run
  File /bld/pyt/cpython-android/Lib/test/support/__init__.py, line 1769 in 
_run_suite
  File /bld/pyt/cpython-android/Lib/test/support/__init__.py, line 1803 in 
run_unittest
  File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 1279 in test_runner
  File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 1280 in 
runtest_inner
  File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 978 in runtest
  File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 763 in main
  File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 1564 in 
main_in_temp_cwd  File /bld/pyt/cpython-android/Lib/test/__main__.py, line 3 
in module
  File /bld/pyt/cpython-android/Lib/runpy.py, line 85 in _run_code
  File /bld/pyt/cpython-android/Lib/runpy.py, line 170 in _run_module_as_main
Bus error

Not sure what a bus error is...off to Google

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 except a very recent version of 
libffi is known to not work on ARM64 - so if it doesn't work, it's not because 
of something Python is doing wrong, it's a problem with a dependency.

Are you using the libffi sources vendored into the Python source tree, or a 
more recent version? 

By 'vendored in' do you mean 'sources included in python source tree for 
building?'

Correct. The libffi source code that is in the Python source tree is quite old, 
and *definitely* doesn't work on ARM64. I'm not even sure that it works on 
ARMv7.

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 
vendored in.

 Would your recommend downloading and building libffi from sources (on device) 
 and then building python?

Well, for starters - as I've said before, I'd recommend not compiling on device 
at all, but that's a separate issue. 

However, regardless of where you're compiling, you can either use an external 
libffi, or you can do what I've done in the iOS patch - update the Python 
source tree to include a newer version of libffi. If you update the source in 
the Python tree, you need to use 2 versions (or a merged version); you need 
v3.2 sources for ARMv7, and trunk sources for ARM64. This is because libffi 
v3.2 doesn't work for ARM64, and trunk doesn't even compile for ARMv7. See the 
iOS patch for details.

 I'm asking the above questions because I've hit a fairly significant 
 roadblock; I'm still getting the segfault when test_ctypes is run and I can't 
 seem to get anything useful out of gdb.

Personally, I've pretty much given up on CPython on Android. Even when I got it 
working, the performance of the JNI layer is *abysmal*, and severely crippled. 
If you're planning to actually interact with the device in any way (like, say, 
put a button on the screen), that's a big problem. 

I'm working on an approach that uses Java natively - think Jython for 
Android. I'm still a way off having anything working, though.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 libffi sources vendored into the Python source tree, or a 
more recent version? 

By 'vendored in' do you mean 'sources included in python source tree for 
building?'

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 
vendored in.

Would your recommend downloading and building libffi from sources (on device) 
and then building python?

I'm asking the above questions because I've hit a fairly significant roadblock; 
I'm still getting the segfault when test_ctypes is run and I can't seem to get 
anything useful out of gdb.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 to this frame (corrupt
stack?)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:

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
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 lengthy consultation of the gdb
manual.  Bear with me...it's basically a copy  paste of gdb session
output:

(gdb) run
Starting program: /bld/pyt/cpython-android/python
setpgrp failed in child: No such process
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.

Program received signal SIGILL, Illegal instruction.
0xb6a63cc8 in ?? ()
(gdb) f
#0  0xb6a63cc8 in ?? ()
(gdb) info f
Stack level 0, frame at 0xbefff618:
 pc = 0xb6a63cc8; saved pc = 0xb6a5feb0
 called by frame at 0xbefff618
 Arglist at 0xbefff618, args:
 Locals at 0xbefff618, Previous frame's sp is 0xbefff618
(gdb) info args
No symbol table info available.
(gdb) info local
No symbol table info available.
(gdb) info source
Current source file is ./Modules/python.c
Compilation directory is /bld/pyt/cpython-android
Located in /bld/pyt/cpython-android/Modules/python.c
Contains 80 lines.
Source language is c.
Compiled with DWARF 2 debugging format.
Does not include preprocessor macro info.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: /bld/pyt/cpython-android/python
setpgrp failed in child: No such process
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.

Program received signal SIGILL, Illegal instruction.
0xb6a63cc8 in ?? ()
(gdb) f
#0  0xb6a63cc8 in ?? ()
(gdb) info f
Stack level 0, frame at 0xbefff618:
 pc = 0xb6a63cc8; saved pc = 0xb6a5feb0
 called by frame at 0xbefff618
 Arglist at 0xbefff618, args:
 Locals at 0xbefff618, Previous frame's sp is 0xbefff618
(gdb) info args
No symbol table info available.
(gdb) info local
No symbol table info available.
(gdb) info source
Current source file is ./Modules/python.c
Compilation directory is /bld/pyt/cpython-android
Located in /bld/pyt/cpython-android/Modules/python.c
Contains 80 lines.
Source language is c.
Compiled with DWARF 2 debugging format.
Does not include preprocessor macro info.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
will not be possible due to the lack of debugging symbols in the libs
on the android device.

Still investigating.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 thread 0xb6f2bec8 (most recent call first):
  File /bld/pyt/cpython-android/Lib/ctypes/test/test_as_parameter.py, line 85 
in test_callbacks
  File /bld/pyt/cpython-android/Lib/unittest/case.py, line 577 in run
  File /bld/pyt/cpython-android/Lib/unittest/case.py, line 625 in __call__
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 122 in run
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 84 in __call__
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 122 in run
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 84 in __call__
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 122 in run
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 84 in __call__
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 122 in run
  File /bld/pyt/cpython-android/Lib/unittest/suite.py, line 84 in __call__
  File /bld/pyt/cpython-android/Lib/test/support/__init__.py, line 1668 in run
  File /bld/pyt/cpython-android/Lib/test/support/__init__.py, line 1769 in 
_run_suite
  File /bld/pyt/cpython-android/Lib/test/support/__init__.py, line 1803 in 
run_unittest
  File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 1279 in test_runner
  File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 1280 in 
runtest_inner
  File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 978 in runtest
  File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 763 in main
  File /bld/pyt/cpython-android/Lib/test/regrtest.py, line 1564 in 
main_in_temp_cwd  File /bld/pyt/cpython-android/Lib/test/__main__.py, line 3 
in module
  File /bld/pyt/cpython-android/Lib/runpy.py, line 85 in _run_code
  File /bld/pyt/cpython-android/Lib/runpy.py, line 170 in _run_module_as_main
Segmentation fault

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 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 to figure that one out first...

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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* 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 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 to figure that one out first...
 
 --
 
 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 to figure that one out first...

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 using a trunk version of libffi, that segfault in
test_ctypes is to be expected.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 vendored in.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 at the day job, expect a few 
weeks delay between now and continued work on this issue.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 4.x incompatible with Android 5.

Thoughts?

On June 29, 2015 9:29:35 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:

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 CDT, Cyd Haselton rep...@bugs.python.org
wrote:

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 \
echo generate-posix-vars failed ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Debug memory block at address p=0x90b7b0: API ''
2416312320 bytes originally requested
The 3 pad bytes at p-3 are not all FORBIDDENBYTE (0xfb):
at p-3: 0x00 *** OUCH
at p-2: 0x00 *** OUCH
at p-1: 0x00 *** OUCH
 Because memory is corrupted at the start, the count of bytes
requested
   may be bogus, and checking the trailing pad bytes may
segfault.
The 4 pad bytes at tail=0x9096b7b0 are Segmentation fault
generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1

Will re-check patch application and try again

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 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 4.x incompatible with Android
5.


WHAT??? :( I can't find a list anywhere; how do you know?


I tried building GCC for Android 5 on device and ran into a bunch of errors 
like 'undefined symbol __swbuf.'  Googling the errors led to this page: 
https://developer.android.com/ndk/downloads/revision_history.html.

Relevant Part here:

 Removed the following symbols from all architectures: 
get_malloc_leak_info,free_malloc_leak_info, __srget, __swbuf, 
__srefill,__swsetup, __sdidinit, __sflags, __sfp, __sinit, __smakebuf,__sflush, 
__sread, __swrite, __sseek, __sclose, _fwalk,__sglue, __get_thread, __wait4, 
__futex_wake, __open,__get_tls, __getdents64, and dlmalloc.

Thoughts?

Not really...

Would setting up two repos be advisable...one for 5 and one for 4.x and earlier?


On June 29, 2015 9:29:35 AM CDT, Cyd Haselton rep...@bugs.python.org
wrote:

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 CDT, Cyd Haselton
rep...@bugs.python.org
wrote:

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 \
echo generate-posix-vars failed ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Debug memory block at address p=0x90b7b0: API ''
2416312320 bytes originally requested
The 3 pad bytes at p-3 are not all FORBIDDENBYTE (0xfb):
at p-3: 0x00 *** OUCH
at p-2: 0x00 *** OUCH
at p-1: 0x00 *** OUCH
 Because memory is corrupted at the start, the count of bytes
requested
   may be bogus, and checking the trailing pad bytes may
segfault.
The 4 pad bytes at tail=0x9096b7b0 are Segmentation fault
generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1

Will re-check patch application and try again

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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?

Other than mandatory -fPIE, there are changes to Android[s libc that
may make  patches for python on Android 4.x incompatible with Android
5.


WHAT??? :( I can't find a list anywhere; how do you know?

Thoughts?

Not really...


On June 29, 2015 9:29:35 AM CDT, Cyd Haselton rep...@bugs.python.org
wrote:

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 CDT, Cyd Haselton
rep...@bugs.python.org
wrote:

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 \
echo generate-posix-vars failed ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Debug memory block at address p=0x90b7b0: API ''
2416312320 bytes originally requested
The 3 pad bytes at p-3 are not all FORBIDDENBYTE (0xfb):
at p-3: 0x00 *** OUCH
at p-2: 0x00 *** OUCH
at p-1: 0x00 *** OUCH
 Because memory is corrupted at the start, the count of bytes
requested
   may be bogus, and checking the trailing pad bytes may
segfault.
The 4 pad bytes at tail=0x9096b7b0 are Segmentation fault
generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1

Will re-check patch application and try again

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
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 \
echo generate-posix-vars failed ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Debug memory block at address p=0x90b7b0: API ''
2416312320 bytes originally requested
The 3 pad bytes at p-3 are not all FORBIDDENBYTE (0xfb):
at p-3: 0x00 *** OUCH
at p-2: 0x00 *** OUCH
at p-1: 0x00 *** OUCH
 Because memory is corrupted at the start, the count of bytes requested
   may be bogus, and checking the trailing pad bytes may segfault.
The 4 pad bytes at tail=0x9096b7b0 are Segmentation fault
generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1

Will re-check patch application and try again

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 \
echo generate-posix-vars failed ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Debug memory block at address p=0x90b7b0: API ''
2416312320 bytes originally requested
The 3 pad bytes at p-3 are not all FORBIDDENBYTE (0xfb):
at p-3: 0x00 *** OUCH
at p-2: 0x00 *** OUCH
at p-1: 0x00 *** OUCH
Because memory is corrupted at the start, the count of bytes requested
   may be bogus, and checking the trailing pad bytes may segfault.
The 4 pad bytes at tail=0x9096b7b0 are Segmentation fault
generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1

Will re-check patch application and try again

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 CDT, Cyd Haselton rep...@bugs.python.org
wrote:

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 \
echo generate-posix-vars failed ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Debug memory block at address p=0x90b7b0: API ''
2416312320 bytes originally requested
The 3 pad bytes at p-3 are not all FORBIDDENBYTE (0xfb):
at p-3: 0x00 *** OUCH
at p-2: 0x00 *** OUCH
at p-1: 0x00 *** OUCH
 Because memory is corrupted at the start, the count of bytes
requested
   may be bogus, and checking the trailing pad bytes may segfault.
The 4 pad bytes at tail=0x9096b7b0 are Segmentation fault
generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1

Will re-check patch application and try again

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 can see and i'm not 
sure why.

Google turns up a few hits from the bug-tracker but none have resolutions
http://bugs.python.org/issue13869
http://bugs.python.org/msg151986

Any thoughts?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 verizon updates my tablet.

If I can keep putting off the verizon 5.0 update

On June 4, 2015 4:52:59 PM CDT, Ryan Gonzalez rep...@bugs.python.org wrote:

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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
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 verizon updates my
tablet.

Try CCTools. Works on Android 5.0. Clang can be a little broken, but with a bit 
of flag twiddling it works.


If I can keep putting off the verizon 5.0 update

On June 4, 2015 4:52:59 PM CDT, Ryan Gonzalez rep...@bugs.python.org
wrote:

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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 anything I need to
do on my end for this port?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:

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 setup.py (1950- ) 
3) The _crypt and readline module builds in setup.py need additional libraries 
to work...python3.5m for both and possibly ncurses for readline, I'll test and 
get back to you. With #1 and #2 added, the build and install completes 
successfully, although you obviously can't import readline and _crypt.

*snip*

The messages after that one document how I got readline to work

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 anything I need to
do on my end for this port?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 ran 'python -m ensurepip'. I tested it by 
searching for and installing the BeautifulSoup module.

Ryan,
Let me know what are the next steps for this issue/build...and I'll do my best 
to get them done.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 this...running tests?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 libreadline.so.6 needed by 
readline.cpython-35m-arm-linux-gnueabi.so; caused by cannot locate symbol 
tgetnum referenced by libreadline.so.6...

tgetnum is undefined in libreadline but defined in -libncurses and libtinfo. 
I've built and re-built readline (--with-curses and -without that 
option...linking -lncurses, then -lncurses and -ltinfo) in the KBOX 
environment. I've edited Modules/Setup and setup.py so as to specify the 
readline library plus a combination of others (-ncurses, -tinfo) to no avail.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 setup.py (1950- )
3) The _crypt and readline module builds in setup.py need additional libraries 
to work...python3.5m for both and possibly ncurses for readline, I'll test and 
get back to you.

With #1 and #2 added, the build and install completes successfully, although 
you obviously can't import readline and _crypt.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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;
}   
 #endif

Added the #ifndef __ANDROID__ #endif around lines 46-51

I'm now looking at the following syntax error:

File ./setup.py, line 1950
elif host_platform.startswith('arm-linux')
 ^
SyntaxError: invalid syntax
make: *** [sharedmods] Error 1

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 (!oldloc) {
 fprintf(stderr, out of memory\n);
   return 1;
 }
   #endif

 Added the #ifndef __ANDROID__ #endif around lines 46-51


...that was in android_segfault_fix.patch...

are you sure you're on the same commit as I am?

 I'm now looking at the following syntax error:

 File ./setup.py, line 1950
 elif host_platform.startswith('arm-linux')
  ^
 SyntaxError: invalid syntax
 make: *** [sharedmods] Error 1


I forgot to put a colon and the end of the line. I'll upload a fixed
kbox_fixes.patch.

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 master on Fri/Sat. Will double-check commit tomorrow but
I think the problem is with the unpatched python.c

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 set or empty);
return NULL;
}
return get_codec_name(codeset);
#elif defined(__ANDROID__)
char* m = malloc(6);
strcpy(m, ascii);
return m;

to:

#elif defined(__ANDROID__)
char* m = malloc(6);
strcpy(m, ascii);
return m;
#elif defined(HAVE_LANGINFO_H)  defined(CODESET)
char* codeset = nl_langinfo(CODESET);
if (!codeset || codeset[0] == '\0') {
PyErr_SetString(PyExc_ValueError, CODESET is not set or empty);
return NULL;
}
return get_codec_name(codeset);

I just swapped the `elif`'s around.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, GetACP());
 return get_codec_name(codepage);
+#elif defined(__ANDROID__)
+char* m = malloc(6);
+strcpy(m, ascii);
+return m;
 #elif defined(HAVE_LANGINFO_H)  defined(CODESET)
 char* codeset = nl_langinfo(CODESET);
 if (!codeset || codeset[0] == '\0') {
@@ -224,10 +228,6 @@
 return NULL;
 }
 return get_codec_name(codeset);
-#elif defined(__ANDROID__)
-char* m = malloc(6);
-strcpy(m, ascii);
-return m;
 #else
 PyErr_SetNone(PyExc_NotImplementedError);
 return NULL;

On Sat, Apr 18, 2015 at 12:39 PM, Cyd Haselton rep...@bugs.python.org
wrote:


 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

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
/bld/python/cpython-master/cpython/Objects/obmalloc.c:358

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com




[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:

 Possibly reversed hunk 1 at 1582
 Hunk 1 failed 35/35

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: previous declaration of 'android_mbstowcs' was 
here
 size_t android_mbstowcs(wchar_t *dest, const char * source, int maxlen);
^
Python/pythonrun.c:61:8: error: conflicting types for 'android_wcstombs'
 size_t android_wcstombs(char * dest, wchar_t *source, int maxlen)
^
In file included from Python/pythonrun.c:18:0:
Include/androidfn.h:9:8: note: previous declaration of 'android_wcstombs' was 
here
 size_t android_wcstombs(char * dest, const wchar_t *source, int maxlen);
^
Python/pythonrun.c: In function 'android_wcstombs':
Python/pythonrun.c:68:5: error: expected ';' before 'if'
 if (c = 0xdc800  c = 0xdcff)
 ^
Python/pythonrun.c:63:11: warning: variable 'c' set but not used 
[-Wunused-but-set-variable]
   wchar_t c;
   ^
make: *** [Python/pythonrun.o] Error 1

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 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
 [-Wunused-but-set-variable]
wchar_t c;
^
 make: *** [Python/pythonrun.o] Error 1

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23496
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
[-Wunused-but-set-variable]
   wchar_t c;
   ^
make: *** [Python/pythonrun.o] Error 1

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.
 SETS(setIndex++, p-pw_passwd);
 PyStructSequence_SET_ITEM(v, setIndex++, _PyLong_FromUid(p-pw_uid));
 PyStructSequence_SET_ITEM(v, setIndex++, _PyLong_FromGid(p-pw_gid));
+#ifdef HAVE_PASSWD_GECOS_FIELD
 SETS(setIndex++, p-pw_gecos);
+#else
+SETS(setIndex++, Py_None);
+Py_INCREF(Py_None);
+#endif
 SETS(setIndex++, p-pw_dir);
 SETS(setIndex++, p-pw_shell);

patching file configure.ac
Hunk 56 FAILED 4944/4944.
 AC_MSG_RESULT($ENSUREPIP)
 AC_SUBST(ENSUREPIP)

+AC_CHECK_MEMBER([struct passwd.pw_gecos],
+  [AC_DEFINE(HAVE_PASSWD_GECOS_FIELD, 1, [Define if pwd.h defines 
field passwd.pw_gecos])],
+  [],
+  [[#include pwd.h]])
+
 # generate output files
 AC_CONFIG_FILES(Makefile.pre Modules/Setup.config Misc/python.pc 
Misc/python-config.sh)
 AC_CONFIG_FILES([Modules/ld_so_aix], [chmod +x Modules/ld_so_aix])
/bld/python/cpython-master $

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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':
/bld/python/cpython-master/Objects/unicodeobject.c:3236: undefined reference to 
`android_wcstombs'
/bld/python/cpython-master/Objects/unicodeobject.c:3248: undefined reference to 
`android_wcstombs'
Objects/unicodeobject.o: In function `wcstombs_errorpos':
/bld/python/cpython-master/Objects/unicodeobject.c:3154: undefined reference to 
`android_wcstombs'
Objects/unicodeobject.o: In function `PyUnicode_DecodeLocaleAndSize':
/bld/python/cpython-master/Objects/unicodeobject.c:3518: undefined reference to 
`android_mbstowcs'
/bld/python/cpython-master/Objects/unicodeobject.c:3518: undefined reference to 
`android_mbstowcs'
Objects/complexobject.o: In function `_Py_c_pow':
/bld/python/cpython-master/Objects/complexobject.c:129: undefined reference to 
`sincos'
Python/fileutils.o: In function `Py_DecodeLocale':
/bld/python/cpython-master/Python/fileutils.c:322: undefined reference to 
`android_mbstowcs'
Python/fileutils.o: In function `Py_EncodeLocale':
/bld/python/cpython-master/Python/fileutils.c:487: undefined reference to 
`android_wcstombs'
/bld/python/cpython-master/Python/fileutils.c:489: undefined reference to 
`android_wcstombs'
Python/fileutils.o: In function `_Py_wfopen':
/bld/python/cpython-master/Python/fileutils.c:1008: undefined reference to 
`android_wcstombs'
collect2: error: ld returned 1 exit status
make: *** [Programs/_freeze_importlib] Error 1

Maybe the androidfn.h wasn't added to the files above?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
   ^
./Modules/pwdmodule.c:86:3: note: each undeclared identifier is reported only 
once for each function it appears in
./Modules/pwdmodule.c:75:21: error: expected ';' before 'sets'
 #define SETS(i,val) sets(v, i, val)
 ^
./Modules/pwdmodule.c:87:5: note: in expansion of macro 'SETS'
 SETS(setIndex++, p-pw_dir);
 ^
./Modules/pwdmodule.c: At top level:
./Modules/pwdmodule.c:81:0: error: unterminated #else
 #ifdef HAVE_PASSWD_GECOS_FIELD
 ^
make: *** [Modules/pwdmodule.o] Error 1
/bld/python/cpython-master $

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue23496
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >