AIX Open Source

 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 12 hours ago

    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
    ------------------------------