Hi Ranjit,
I am trying to compile llvmlite package on AIX 7.2: I untar'ed it to a folder and run the following to install. I got following error (unsupported platform: 'aix'). Can you please help?
export CC="gcc -maix64 -pthread"
export CXX="g++ -maix64 -pthread"
export OBJECT_MODE=64
run 'python3 -m pip install . --root / -v'
Thanks
Mi
Using pip 22.2.2 from /opt/freeware/lib/python3.9/site-packages/pip (python 3.9)
Processing /usr/opt/sas/python3a/llvmlite-0.41.1
Running command python setup.py egg_info
running egg_info
creating /tmp/pip-pip-egg-info-zz23t0jx/llvmlite.egg-info
writing /tmp/pip-pip-egg-info-zz23t0jx/llvmlite.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-zz23t0jx/llvmlite.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-zz23t0jx/llvmlite.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-zz23t0jx/llvmlite.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-pip-egg-info-zz23t0jx/llvmlite.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file '/tmp/pip-pip-egg-info-zz23t0jx/llvmlite.egg-info/SOURCES.txt'
Preparing metadata (setup.py) ... done
Building wheels for collected packages: llvmlite
Running command python setup.py bdist_wheel
running bdist_wheel
/opt/freeware/bin/python3 /usr/opt/sas/python3a/llvmlite-0.41.1/ffi/build.py
Traceback (most recent call last):
File "/usr/opt/sas/python3a/llvmlite-0.41.1/ffi/build.py", line 228, in <module>
main()
File "/usr/opt/sas/python3a/llvmlite-0.41.1/ffi/build.py", line 224, in main
raise RuntimeError("unsupported platform: %r" % (sys.platform,))
RuntimeError: unsupported platform: 'aix'
error: command '/opt/freeware/bin/python3' failed with exit code 1
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /opt/freeware/bin/python3 -u -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
# import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
# setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
# manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute `setup.py` since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
__file__ = %r
sys.argv[0] = __file__
if os.path.exists(__file__):
filename = __file__
with tokenize.open(__file__) as f:
setup_py_code = f.read()
else:
filename = "<auto-generated setuptools caller>"
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/usr/opt/sas/python3a/llvmlite-0.41.1/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' bdist_wheel -d /tmp/pip-wheel-gtvrf49_
cwd: /usr/opt/sas/python3a/llvmlite-0.41.1/
Building wheel for llvmlite (setup.py) ... error
ERROR: Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Running command python setup.py clean
running clean
'build/lib.aix-7205-2345-64-cpython-39' does not exist -- can't clean it
'build/bdist.aix-7205-2345-64' does not exist -- can't clean it
'build/scripts-3.9' does not exist -- can't clean it
removing '/usr/opt/sas/python3a/llvmlite-0.41.1/llvmlite/__pycache__' (and everything under it)
removing '/usr/opt/sas/python3a/llvmlite-0.41.1/__pycache__' (and everything under it)
Failed to build llvmlite
Installing collected packages: llvmlite
Running command Running setup.py install for llvmlite
running install
/opt/freeware/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
got version from file /usr/opt/sas/python3a/llvmlite-0.41.1/llvmlite/_version.py {'version': '0.41.1', 'full': '42db9b74c8e8ca012cb4394cbf941f2f9e4ae12b'}
running build_ext
/opt/freeware/bin/python3 /usr/opt/sas/python3a/llvmlite-0.41.1/ffi/build.py
Traceback (most recent call last):
File "/usr/opt/sas/python3a/llvmlite-0.41.1/ffi/build.py", line 228, in <module>
main()
File "/usr/opt/sas/python3a/llvmlite-0.41.1/ffi/build.py", line 224, in main
raise RuntimeError("unsupported platform: %r" % (sys.platform,))
RuntimeError: unsupported platform: 'aix'
error: command '/opt/freeware/bin/python3' failed with exit code 1
error: subprocess-exited-with-error
× Running setup.py install for llvmlite did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /opt/freeware/bin/python3 -u -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
# import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
# setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
# manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute `setup.py` since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
__file__ = %r
sys.argv[0] = __file__
if os.path.exists(__file__):
filename = __file__
with tokenize.open(__file__) as f:
setup_py_code = f.read()
else:
filename = "<auto-generated setuptools caller>"
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/usr/opt/sas/python3a/llvmlite-0.41.1/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' install --record /tmp/pip-record-zs4l1fhp/install-record.txt --single-version-externally-managed --root / --compile --install-headers /opt/freeware/include/python3.9/llvmlite
cwd: /usr/opt/sas/python3a/llvmlite-0.41.1/
Running setup.py install for llvmlite ... error
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> llvmlite
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
WARNING: There was an error checking the latest version of pip.
------------------------------
Mi Wang
------------------------------
#AIXOpenSource