See the updates at the bottom...
This is my first time here...
# pip3 install --no-build-isolation --global-option=build_ext --global-option="-compiler=unix" cffi
DEPRECATION: --build-option and --global-option are deprecated. pip 25.3 will enforce this behaviour change. A possible replacement is to use --config-settings. Discussion can be found at https://github.com/pypa/pip/issues/11859
WARNING: Implying --no-binary=:all: due to the presence of --build-option / --global-option.
Collecting cffi
Using cached cffi-2.0.0.tar.gz (523 kB)
Preparing metadata (pyproject.toml) ... done
Collecting pycparser (from cffi)
Using cached pycparser-2.23-py3-none-any.whl
Building wheels for collected packages: cffi
WARNING: Ignoring --global-option when building cffi using PEP 517
Building wheel for cffi (pyproject.toml) ... error
error: subprocess-exited-with-error
Building wheel for cffi (pyproject.toml) did not run successfully.
exit code: 1
[59 lines of output]
ld: 0711-738 ERROR: Input file /lib/crt0.o:
XCOFF32 object files are not allowed in 64-bit mode.
collect2: error: ld returned 8 exit status
Note: will not use '__sync_synchronize()' in the C code
***** The above error message can be safely ignored.
running bdist_wheel
running build
running build_py
creating build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/__init__.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/_imp_emulation.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/_shimmed_dist_utils.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/api.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/backend_ctypes.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/cffi_opcode.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/commontypes.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/cparser.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/error.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/ffiplatform.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/lock.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/model.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/pkgconfig.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/recompiler.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/setuptools_ext.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/vengine_cpy.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/vengine_gen.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/verifier.py -> build/lib.aix-7302-2445-64-cpython-39/cffi
running egg_info
writing src/cffi.egg-info/PKG-INFO
writing dependency_links to src/cffi.egg-info/dependency_links.txt
writing entry points to src/cffi.egg-info/entry_points.txt
writing requirements to src/cffi.egg-info/requires.txt
writing top-level names to src/cffi.egg-info/top_level.txt
reading manifest file 'src/cffi.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
adding license file 'AUTHORS'
writing manifest file 'src/cffi.egg-info/SOURCES.txt'
copying src/cffi/_cffi_errors.h -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/_cffi_include.h -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/_embedding.h -> build/lib.aix-7302-2445-64-cpython-39/cffi
copying src/cffi/parse_c_type.h -> build/lib.aix-7302-2445-64-cpython-39/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.aix-7302-2445-64-cpython-39/src/c
gcc -maix64 -D_ALL_SOURCE -D_LARGE_FILES -DTHREAD_SAFE -DFFI_BUILDING=1 -DUSE__THREAD -I/opt/freeware/include -I/usr/opt/python3/include/python3.9 -c src/c/_cffi_backend.c -o build/temp.aix-7302-2445-64-cpython-39/src/c/_cffi_backend.o
In file included from src/c/cffi1_module.c:20,
from src/c/_cffi_backend.c:8173:
src/c/call_python.c: In function 'cffi_call_python':
src/c/call_python.c:203:28: warning: implicit declaration of function '__lwsync'; did you mean 'msync'? [-Wimplicit-function-declaration]
# define read_barrier() __lwsync()
^~~~~~~~
src/c/call_python.c:252:5: note: in expansion of macro 'read_barrier'
read_barrier();
^~~~~~~~~~~~
/usr/opt/python3/lib/python3.9/config-3.9/ld_so_aix xlc_r -q64 -qPIC -bI:/usr/opt/python3/lib/python3.9/config-3.9/python.exp -L/usr/opt/python3/lib -L/usr/lib -Wl,-blibpath:/usr/opt/python3/lib:/usr/lib:/lib -L/usr/opt/python3/lib -L/usr/lib -Wl,-blibpath:/usr/opt/python3/lib:/usr/lib:/lib -maix64 -Wl,-blibpath:/usr/lib:/lib:/usr/opt/python3/lib -L/usr/lib -L/opt/freeware/lib64 -lffi -maix64 -D_ALL_SOURCE -D_LARGE_FILES -DTHREAD_SAFE build/temp.aix-7302-2445-64-cpython-39/src/c/_cffi_backend.o -L/opt/freeware/lib64 -L/usr/opt/python3/lib -lffi -o build/lib.aix-7302-2445-64-cpython-39/_cffi_backend.cpython-39.so
xlc_r: 1501-287 (S) This compiler does not support AIX 7.3. Please check with IBM (http://www-01.ibm.com/support/docview.wss?rs=43&uid=swg21326972) to see if there is a PTF for this compiler that supports this AIX level.
error: command '/usr/opt/python3/lib/python3.9/config-3.9/ld_so_aix' failed with exit code 41
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cffi
Failed to build cffi
error: failed-wheel-build-for-install
Failed to build installable wheels for some pyproject.toml based projects
cffi