[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- versions: +Python 3.6, Python 3.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: So the problem is that setup.py in build_extensions() does not build the extensions that have been already built statically into the native Ubuntu interpreter. The solution is to build first natively from source python3.5 and set the PATH environment

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: I assume from your logs that a native (not the cross-built one) python3.5 already exists and is on your PATH. What is the value of sys.builtin_module_names as given by this native python3.5 interpreter

[issue26851] android compilation and link flags

2016-10-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: This new patch fixes the following: * Use BASECFLAGS instead of CCSHARED. * '-march=armv7-a' is not set in BASECFLAGS anymore as this is redundant: this option is already set in the configure command line or is implicitly set by the the first component

[issue26851] android compilation and link flags

2016-10-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: See also the clang cross compilation documentation at http://clang.llvm.org/docs/CrossCompilation.html. -- versions: +Python 3.7 -Python 3.6 ___ Python tracker <rep...@bugs.python.org> <http://bugs.p

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: Your Setup file matches the one distributed with Python 3.5.2. Did you get the Python source from https://www.python.org/ ? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: Please upload the output of make, this is where the error messages are printed when extension modules fail to build. Where is set the root directory for arm headers and libraries in the configure command line ? -- nosy: +xdegaye

[issue22502] after continue in pdb stops in signal.py

2016-10-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: Fixed in issue 20766. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue20766] reference leaks in pdb

2016-10-12 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- stage: patch review -> resolved ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue20766] reference leaks in pdb

2016-10-12 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- resolution: -> fixed status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bugs.

[issue26944] android: test_posix fails

2016-10-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the patch David, see my comment in Rietveld. New patch based on David patch, just a bit simpler. -- stage: patch review -> commit review versions: +Python 3.7 Added file: http://bugs.python.org/file45067/test_getgroups_4.pa

[issue20766] reference leaks in pdb

2016-10-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: Uploaded refleak_5.patch with a simpler test case. With the patch applied, './python -m test -R 3:3 test_pdb' runs with success. The '_previous_sigint_handler' is reset at the Pdb prompt - instead of when the signal is triggered - to handle the case where pdb

[issue28338] test_pdb doctests have been removed from its test suite

2016-10-02 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bu

[issue20766] reference leaks in pdb

2016-10-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: > And indeed, this changeset has removed entirely the doctests from the test > suite :( Entered new issue 28338. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28338] test_pdb doctests have been removed from its test suite

2016-10-02 Thread Xavier de Gaye
New submission from Xavier de Gaye: Changeset ee0bbfd972de in issue 18401 has removed the doctests from the pdb test suite as can be seen by running test_pdb in verbose mode. See also msg277864 that triggered the creation of this issue. Nosying members of the issue 18401 nosy list

[issue20766] reference leaks in pdb

2016-10-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: Oh, test_pdb does not fail anymore in refleak mode as expected (see msg212510 for the change to apply to test_pdb.py in order to reproduce that). 'hg bisect' says that this is happening since: The first bad revision is: changeset: 103552

[issue20766] reference leaks in pdb

2016-10-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: The problem may still be reproduced by running the attached pdb_refleak.py script. Enter three times 'c' (short for the pdb 'continue' command) and the following line is printed: pdb 3 -> pdb 2 -> pdb 1 This shows that the third pdb instance

[issue28207] Use pkg-config to find dependencies

2016-09-30 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- nosy: +xdegaye ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28207> ___ __

[issue28190] Detect curses headers correctly for cross-compiling

2016-09-30 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- nosy: +xdegaye ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28190> ___ __

[issue28125] identify cross builds by a more generic environment setting.

2016-09-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: > please try to build extension modules with mismatching abi flags (pydebug is > the relevant one). Post your results for both mismatch cases. Hum, you are claiming that there is a problem with mismatching abi flags but don't care to expla

[issue28125] identify cross builds by a more generic environment setting.

2016-09-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: > but not having the existing cross build infrastructure being replaced by some > new android concepts. Running 'hg log' on configure.ac and Makefile.pre.in shows that there is not a single change in the cross build infrastructure done for some new a

[issue28125] identify cross builds by a more generic environment setting.

2016-09-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: What do you mean ? When cross-compiling, _PYTHON_HOST_PLATFORM is defined as $MACHDEP-$_host_cpu, but _PYTHON_SYSCONFIGDATA_NAME is suffixed with $(MACHDEP)_$(MULTIARCH) instead. -- ___ Python tracker <

[issue28125] identify cross builds by a more generic environment setting.

2016-09-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: You do not answer my questions and resort to sarcasm instead: "How did you make it more difficult?". I understand that you may be upset because issue 23968 has been dismantled by the recent decision of removing the platdir files, but please keep

[issue26865] Meta-issue: support of the android platform

2016-09-13 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- dependencies: -byte-compile fails for cross-builds ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue22724] byte-compile fails for cross-builds

2016-09-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: Cross-compilation of Android x86_64 on a linux x86_64 host followed by 'make install' does not fail anymore after the changes made in issue 27917. As expected since the triplets are different now when the target is an Android platform

[issue28125] identify cross builds by a more generic environment setting.

2016-09-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Plus the abi flags should not be set by hand, you'll get in trouble at least > for naming extensions, or building extensions for the wrong abi flags. This > was an explicit decision when I first started adding the cross-build changes. What do

[issue28125] identify cross builds by a more generic environment setting.

2016-09-13 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- nosy: +xdegaye ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28125> ___ __

[issue28046] Remove the concept of platform-specific directories

2016-09-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for your help in testing these changes Chi Hsuan Yen. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27917] Choose platform triplets for android builds

2016-09-11 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27917> ___ _

[issue27917] Choose platform triplets for android builds

2016-09-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: test_triplet_in_ext_suffix in test_sysconfig fails with the 'x86' Android platform. -- status: closed -> open ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.or

[issue28046] Remove the concept of platform-specific directories

2016-09-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: One of the test_sysconfig failed test is caused by the changes made in issue 27917. I will fix it there. The other one is caused by a change in my android build setup that does not install anymore include/python3.6m/pyconfig.h, this is fixed now and the test

[issue28046] Remove the concept of platform-specific directories

2016-09-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: With the attached patch, the python test suite runs smoothly on android and without errors on linux. On android, there are two new failed test cases in test_sysconfig that I will look into later (in the frame of this issue, I guess ?), but otherwise about

[issue28046] Remove the concept of platform-specific directories

2016-09-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: Confirming the problem reported by Chi Hsuan Yen. The attached patch fixes this. Another problem is that the shared libraries names of the extension modules are now suffixed with the wrong triplet, i.e. with the build system triplet instead of the target host

[issue28046] Remove the concept of platform-specific directories

2016-09-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: Sure, I was already planning to do it :) -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue28027] Remove Lib/plat-*/* files

2016-09-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Since the 3.6 cycle, these modules are regenerated for the build, so they are > not outdated anymore. They are not a maintenance burden either. Indeed, they are regenerated by the changes made in issue 23968 ("rename the platform director

[issue28027] Remove Lib/plat-*/* files

2016-09-09 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- nosy: +xdegaye ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28027> ___ __

[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-09-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: The problem is that Makefile and Modules/getpath.c are not consistent: * Makefile uses $(LIBDIR)/python$(VERSION)/lib-dynload as the location of the installed shared libraries and in this issue, it happens that LIBDIR is not ${exec_prefix}/lib

[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-09-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: The problem can be reproduced as follows: Run the following commands to install python with a site configuration file that installs the libraries to lib64: export INSTALL_DIR=/some/path/to/install mkdir -p $INSTALL_DIR/share echo "test \&quo

[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-09-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Sorry that I haven't answered for a long time. I would like to get an email > notification but I don't know whether/how I can enable it. You should get an email upon each message posted to this issue. The email is sent to the address you have regi

[issue27323] ncurses putwin() fails in test_module_funcs

2016-09-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Just wondering, how you built Python with ncurses 6.0 Xavier? I am using archlinux ncurses 6.0 [1] (sorry for the delay, no internet on a sail crossing). [1] https://www.archlinux.org/packages/core/x86_64/ncur

[issue26865] Meta-issue: support of the android platform

2016-07-31 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #27659: Check for the existence of crypt() -- dependencies: +Check for the existence of crypt() ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27659] Check for the existence of crypt()

2016-07-31 Thread Xavier de Gaye
Xavier de Gaye added the comment: > A question: should I include changes to configure and pyconfig.h.in in the > patch? You just need to mention that one should run autoreconf. -- ___ Python tracker <rep...@bugs.python.org> <http://

[issue22724] byte-compile fails for cross-builds

2016-07-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: Patch rebased to current tip. To summarize: * The root cause of the problem reported by Benedikt still exists. * The problem is hidden now that the shared libraries names include the PLATFORM_TRIPLET. * But byte-compilation still fails for cross-builds when

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-07-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: It is also broken for gcc, see the buildbot 'compile' output. It seems broken for all non windows builds whatever the compiler. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-07-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: The reason I would like this problem fixed is that the test suite is run on an installed Python when cross-compiling, obviously you cannot run the test suite with the cross-compiled Python on the source tree of the build system

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-07-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: This problem occured for the first time on the "installed Python" buildbot (setup by Zachary) at http://buildbot.python.org/all/builders/x86%20Gentoo%20Installed%20with%20X%203.x/builds/747 on the day changeset 78d2cb7f66b6 has been commited (see

[issue26942] android: test_ctypes crashes on armv7 and aarch64

2016-07-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: We should wait for the pull request to be merged in the libffi development repo before committing the patch. The PR is at https://github.com/libffi/libffi/pull/265. -- ___ Python tracker <rep...@bugs.python.

[issue27453] $CPP invocation in configure must use $CPPFLAGS

2016-07-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the patch Chi Hsuan Yen! -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue26942] android: test_ctypes crashes on armv7 and aarch64

2016-07-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: > By msg264746, only ARM fails, so I patch libffi for arm and aarch64 triplets > only Why not for all Android architectures (*-linux-android*) as it is done in PR120 ? -- stage: -> patch review ___ Pytho

[issue27641] Do not build Programs/_freeze_importlib when cross-compiling

2016-07-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: Nice. FWIW cross-compilation for Android works fine with comment-out-regen.patch. > In native compiling mode, everything should be as normal. When > cross-compiling, the rules for regenerating files should read like > > Python/importlib.h: # $

[issue27641] Do not build Programs/_freeze_importlib when cross-compiling

2016-07-29 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- nosy: +xdegaye ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27641> ___ __

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-07-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: To reproduce the problem on any system where Python is built with configure: $ mkdir -p tmp/build tmp/install $ cd tmp $ hg clone https://hg.python.org/cpython cpython $ cd build $ $(cd ../cpython && pwd)/configure --prefix=$(cd ../install &&a

[issue27453] $CPP invocation in configure must use $CPPFLAGS

2016-07-29 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- nosy: +haypo stage: -> commit review ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue27640] add the '--disable-test-suite' option to configure

2016-07-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the review Martin. I will update the patch accordingly later. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27627] clang fails to build ctypes on Android armv7

2016-07-29 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- nosy: +thomas-petazzoni ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27627> ___

[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-29 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- nosy: +thomas-petazzoni ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27606> ___

[issue22724] byte-compile fails for cross-builds

2016-07-29 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- nosy: +thomas-petazzoni ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22724> ___

[issue27453] $CPP invocation in configure must use $CPPFLAGS

2016-07-29 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- nosy: +thomas-petazzoni ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27453> ___

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-07-29 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- nosy: +thomas-petazzoni ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23968> ___

[issue26865] Meta-issue: support of the android platform

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Some dependent issues, like issue26852, issue26859 and issue27640, are for > reducing the size of an installation. How about moving them to another > meta-issue? First they are not critical for normal usages on Android. Second > they are

[issue26865] Meta-issue: support of the android platform

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: Roman, can you please enter a new issue for that problem. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26852] add the '--enable-sourceless-distribution' option to configure

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: > About doko's note and your response: unless this patch does not install the > source (I haven't looked), the __pycache__ files *will* be rebuilt at > interpreter start, according to the text you quoted. Right, and since the source files ar

[issue26852] add the '--enable-sourceless-distribution' option to configure

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: > and if the only reason is to reduce space by omitting the source, then it > should also not install the source so the name is wrong :) I miss your point, msg271515 said earlier "the patch removes all *.py files". The patch does a sourcel

[issue26851] android compilation and link flags

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: Yes, the packager must use appropriately either CFLAGS CPPFLAGS [1] and LDFLAGS, or CC. I am using: CC="clang --sysroot=$(SYSROOT) -target $(TARGET) -gcc-toolchain $(GCC_TOOLCHAIN)". [1] See issue 27453, for the remaining problem upon usin

[issue26852] add the '--enable-legacy-pyc-files' option to configure

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: > but these are rebuilt when you start the interpreter, aren't they? No. Quoting PEP 3147: Case 4: legacy pyc files and source-less imports Python will ignore all legacy pyc files when a source file exists next to it. In other words, if a foo.

[issue26851] android compilation and link flags

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: > I am still curious what configures the preprocessor to set __ARM_ARCH to 7 (I > guess the clang -target argument?) Yes, the -target clang argument or the -march gcc argument. > and why we can’t set LDFLAGS at the same time or place. Is it

[issue26852] add the '--enable-legacy-pyc-files' option to configure

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: > hmm, I really don't buy the space-saving argument. you are saving some space > with shorter path names, nothing more. so why do you introduce this option? No, compileall is run with '-b', so there are no PEP 3147 __pycache__ direc

[issue27640] add the '--disable-test-suite' option to configure

2016-07-28 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- nosy: +haypo, thomas-petazzoni ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26852] add the '--enable-legacy-pyc-files' option to configure

2016-07-28 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- nosy: +haypo, thomas-petazzoni ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26865] Meta-issue: support of the android platform

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #27640: add the '--disable-test-suite' option to configure -- dependencies: +add the '--disable-test-suite' option to configure ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26852] add the '--enable-legacy-pyc-files' option to configure

2016-07-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: Install byte-code files to their legacy locations and names to save space (default are the PEP 3147 locations and names) when configure is run with '--enable-legacy-pyc-files'. The patch does not prevent ensurepip to use PEP 3147 locations and names when

[issue27640] add the '--disable-test-suite' option to configure

2016-07-28 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- components: +Cross-Build nosy: +Alex.Willmer ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27640] add the '--disable-test-suite' option to configure

2016-07-28 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: Added file: http://bugs.python.org/file43918/listdirs.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27640] add the '--disable-test-suite' option to configure

2016-07-28 Thread Xavier de Gaye
New submission from Xavier de Gaye: Do not install the Python test suite when configure is run with '--disable-test-suite'. This about divides by two the size of the installed standard library. Related to issue 26852: add the '--enable-legacy-pyc-files' option to configure. The attached

[issue16353] add function to os module for getting path to default shell

2016-07-27 Thread Xavier de Gaye
Xavier de Gaye added the comment: > After several years there is still no consenus, so make it simple - the popen > and subprocess shell is one of /bin/sh, cmd.exe, or some other "hard-coded" > shell. I agree, the last patch that is being reviewed in issue 1

[issue26942] android: test_ctypes crashes on armv7

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: Nice, the patch fixes the problem when python is built with gcc :) Running test_ctypes on the Android emulator when python is built for the arm architecture or the armv7 architecture gives in both cases the same successfull result: Ran 456 tests

[issue23085] update internal libffi copy to 3.2.1

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Cross-compile CPython for ARM with clang fails in _ctypes due to > https://llvm.org/bugs/show_bug.cgi?id=20595. This bug is already fixed in > libffi. I have entered issue 27627 for this problem. -- nosy:

[issue27627] clang fails to build ctypes on Android armv7

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: See also msg 269907 and msg269908. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27627> ___ __

[issue27627] clang fails to build ctypes on Android armv7

2016-07-26 Thread Xavier de Gaye
New submission from Xavier de Gaye: The build is done with: clang --sysroot=/opt/android-ndk/platforms/android-21/arch-arm -target armv7-none-linux-androideabi -gcc-toolchain /opt/android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 The error message: clang --sysroot=/opt

[issue26865] Meta-issue: support of the android platform

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #27627: clang fails to build ctypes on Android armv7 -- dependencies: +clang fails to build ctypes on Android armv7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26942] android: test_ctypes crashes on armv7

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for looking into that problem. Can you provide a patch ? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-26 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bu

[issue26851] android compilation and link flags

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch. The sed commands used to evaluate ANDROID_API_LEVEL and _arm_arch do not need to discard comment lines and empty lines in the output of the preprocessor. -- Added file: http://bugs.python.org/file43893/build-flags_4.patch

[issue26851] android compilation and link flags

2016-07-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the suggestion, I won't include them anymore in patches then. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26944] android: test_posix fails

2016-07-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: The test is already skipped by the patch, for Android API level < 23, with the statement: raise unittest.SkipTest("need working 'id -G'") Do you mean that the test should be skipped instead more explicitly with something li

[issue26851] android compilation and link flags

2016-07-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: The first 'build-flags_3.patch' file that was uploaded did not get a review button because ssh://h...@hg.python.org/cpython was down at that time. The second upload has been successfull ! -- ___ Python tracker <

[issue26851] android compilation and link flags

2016-07-25 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: Added file: http://bugs.python.org/file43878/build-flags_3.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26944] android: test_posix fails

2016-07-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Hum, does the id program supports -G on Android? It does on Android 6.0 but prints the same result as 'id' (without -G) on previous Android versions. Here is the output of the commands involved in the test for the root user on my archlinux box, the Andr

[issue26851] android compilation and link flags

2016-07-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the review and the suggestions Martin :) New patch. -- Added file: http://bugs.python.org/file43875/build-flags_3.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26944] android: test_posix fails

2016-07-24 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- nosy: +haypo stage: patch review -> commit review ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: The reference to '-mthumb' in the ndk documentation: https://developer.android.com/ndk/guides/standalone_toolchain.html#abi. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26865] Meta-issue: support of the android platform

2016-07-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #27606: Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL -- dependencies: +Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-24 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: Added file: http://bugs.python.org/file43859/logcat.txt ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-24 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: Added file: http://bugs.python.org/file43861/logcat-pydebug.txt ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-24 Thread Xavier de Gaye
New submission from Xavier de Gaye: Android ndk version r11c. The crash happens very early on python startup. The SIGILL occurs when python is built 'with-pydebug'. Python runs fine on the armv5te emulator when built with clang without '-mthumb'. Python runs fine on the armv5te emulator

[issue27606] Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL

2016-07-24 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: Added file: http://bugs.python.org/file43860/strace-pydebug.txt ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27472] add the 'unix_shell' attribute to test.support

2016-07-22 Thread Xavier de Gaye
Changes by Xavier de Gaye <xdeg...@gmail.com>: -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bu

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: Patch with a new error message. -- Added file: http://bugs.python.org/file43829/py_for_gen_26662_3.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26944] android: test_posix fails

2016-07-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Is there a plan to make Android a supported platform in 3.6? Answer in the Android meta-issue at msg 270942. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.or

[issue26865] Meta-issue: support of the android platform

2016-07-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: Larry asked in msg 270937: > Is there a plan to make Android a supported platform in 3.6? This is the list of Android related issues that will modify the standard library and core Python when fixed: issue 16255: subrocess.Popen needs /bin/sh but Andr

<    4   5   6   7   8   9   10   11   12   13   >