[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2019-05-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: +13264 ___ Python tracker <https://bugs.python.org/issue31171> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: +9812 ___ Python tracker <https://bugs.python.org/issue31171> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: -9808 ___ Python tracker <https://bugs.python.org/issue31171> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: -9809 ___ Python tracker <https://bugs.python.org/issue31171> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: +9810 ___ Python tracker <https://bugs.python.org/issue31171> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: +9809 ___ Python tracker <https://bugs.python.org/issue31171> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- keywords: +patch pull_requests: +9808 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue31171> ___ ___ Python-

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: -3087 ___ Python tracker <https://bugs.python.org/issue31171> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2017-08-10 Thread Hongxu Jia
Changes by Hongxu Jia <jiahongxu...@163.com>: -- pull_requests: +3087 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue31171> ___ _

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2017-08-10 Thread Hongxu Jia
Hongxu Jia added the comment: 4. Solution For cross compiling, there is no `-pthread', so we should explicitly add `-lpthread' to build multiprocessing. Peterson tried to do it in the following commit: ... commit e711cafab13efc9c1fe6c5cd75826401445eb585 Author: Benjamin Peterson <be

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2017-08-10 Thread Hongxu Jia
Hongxu Jia added the comment: 3. Analysis 1) The multiprocessing invokes named semaphore in C library (sem_open/sem_post/sem_getvalue/sem_unlink in ./Modules/_multiprocessing/semaphore.c) 2) The glibc defines two different sem_getvalue since the following commit. https://sourceware.org

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2017-08-10 Thread Hongxu Jia
New submission from Hongxu Jia: To build python for embedded Linux systems, (http://www.yoctoproject.org/docs/2.3.1/yocto-project-qs/yocto-project-qs.html) The 32-bit python's multiprocessing.BoundedSemaphore could not work. 1. Prerequisite - Build 32bit python on 64bit host, add '-m32' to gcc