LIU YONG added the comment:
Additional information of environment
OS - AIX 7.1 (7100-05-03-1838)
gcc version 6.3.0 (GCC)
ncurses-6.1-2.ppc
ncurses-devel-6.1-2.ppc
I had tried to build Python3.7.3 and Python3.6.9, it hit same errors
It looks like some issue with ncurses version
New submission from LIU YONG :
Trying to build Python 3.7.4 on AIX 7.1 using gcc 6.3.0 but failed
Failed to build these modules:
_ctypes _curses _curses_panel
building '_curses' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -