Power

 View Only

AIX 7.1 to 7.3 Broke GCC 4.8.3

  • 1.  AIX 7.1 to 7.3 Broke GCC 4.8.3

    Posted 02/29/24 10:32 AM

    Migrated/cutover Power 7 to power 8  upgraded from 7.1 to 7.3.

    tested build prior to upgrade and everything was fine.

     After the upgrade:

    gcc/g++ build giving the following errors. 

    Similar issues to this :   AIX Open Source

    Ibm remove preview
    AIX Open Source
    Our server team updated the software on our AIX system. It's still 7.2 but some of the libraries and programs have been updated. In doing so, the gcc installa
    View this on Ibm >

    runing make -f * 
    /usr/include/sys/time.h:126:11: error: conflicting declaration 'typedef int sigset_t'
    In file included from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.2/include-fixed/wchar.h:53:0,
                     from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.2/include/c++/cwchar:44,
                     from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.2/include/c++/bits/postypes.h:40,
                     from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.2/include/c++/iosfwd:40,
                     from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.2/include/c++/ios:38,
                     from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.2/include/c++/ostream:38,
                     from /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.2/include/c++/iostream:39,
                     from barcode_gen.cc:10:
    /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.2/include-fixed/sys/types.h:361:3: error: 'sigset_t' has a previous declaration as 'typedef struct sigset_t sigset_t'
     } sigset_t;

    After some research I found that its related to system headers changes after the upgrade. 

    First question I have is : where do these come from? :

    ls /opt/freeware/lib/gcc

    powerpc-ibm-aix5.3.0.0/  

    powerpc-ibm-aix7.1.0.0/       << we build with these libs currently. Where did they come from? 

    are these some sort of patches provided by IBM in the past through upgrades? 

    I ask because it looks as if there were fixes provided for gcc 4.8.2 on aix 7.1. 

    in any case..... I will start here.

    Any ideas what my options are in this situation?  Upgrade gcc? if so,  which version would you recommend on aix 7.3 coming from gcc 4.8.2.

    Thanks in advance! any advice is welcome. 



    ------------------------------
    Jeddadiah Amelung
    ------------------------------