Date: 18-09-21  Time: 23:22 PM

Author Topic: py39  (Read 3183 times)

0 Members and 1 Guest are viewing this topic.

james.franznick

  • Registered
  • *
  • Posts: 1
  • Karma: +0/-0
py39
« on: December 31, 2020, 07:00:19 PM »
Was wondering if py39 lpp is available and the download link is just broken? Not seeing it in /tools

http://download.aixtools.net/tools/

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1312
  • Karma: +0/-0
Re: py39
« Reply #1 on: January 06, 2021, 04:09:42 PM »
Is now available as http://download.aixtools.net/tools/aixtools.python.py39.3.9.1.0.I - I still have to make the wiki page.
« Last Edit: February 04, 2021, 12:19:48 PM by Michael »

lmico

  • Jr. Member
  • **
  • Posts: 9
  • Karma: +0/-0
Re: py39
« Reply #2 on: June 02, 2021, 09:48:01 AM »
Hi, first of all thank you so much for your work.

Correct me if I'm wrong, but it seems like the last py39 build has been compiled in 32-bit mode; this is what I get on an AIX 5300-11-01-0944 machine:

Code: [Select]
>python3
Python 3.9.1 (tags/v3.9.1-dirty:1e5d33e9b9, Jan  4 2021, 13:53:54) [C] on aix
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.maxsize
2147483647
>>> sys.maxsize == 2**31-1
True
>>> import platform
>>> platform.architecture()
('32bit', '')

I figured this out when trying to compile the cx_Oracle module in 64-bit mode (CFLAGS="-q64" python3 setup.py build) and getting the error:
Code: [Select]
"/opt/include/python3.9/pyport.h", line 741.2: 1506-205 (S) #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

Do you think you'll be able to build a 64-bit package anytime soon?

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1312
  • Karma: +0/-0
Re: py39
« Reply #3 on: June 02, 2021, 12:23:29 PM »
I'll look at it later today. There were build issues re: 64-bit. Maybe they have been fixed.

lmico

  • Jr. Member
  • **
  • Posts: 9
  • Karma: +0/-0
Re: py39
« Reply #4 on: June 03, 2021, 07:52:55 AM »
Thanks!

Quote
There were build issues re: 64-bit. Maybe they have been fixed.

Do you mean with Python 3.9.1?

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1312
  • Karma: +0/-0
Re: py39
« Reply #5 on: June 03, 2021, 07:55:21 PM »
Still facing build issues: py39-3.9.5:


root@x066:[/data/prj/python/py39-3.9.5]make
./python -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
        echo "generate-posix-vars failed" ; \
        rm -f ./pybuilddir.txt ; \
        exit 1 ; \
fi
/bin/sh: 3801144 Segmentation fault(coredump)
generate-posix-vars failed
make: *** [Makefile:619: pybuilddir.txt] Error 1


How about Python-3.8. iirc, that works as 64-bit.

FYI: I have tried to get some attention for the 64-bit build issues, but falls on deaf ears. Other people need to `complain`, as Python seems to think noone uses Python on AIX.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1312
  • Karma: +0/-0
Re: py39
« Reply #6 on: June 03, 2021, 08:08:29 PM »
p.s. - This may be compiler specific (e.g., a compiler bug). I will retry with a try&buy xlc version, as I have seen it work with newer compilers.

What OS level of AIX are you running on? Just so I know my limitations.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1312
  • Karma: +0/-0
Re: py39
« Reply #7 on: June 04, 2021, 05:30:54 AM »
I can build py38-3.8.10 in 64-bit, for sure.

I tried, as a test, py39-3.9.1 on a another system, but that failed as well.

lmico

  • Jr. Member
  • **
  • Posts: 9
  • Karma: +0/-0
Re: py39
« Reply #8 on: June 04, 2021, 08:27:45 AM »
Thank you very much for the effort.

Quote
FYI: I have tried to get some attention for the 64-bit build issues, but falls on deaf ears. Other people need to `complain`, as Python seems to think noone uses Python on AIX.

How can one "lobby" about this? Do you know of a specific bug I can follow on the official tracker?

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1312
  • Karma: +0/-0
Re: py39
« Reply #9 on: June 04, 2021, 09:18:26 AM »
I'll look for an official bug report, or I'll make one. That will be next Monday.