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

rust on AIX

  • 1.  rust on AIX

    Posted Wed October 21, 2020 08:43 AM
    are any plans to port rust (Rust) to AIX?

    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------


  • 2.  RE: rust on AIX

    Posted Wed October 21, 2020 09:29 AM
    Rust needs llvm backend which is not yet available on AIX.
    So this will require some good amount of work to port Rust on AIX. 
    May I ask what is your use case ?

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: rust on AIX

    Posted Wed October 21, 2020 09:34 AM
    Hi Sanket, as far as I know, the new XL C/C++ compiler is built using LLVM. That's why I suppose, that LLVM is already ported to AIX. My use case is very simple - the new InfluxDB 2.0 uses both Golang and Rust. Without Rust I will not be able to compile it on AIX.

    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 4.  RE: rust on AIX

    Posted Wed October 21, 2020 09:47 AM
    XL C/C++ are not based on LLVM. But there is work going on for porting llvm for AIX
    https://lists.llvm.org/pipermail/llvm-dev/2019-February/130175.html

    This will take some time until we do not have llvm backend rust will not be possible on AIX.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 5.  RE: rust on AIX

    Posted Thu May 26, 2022 07:27 AM
    Hi,

    There is any news on porting rust to AIX?
    As far as I could understand, llvm is already available.

    TIA,
    Daniel

    ------------------------------
    monitor monitor
    ------------------------------



  • 6.  RE: rust on AIX

    Posted Mon May 30, 2022 07:08 AM
    Edited by SANKET RATHI Mon May 30, 2022 07:09 AM
    Yes llvm now works on AIX but when we evaluated Rust porting it is very involved effort and we are working on a plan within IBM how to contain.
    It is not easy port as it requires integrated assembler and linker to also work on AIX as well.
    Rust work is very different from c/c++ hence it is not easy to adapt. 
    Right now I can not provide any definitive answer but we are evaluating options.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 7.  RE: rust on AIX

    Posted Fri November 18, 2022 08:45 AM

    Hi Sanket,

    Just wanted to check if anything has changed since May. At Datadog we're also interested in learning what the future of Rust on AIX is.

    Kind regards,

    Marcus



    ------------------------------
    Marcus Hirt
    ------------------------------



  • 8.  RE: rust on AIX

    Posted Tue November 22, 2022 08:30 AM
    It is a work in progress. Look at here --> https://github.com/rust-lang/compiler-team/issues/553

    ------------------------------
    Ayappan P
    ------------------------------



  • 9.  RE: rust on AIX

    Posted Tue November 22, 2022 09:48 AM
    This is great news! :)

    Kind regards,
    Marcus





  • 10.  RE: rust on AIX

    Posted Tue March 07, 2023 06:02 AM

    It seems that https://github.com/rust-lang/compiler-team/issues/553 is closed, but there are still a few related open issues, such as https://github.com/nix-rust/nix/pull/1823 and https://github.com/seanmonstar/num_cpus/pull/123. Has anyone started playing around with the Rust support on AIX yet?



    ------------------------------
    Marcus Hirt
    ------------------------------



  • 11.  RE: rust on AIX

    Posted Tue March 07, 2023 06:24 AM

    Hi Marcus,

    I am playing with Rust Beta on AIX. It works but yes - there are a lot of crates which don't support AIX.



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 12.  RE: rust on AIX

    Posted Fri September 15, 2023 09:23 AM

    Hi Marcus, 

    will there be in future a option to cross compile on Linux x86_64 for AIX ?



    ------------------------------
    Dennis Schneck
    ------------------------------



  • 13.  RE: rust on AIX

    Posted Mon September 18, 2023 07:39 AM

    Hi Dennis,

    I am not Marcus, but try to answer your question. No, I think there will be no such option. To cross-compile you need AIX runtime on your Linux. Rust compiler doesn't provide any runtimes. IBM as you may know doesn't provide such runtime too. So it is unfortunately up to you/us as IBM customers to enable the cross-compilation. As for now I don't know any way to do it. It'd require all headers and some libraries from live AIX system and AIX linker working on x86_64 Linux.



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 14.  RE: rust on AIX

    Posted Mon September 18, 2023 08:09 AM

    Hi Andrey,

    >I am not Marcus

    sorry !   >So it is unfortunately up to you/us as IBM customers to enable the cross-compilation.  Thanks for the information  Dennis   
    On 18.09.23 13:38, Andrey Klyachkin via IBM TechXchange Community wrote:
    0100018aa815de2e-b01f7082-634c-418d-8d64-135fd8023695-000000@email.amazonses.com">
    Hi Dennis,      I am not Marcus, but try to answer your question. No, I think there will be no such option. To cross-compile you need AIX runtime on your Linux. Rust compiler doesn't provide any runtimes. IBM as you may know doesn't provide such runtime too. So it is unfortunately up to you/us as IBM customers to enable the cross-compilation. As for now I don't know any way to do it. It'd require all headers and some libraries from live AIX system and AIX linker working on x86_64 Linux.   ------------------------------ Andrey Klyachkin   https://www.power-devops.com ------------------------------ 
    --      Mit freundlichen Grüßen / Best Regards / 诚挚的问候  Dennis Schneck    Schuler Pressen GmbH | Schuler-Platz 1 | 73033 Göppingen | Germany Tel. +49 7161 66-2933 Dennis.Schneck@schulergroup.com | http://www.schulergroup.com Member of the ANDRITZ Group E-Mail-Pflichtangaben (gem. EHUG): http://pflichtangaben.schulergroup.com



    Original Message:
    Sent: 9/18/2023 7:39:00 AM
    From: Andrey Klyachkin
    Subject: RE: rust on AIX

    Hi Dennis,

    I am not Marcus, but try to answer your question. No, I think there will be no such option. To cross-compile you need AIX runtime on your Linux. Rust compiler doesn't provide any runtimes. IBM as you may know doesn't provide such runtime too. So it is unfortunately up to you/us as IBM customers to enable the cross-compilation. As for now I don't know any way to do it. It'd require all headers and some libraries from live AIX system and AIX linker working on x86_64 Linux.



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------

    Original Message:
    Sent: Fri September 15, 2023 08:45 AM
    From: Dennis Schneck
    Subject: rust on AIX

    Hi Marcus, 

    will there be in future a option to cross compile on Linux x86_64 for AIX ?



    ------------------------------
    Dennis Schneck

    Original Message:
    Sent: Tue March 07, 2023 06:23 AM
    From: Andrey Klyachkin
    Subject: rust on AIX

    Hi Marcus,

    I am playing with Rust Beta on AIX. It works but yes - there are a lot of crates which don't support AIX.



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com

    Original Message:
    Sent: Tue March 07, 2023 06:01 AM
    From: Marcus Hirt
    Subject: rust on AIX

    It seems that https://github.com/rust-lang/compiler-team/issues/553 is closed, but there are still a few related open issues, such as https://github.com/nix-rust/nix/pull/1823 and https://github.com/seanmonstar/num_cpus/pull/123. Has anyone started playing around with the Rust support on AIX yet?



    ------------------------------
    Marcus Hirt

    Original Message:
    Sent: Tue November 22, 2022 08:29 AM
    From: Ayappan P
    Subject: rust on AIX

    It is a work in progress. Look at here --> https://github.com/rust-lang/compiler-team/issues/553

    ------------------------------
    Ayappan P

    Original Message:
    Sent: Fri November 18, 2022 06:41 AM
    From: Marcus Hirt
    Subject: rust on AIX

    Hi Sanket,

    Just wanted to check if anything has changed since May. At Datadog we're also interested in learning what the future of Rust on AIX is.

    Kind regards,

    Marcus



    ------------------------------
    Marcus Hirt

    Original Message:
    Sent: Mon May 30, 2022 07:08 AM
    From: SANKET RATHI
    Subject: rust on AIX

    Yes llvm now works on AIX but when we evaluated Rust porting it is very involved effort and we are working on a plan within IBM how to contain.
    It is not easy port as it requires integrated assembler and linker to also work on AIX as well.
    Rust work is very different from c/c++ hence it is not easy to adapt. 
    Right now I can not provide any definitive answer but we are evaluating options.

    ------------------------------
    SANKET RATHI

    Original Message:
    Sent: Thu May 26, 2022 03:51 AM
    From: monitor monitor
    Subject: rust on AIX

    Hi,

    There is any news on porting rust to AIX?
    As far as I could understand, llvm is already available.

    TIA,
    Daniel

    ------------------------------
    monitor monitor

    Original Message:
    Sent: Wed October 21, 2020 09:46 AM
    From: SANKET RATHI
    Subject: rust on AIX

    XL C/C++ are not based on LLVM. But there is work going on for porting llvm for AIX
    https://lists.llvm.org/pipermail/llvm-dev/2019-February/130175.html

    This will take some time until we do not have llvm backend rust will not be possible on AIX.

    ------------------------------
    SANKET RATHI

    Original Message:
    Sent: Wed October 21, 2020 09:34 AM
    From: Andrey Klyachkin
    Subject: rust on AIX

    Hi Sanket, as far as I know, the new XL C/C++ compiler is built using LLVM. That's why I suppose, that LLVM is already ported to AIX. My use case is very simple - the new InfluxDB 2.0 uses both Golang and Rust. Without Rust I will not be able to compile it on AIX.

    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com

    Original Message:
    Sent: Wed October 21, 2020 09:28 AM
    From: SANKET RATHI
    Subject: rust on AIX

    Rust needs llvm backend which is not yet available on AIX.
    So this will require some good amount of work to port Rust on AIX. 
    May I ask what is your use case ?

    ------------------------------
    SANKET RATHI

    Original Message:
    Sent: Wed October 21, 2020 08:42 AM
    From: Andrey Klyachkin
    Subject: rust on AIX

    are any plans to port rust (Rust) to AIX?

    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------


  • 15.  RE: rust on AIX

    Posted Fri September 22, 2023 02:12 PM
    To add to Andrey's information:


    This is an article about using GCC as a cross-compiler - it is NOT about RUST. It does, however, outline the general steps necessary to make such a thing happen. 

    This is an article about cross-compiling with RUST:


    Which is pretty helpful, but if you follow a link in it:


    You'll notice that the support for the RUST standard library on AIX is still a work-in-progress. So I expect your mileage to vary...

    Now I'm going to ask: why do you want to cross-compile binaries for an AIX target with a Linux host? There may be another way to alleviate your problem besides cross-compilation. :)

    -- 
    Stephen L. Ulmer
    Enterprise Architect
    Mainline Information Systems











  • 16.  RE: rust on AIX

    Posted Fri October 06, 2023 03:57 AM

    Hi Ayappan P, Sanket

    did we get rust support on AIX?

    if so, how can i get it?



    ------------------------------
    Nishith Khandelwal
    ------------------------------



  • 17.  RE: rust on AIX

    Posted Fri October 06, 2023 04:07 AM

    Can you check this thread --> https://community.ibm.com/community/user/power/discussion/rust-on-aix-powerpc



    ------------------------------
    Ayappan P
    ------------------------------



  • 18.  RE: rust on AIX

    Posted Fri October 06, 2023 05:10 AM

    Ayappan P,

    There is not much info there in other forum but i have still asked mu question there.

    If you know whether we have supoort for it, would be appreciated.



    ------------------------------
    Nishith Khandelwal
    ------------------------------



  • 19.  RE: rust on AIX

    Posted Fri October 06, 2023 05:17 AM

    SI YUAN ZHANG is the right person. Please contact him through mail with some basic infos as mentioned in that thread. 



    ------------------------------
    Ayappan P
    ------------------------------



  • 20.  RE: rust on AIX

    Posted Sat February 22, 2025 10:20 AM

    Rust 1.84 for AIX community edition is now available at: https://early-access.ibm.com/software/support/trial/cst/welcomepage.wss?siteId=2171&tabId=6097&w=1



    ------------------------------
    Adam D'Andrea
    ------------------------------



  • 21.  RE: rust on AIX

    Posted Fri May 16, 2025 04:04 PM
    Edited by Rafik Zurob Fri May 16, 2025 05:44 PM

    The IBM Open SDK for Rust on AIX 1.86 Community Edition is now available at https://early-access.ibm.com/software/support/trial/cst/welcomepage.wss?siteId=2171&tabId=6097&w=1

    We expect this community edition to also be available via the AIX Toolbox for Open Source Software next week.



    ------------------------------
    Rafik Zurob
    ------------------------------



  • 22.  RE: rust on AIX

    Posted Fri May 16, 2025 04:34 PM

    Hi Rafik,

    your link points to the Open XL C/C++ for Linux Community Edition. But the Adam's link from above still works and shows the new Rust version.

    Is there a site for Rust like Fix List for XL C/C++ - https://www.ibm.com/support/pages/fix-list-xl-cc-aix ?

    Thank you!



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 23.  RE: rust on AIX

    Posted Fri May 16, 2025 05:55 PM

    Thanks, Andrey.  Fixed.  The fix list page is https://www.ibm.com/support/pages/fixlist-ibm-open-sdk-rust-aix.  It's still being updated to add the IBM Open SDK for Rust on AIX 1.86.  Related to this, we plan to release Fix Pack 1 early next week to fix an issue that confuses the "rustversion" crate.  The Community Edition is not affected because it's already at Fix Pack 1.



    ------------------------------
    Rafik Zurob
    ------------------------------



  • 24.  RE: rust on AIX

    Posted 29 days ago

    Rafir,

    as far as I see the new Community Edition is delivered in RPM packages. The previous version was in standard AIX LPP filesets. 

    It means the update path is to uninstall the old version and install the new version.

    Is it only for the Community Edition or the "licensed" edition too? 

    Do you plan to go with RPMs further for all future versions?



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 25.  RE: rust on AIX

    Posted 28 days ago

    Hi Andrey.  The Community Edition going forward will be using rpms.  This is to allow it to be integrated into the AIX Toolbox, which uses dnf and rpm to manage packages.  Once integration into the Toolbox is completed (ETA is end of this week), you'll be able to use:

    dnf install cargo rust rustfmt

    to install the latest available version (and add/update symlinks to /opt/freeware/bin), or

    dnf install cargo1.86 rust1.86 rustfmt1.86

    to specifically install the 1.86 versions without adding symlinks to /opt/freeware/bin.

    Because Rust does not guarantee compatibility between objects built by different compiler versions, we support multiple versions of the Open SDK for Rust on AIX co-existing on the same machine.  Right now, the 1.84 Community Edition is installed by installp to /opt/IBM/RustSDK/<version>, while the 1.86 (and future) Community Editions are installed by rpm to /opt/freeware/lib/RustSDK/<version>.  If you install 1.86 and no longer want 1.84, you'll need to uninstall 1.84 as described here: https://www.ibm.com/docs/en/osfroa/1.84.0?topic=184-uninstalling-default-installation.

    The licensed edition of the Open SDK for Rust on AIX will continue to use installp and will continue to be installed to /opt/IBM/RustSDK/<version>.  The licensed and community editions can co-exist on the same machine.



    ------------------------------
    Rafik Zurob
    ------------------------------



  • 26.  RE: rust on AIX

    Posted 25 days ago

    The Community Edition is now live on the AIX Toolbox!

    # dnf install cargo
    AIX generic repository                                                    12 kB/s | 2.7 kB     00:00
    AIX generic repository                                                   6.1 MB/s | 8.4 MB     00:01
    AIX noarch repository                                                     23 kB/s | 2.6 kB     00:00
    AIX noarch repository                                                    3.5 MB/s | 3.5 MB     00:00
    AIX 7.2 specific repository                                               23 kB/s | 2.7 kB     00:00
    AIX 7.2 specific repository                                              2.2 MB/s | 1.3 MB     00:00
    Last metadata expiration check: 0:00:02 ago on Fri May 23 10:09:09 EDT 2025.
    Dependencies resolved.
    =========================================================================================================
     Package                             Architecture Version                  Repository               Size
    =========================================================================================================
    Installing:
     cargo                               ppc          1.86.0-250516            AIX_Toolbox_72          6.6 k
    Installing dependencies:
     cargo1.86                           ppc          1.86.0-250516            AIX_Toolbox_72           15 M
     rust                                ppc          1.86.0-250516            AIX_Toolbox_72          6.7 k
     rust1.86                            ppc          1.86.0-250516            AIX_Toolbox_72          221 M
     rust1.86-community-license          ppc          1.86.0-250516            AIX_Toolbox_72          8.7 M
     rust1.86-std-static                 ppc          1.86.0-250516            AIX_Toolbox_72           33 M
     
    Transaction Summary
    =========================================================================================================
    Install  6 Packages
     
    Total download size: 277 M
    Installed size: 1.2 G
    Is this ok [y/N]: y
    Downloading Packages:
    (1/6): rust-1.86.0-250516.aix7.2.ppc.rpm                                  46 kB/s | 6.7 kB     00:00
    (2/6): cargo-1.86.0-250516.aix7.2.ppc.rpm                                 41 kB/s | 6.6 kB     00:00
    (3/6): rust1.86-community-license-1.86.0-250516.aix7.2.ppc.rpm           6.5 MB/s | 8.7 MB     00:01
    (4/6): cargo1.86-1.86.0-250516.aix7.2.ppc.rpm                            6.5 MB/s |  15 MB     00:02
    (5/6): rust1.86-std-static-1.86.0-250516.aix7.2.ppc.rpm                  7.7 MB/s |  33 MB     00:04
    (6/6): rust1.86-1.86.0-250516.aix7.2.ppc.rpm                             7.6 MB/s | 221 MB     00:29
    ---------------------------------------------------------------------------------------------------------
    Total                                                                    9.5 MB/s | 277 MB     00:29
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                                                 1/1
      Installing       : rust1.86-community-license-1.86.0-250516.ppc                                    1/6
      Installing       : rust1.86-std-static-1.86.0-250516.ppc                                           2/6
      Installing       : rust1.86-1.86.0-250516.ppc                                                      3/6
      Installing       : cargo1.86-1.86.0-250516.ppc                                                     4/6
      Installing       : rust-1.86.0-250516.ppc                                                          5/6
      Installing       : cargo-1.86.0-250516.ppc                                                         6/6
      Verifying        : cargo-1.86.0-250516.ppc                                                         1/6
      Verifying        : cargo1.86-1.86.0-250516.ppc                                                     2/6
      Verifying        : rust-1.86.0-250516.ppc                                                          3/6
      Verifying        : rust1.86-1.86.0-250516.ppc                                                      4/6
      Verifying        : rust1.86-community-license-1.86.0-250516.ppc                                    5/6
      Verifying        : rust1.86-std-static-1.86.0-250516.ppc                                           6/6
     
    Installed:
      cargo-1.86.0-250516.ppc                                cargo1.86-1.86.0-250516.ppc
      rust-1.86.0-250516.ppc                                 rust1.86-1.86.0-250516.ppc
      rust1.86-community-license-1.86.0-250516.ppc           rust1.86-std-static-1.86.0-250516.ppc
     
    Complete!
    # /opt/freeware/bin/rustc --version
    rustc 1.86.0 (a5ebf0b19 2025-05-14) (IBM Open SDK for Rust on AIX 1.86.0.1 (5900-BND, 5765-J24))
    #


    ------------------------------
    Rafik Zurob
    ------------------------------



  • 27.  RE: rust on AIX

    Posted 30 days ago

    Hi Andrey,

    This seems to be the right link for Rust 1.86 on AIX: https://www.ibm.com/docs/en/osfroa/1.86.0



    ------------------------------
    Diego Roig
    ------------------------------