AIX Open Source

 View Only
Expand all | Collapse all

Get pakcage with latest GCC and/or LLVM/Clang (or compile it)

  • 1.  Get pakcage with latest GCC and/or LLVM/Clang (or compile it)

    Posted Sat July 24, 2021 05:29 AM
    Hello,
    There is a pakcage with GCC 8.3.0.
    So we can compile c++17 program.

    I need compile under Aix a c++20 program, which compile with gcc 10 (or 11) and clang 12.

    Do you have tips for recompile latest clang or GCC, or getting an updated package?

    regards
    Gilles Vollant

    ------------------------------
    Gilles Vollant
    ------------------------------


  • 2.  RE: Get pakcage with latest GCC and/or LLVM/Clang (or compile it)

    Posted Mon July 26, 2021 01:08 AM
    Hi Gilles,

    We are working on gcc-10 and will be publishing it from AIX toolbox.
    As per current plan hopefully we will be able to publish 1-2 months.

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



  • 3.  RE: Get pakcage with latest GCC and/or LLVM/Clang (or compile it)

    Posted Wed July 28, 2021 03:10 AM
    This is a very good new. GCC-10 has enhanced support of somes c++20 feature.
    Thank you!!

    Just curious, why gcc-10 and not current gcc-11 ? Pehaps gcc-11 had specific porting issues ?


    And what about the Parallel STL (like using std::sort with,multithreading) support ?
    Under Linux, GCC >=9 support Parallel STL with using Intel oneTBB library

    regards
    Gilles

    ------------------------------
    Gilles Vollant
    ------------------------------



  • 4.  RE: Get pakcage with latest GCC and/or LLVM/Clang (or compile it)

    Posted Thu July 29, 2021 12:25 PM
    We will release gcc-11 as well but first we are focusing on gcc-10.
    Also with gcc-11 we are planning to make some changes like DWRF as default debug format and some more so some discussion for that under way.
    We have not explored much on Parallel STL but I think for Parallel STL oneTBB library is required and on AIX we do not have port of that. 


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



  • 5.  RE: Get pakcage with latest GCC and/or LLVM/Clang (or compile it)

    Posted Sun September 19, 2021 08:12 AM
    Hello,
    Do you have an ETA for gcc 10 package for AIX ?

    Thank you for your efforts!

    ------------------------------
    Gilles Vollant
    ------------------------------



  • 6.  RE: Get pakcage with latest GCC and/or LLVM/Clang (or compile it)

    Posted Mon September 20, 2021 01:45 AM
    Hi,
    The work is underway. First we will release gcc-10 on AIX 7.3 beta and then for AIX 7.1 and 7.2
    Hope to release for AIX 7.3 beta in couple of weeks and then for AIX 7.2 and 7.1 in a month time. 
    So end of October is when you can expect gcc-10 on AIX 7.2/7.1

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



  • 7.  RE: Get pakcage with latest GCC and/or LLVM/Clang (or compile it)

    Posted Mon November 15, 2021 01:14 AM
    Hello,
    it seem gcc 10 for AIX 7.3 beta is released

    Do you have any ETA for gcc10 for aix 7.2?

    regards
    gilles vollant

    ------------------------------
    Gilles Vollant
    ------------------------------



  • 8.  RE: Get pakcage with latest GCC and/or LLVM/Clang (or compile it)

    Posted Mon November 15, 2021 01:45 AM
    Hello
    Have you any news about gcc 10 for Aix 7.2 ?

    Thank you!

    ------------------------------
    Valéry FRONTERE
    ------------------------------



  • 9.  RE: Get pakcage with latest GCC and/or LLVM/Clang (or compile it)

    Posted Mon November 15, 2021 01:46 AM
    We are working on that. Hopefully by next month we will have gcc-10 on AIX 7.1 and 7.2
    We have already published gcc-10 for AIX 7.3

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



  • 10.  RE: Get pakcage with latest GCC and/or LLVM/Clang (or compile it)

    Posted Sun December 12, 2021 11:48 AM
    I see a gdb-10 build which is compatible with AIX 7.2. Pehaps gcc10 for AIX 7.2 will come soon ?

    Another option for us: have a virtual AIX 7.3 machine on ibm technology zone CECC portal, and build under AIX 7.3 with GCC10 a binary compatible with AIX 7.2 (and if possible 7.1)

    ------------------------------
    Gilles Vollant
    ------------------------------



  • 11.  RE: Get pakcage with latest GCC and/or LLVM/Clang (or compile it)

    Posted Mon December 13, 2021 12:45 AM
    Binary compiled on higher level of AIX is not compatible with lower level of AIX. 
    Binary compatibility is reverse, compiled on lower level of AIX will work on higher level. 
    We are working on gcc-10 for AIX 7.1 and 7.2 and it is just waiting for internal process. 
    Hope to release then soon.

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



  • 12.  RE: Get pakcage with latest GCC and/or LLVM/Clang (or compile it)

    Posted Thu December 16, 2021 02:44 AM
    Thank you, we will just wait and start using c++20 new feature soon on our code !

    Just a question : the current gcc-8 for AIX did not support the std::thread function.
    Is this problem fixed?

    regards
    Gilles Vollant

    ------------------------------
    Gilles Vollant
    ------------------------------



  • 13.  RE: Get pakcage with latest GCC and/or LLVM/Clang (or compile it)

    Posted Thu December 16, 2021 03:31 AM
    Hi Gilles,

    Did you try compiling with -pthread option ?
    Compiling with option "g++ test.cc -pthread" shouldn't have any issue.

    ------------------------------
    SANGAMESH
    ------------------------------



  • 14.  RE: Get pakcage with latest GCC and/or LLVM/Clang (or compile it)

    Posted Wed January 05, 2022 01:43 PM
    this is fine with -pthread, thank

    ------------------------------
    Gilles Vollant
    ------------------------------



  • 15.  RE: Get pakcage with latest GCC and/or LLVM/Clang (or compile it)

    Posted Sun February 06, 2022 03:46 PM
    Executable compiled with GCC 10 under Aix 7.2 run fine under Aix 7.2 but not 7.1

    ------------------------------
    Gilles Vollant
    ------------------------------



  • 16.  RE: Get pakcage with latest GCC and/or LLVM/Clang (or compile it)

    Posted Mon February 07, 2022 12:06 AM
    On what version of AIX you compiled with gcc-10? 
    AIX support backward compatibility means if you compile on older AIX release then it is support on future AIX releases but reverse is not supported.
    Also you may not have gcc-10 libraries on AIX 7.1.

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