AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
Expand all | Collapse all

Install of shade package [llvmlite package] -> llvmlite package AIX platfrom error?

  • 1.  Install of shade package [llvmlite package] -> llvmlite package AIX platfrom error?

    Posted Fri September 01, 2023 03:18 AM

    I am trying to install shad package, which requires llvmlite package. But it seems currently this llvmlite package is not for AIX platform? (see below error message). Is there any workaround?

    "     File "/tmp/pip-install-ynzxlm4x/llvmlite/ffi/build.py", line 222, in main
          raise RuntimeError("unsupported platform: %r" % (sys.platform,))
      RuntimeError: unsupported platform: 'aix6'
      error: command '/opt/freeware/bin/python3' failed with exit status 1 "



    ------------------------------
    Bruce Turgeon
    ------------------------------


  • 2.  RE: Install of shade package [llvmlite package] -> llvmlite package AIX platfrom error?

    Posted Fri September 01, 2023 04:27 AM

    this is all open source, so feel free to edit build.py and add some logic for aix.

    https://github.com/numba/llvmlite/blob/main/ffi/build.py#L213



    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 3.  RE: Install of shade package [llvmlite package] -> llvmlite package AIX platfrom error?

    Posted Mon September 11, 2023 09:59 AM

    Hi Ayappan / SANGAMESH,

    Can you please provide some detailed / practicable steps for dealing with this? I am not familiar with the llvmlite package. I just need to install shap package as per our business users' requirement, which has the pre-requisite of installing llvmlite package."

    Thanks

    Mi



    ------------------------------
    Mi Wang
    ------------------------------



  • 4.  RE: Install of shade package [llvmlite package] -> llvmlite package AIX platfrom error?

    Posted Mon September 11, 2023 10:11 AM

    Share the building steps you are using .

    Which AIX OS you are using . According to above error, 'RuntimeError: unsupported platform: 'aix6'',  your system is aix6.

    Do you have later AIX OS like 7.1 or later ? Try it out in that also if you have. 



    ------------------------------
    Ranjit Ranjan
    ------------------------------



  • 5.  RE: Install of shade package [llvmlite package] -> llvmlite package AIX platfrom error?

    Posted Mon September 11, 2023 10:23 AM

    Hi, 

    On second thought, I looked into the code https://github.com/numba/llvmlite/blob/main/ffi/build.py.
    AIX OS is not handled, So we need to make some changes in code to make it work. 

    Thanks



    ------------------------------
    Ranjit Ranjan
    ------------------------------



  • 6.  RE: Install of shade package [llvmlite package] -> llvmlite package AIX platfrom error?

    Posted Thu September 14, 2023 09:05 AM

    Hello Ranjan,

    I am wondering if you are working on the steps for changing the code?

    Thanks

    Mi



    ------------------------------
    Mi Wang
    ------------------------------



  • 7.  RE: Install of shade package [llvmlite package] -> llvmlite package AIX platfrom error?

    Posted Fri September 15, 2023 08:40 AM

    Hi,

    I tried once .Temporary fixing above error, further I see below error.

      File "/llvmlite/ffi/build.py", line 135, in main_posix

        raise RuntimeError(msg) from None

    RuntimeError: Could not find a `llvm-config` binary. There are a number of reasons this could occur, please see: https://llvmlite.readthedocs.io/en/latest/admin-guide/install.html#using-pip for help.

    error: command '/opt/freeware/bin/python3.9' failed with exit code 1

    So, to compile llvmlite , we need llvm-config.

    Below excert are from  https://llvmlite.readthedocs.io/en/latest/admin-guide/install.html#using-pip :

    1. If you are on an unsupported architecture (i.e. not x86*) or unsupported Python version for binary wheels (e.g. Python alphas) then pip will try and build Numba from sdist which in turn will try and build llvmlitefrom sdist. This will inevitably fail as the llvmlite source distribution needs an appropriate LLVM installation to build.


    ------------------------------
    Ranjit Ranjan
    ------------------------------



  • 8.  RE: Install of shade package [llvmlite package] -> llvmlite package AIX platfrom error?

    Posted Tue September 19, 2023 11:24 AM

    Hi Ranjit,

    I am wondering if IBM can somehow work out a solution to resolve the issue, e.g.: create an llvm-config for AIX platform?

    Thanks

    Mi



    ------------------------------
    Mi Wang
    ------------------------------



  • 9.  RE: Install of shade package [llvmlite package] -> llvmlite package AIX platfrom error?

    Posted Thu September 21, 2023 09:53 AM

    Hi Wang

    This package will require some work to make it work on AIX and it is not in our priority list.
     We would suggest you to work and try to compile it on AIX and if you have any specific issue please discuss here.

    Thanks

    Ranjit



    ------------------------------
    Ranjit Ranjan
    ------------------------------



  • 10.  RE: Install of shade package [llvmlite package] -> llvmlite package AIX platfrom error?

    Posted Wed September 27, 2023 05:28 PM

    Hi Ranjit,

    I am trying to use package llvm-installer (v1.3.10) to install the llvm. The package calls another package called sys-detection==1.3.0, which should return a value for AIX. I hope that adding some elif branch for AIX in the llvm-installer will then get the installation of llvm done for our AIX servers. The issue now is the llvm-installer package also calls another package called downloadutil (v1.0.4) and I got the following error when trying to install it. Can you please help?

    Thanks

    Mi

         writing manifest file '/tmp/pip-modern-metadata-u7iur3ws/downloadutil.egg-info/SOURCES.txt'
          reading manifest file '/tmp/pip-modern-metadata-u7iur3ws/downloadutil.egg-info/SOURCES.txt'
          adding license file 'LICENSE'
          writing manifest file '/tmp/pip-modern-metadata-u7iur3ws/downloadutil.egg-info/SOURCES.txt'
          creating '/tmp/pip-modern-metadata-u7iur3ws/downloadutil-1.0.4.dist-info'
          error: invalid command 'bdist_wheel'
          [end of output]



    ------------------------------
    Mi Wang
    ------------------------------



  • 11.  RE: Install of shade package [llvmlite package] -> llvmlite package AIX platfrom error?

    Posted Thu September 28, 2023 03:26 AM

    Try installing this  pypi.org/project/wheel



    ------------------------------
    Ranjit Ranjan
    ------------------------------