[issue39936] Python fails to build _asyncio on module on AIX

2020-03-13 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: POWER6 AIX 3.x and PPC64 AIX 3.x buildbots are back to green. -- ___ Python tracker ___ ___ Pytho

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-13 Thread Michael Felt
Michael Felt added the comment: Fantastic! Many thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset c846ef004d79ee8e9645d3e5e8b3b0cb97b5013f by Victor Stinner in branch 'master': bpo-39936: _aix_support uses _bootsubprocess (GH-18970) https://github.com/python/cpython/commit/c846ef004d79ee8e9645d3e5e8b3b0cb97b5013f -- __

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-12 Thread STINNER Victor
STINNER Victor added the comment: I converted attached _aix_support.py into PR 18970 (with minor changes). -- ___ Python tracker ___ __

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18318 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18970 ___ Python tracker ___ __

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-12 Thread Michael Felt
Michael Felt added the comment: The good news! Your patch, better rewrite, of _aix_platform.py is working! Many thanks! -- ___ Python tracker ___

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-12 Thread Michael Felt
Michael Felt added the comment: re: Michael: this issue is about bootstraping Python. If you want to test a patch or test something else, you must restart from a clean copy of the source code. Either use "make distclean", "git clean -fdx", or recreate the source directory (git clone, decompr

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread Michael Felt
Michael Felt added the comment: Actually, I had already done that: diff --git a/Lib/_aix_support.py b/Lib/_aix_support.py index 2c5cd3297d..c7f4491633 100644 --- a/Lib/_aix_support.py +++ b/Lib/_aix_support.py @@ -12,7 +12,8 @@ try: _tmp_bd = get_config_var("AIX_BUILDDATE") _bgt = get

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: Try to replace Lib/_aix_support.py with attached _aix_support.py: in short, it uses _bootsubprocess if subprocess is not available. -- Added file: https://bugs.python.org/file48972/_aix_support.py ___ Python tracke

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: Michael: this issue is about bootstraping Python. If you want to test a patch or test something else, you must restart from a clean copy of the source code. Either use "make distclean", "git clean -fdx", or recreate the source directory (git clone, decompres

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread Michael Felt
Michael Felt added the comment: OK. I removed the _aix_support.py from the formula. After make see the new (rather) old build paths for "socket" aixtools@x064:[/home/aixtools/python-3.9]find . | grep socket ./Doc/howto/sockets.rst ./Doc/library/socket.rst ./Doc/library/socketserver.rst ./Lib/

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread Michael Felt
Change by Michael Felt : Added file: https://bugs.python.org/file48971/make.log ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread Michael Felt
Michael Felt added the comment: So, this is what I have on screen. Will add the log in a moment. [1] + Donemake 2>&1|tee make.log & aixtools@x064:[/home/aixtools/python-3.9]find . | grep socket ./Doc/howto/sockets.rst ./Doc/library/socket.rst ./Doc/library/socketserver.rst

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread Michael Felt
Michael Felt added the comment: So, with the patch - the process stops at: aixtools@x064:[/home/aixtools/python-3.9]make CC='xlc_r' LDSHARED='Modules/ld_so_aix xlc_r -bI:Modules/python.exp' OPT='-DNDEBUG -O' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python -E ./setup.py build Traceback (mo

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread Michael Felt
Michael Felt added the comment: I'll take a look at what you are suggesting. The starting point (before the rm command) is the make command that I run again. What I notice - read am thinking - is that _socket.so is being created by the "setup.py build" - so, if you can help me make that bit

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: Yeah, sys must be imported first. Did you try to fix the patch? Does it work? -- ___ Python tracker ___ _

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: I tried your patch on AIX 7.2, looks like you need to shift sys import to the top Traceback (most recent call last): File "/home/isidentical/cpython/./setup.py", line 16, in sys.modules['subprocess'] = _bootsubprocess NameError: name 'sys' is not def

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: Another approach to patch _aix_support.py, replace: try: import subprocess _have_subprocess = True _tmp_bd = _bgt = get_config_var("BUILD_GNU_TYPE") except ImportError: # pragma: no cover _have_subprocess = False _tmp_bd = None _b

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: Michael.Felt: Can you please try to build the master branch of Python with the attached setup-aix.patch applied? Something like: git checkout master git apply setup-aix.patch ./configure CFLAGS="-O0" make 2>&1|tee make.log Then attach make.log. --

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread Michael Felt
Michael Felt added the comment: While looking through the history of bot builds - I consistently see 420 tests being done on one bot - but test_socket does not always show up in the list. I'll look at this as I can, but "free-time" is limited. Delay is not a lack of interest. -- nos

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: AIX_BUILDDATE variable is written in pyconfig.h by configure: > https://buildbot.python.org/all/#/builders/119/builds/383 configure: "checking for the system builddate... 1806" > https://buildbot.python.org/all/#/builders/119/builds/451 configure: "checking

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-11 Thread STINNER Victor
New submission from STINNER Victor : The commit 1ec63b62035e73111e204a0e03b83503e1c58f2e of bpo-39763 broke the Python compilation on AIX: https://bugs.python.org/issue39763#msg363749 -- The last successful build was before the commit 1ec63b62035e73111e204a0e03b83503e1c58f2e: https://buildbo