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

AIX7.1 gcc-8.3.0-1.ppc dependency on libmpc issue

  • 1.  AIX7.1 gcc-8.3.0-1.ppc dependency on libmpc issue

    Posted Thu January 23, 2020 05:55 PM

    Originally posted by: H0W2_tomasz_lacki


    Please read below thread with our System Engineer. The upgrade gcc from 6.3 to 8.3 does not upgrade all necessary depended components.

     

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------

     

     

    Thank you,
    It works now

    (cut)> g++ a.cpp && ./a.out
    Hello World!

    From: (cut)
    Sent: Thursday, January 23, 2020 8:50 AM
    To: (cut)
    Cc: (cut)
    Subject: RE: gcc upgrade on AIX 7.1 and Linux

    Done

    (cut):/> yum install libmpc
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package libmpc.ppc 0:1.0.3-1 will be updated
    ---> Package libmpc.ppc 0:1.1.0-1 will be an update
    --> Finished Dependency Resolution

    Dependencies Resolved

    ========================================================================================================================
    Package                    Arch                    Version                       Repository                       Size
    ========================================================================================================================
    Updating:
    libmpc                     ppc                     1.1.0-1                       AIX_Toolbox                     224 k

    Transaction Summary
    ========================================================================================================================
    Upgrade       1 Package

    Total download size: 224 k
    Is this ok [y/N]: y
    Downloading Packages:
    libmpc-1.1.0-1.aix6.1.ppc.rpm                                                                    | 224 kB  00:00:00
    Running Transaction Check
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Updating   : libmpc-1.1.0-1.ppc                                                                                   1/2
      Cleanup    : libmpc-1.0.3-1.ppc                                                                                   2/2

    Updated:
      libmpc.ppc 0:1.1.0-1

    Complete!
    (cut):/> yum list installed |grep libmpc
    libmpc.ppc                        1.1.0-1                    @AIX_Toolbox
    (cut):/>                                           

    (cut)
            

    From: (cut)
    Sent: Thursday, January 23, 2020 8:39 AM
    To: (cut); (cut)
    Cc: (cut)
    Subject: RE: gcc upgrade on AIX 7.1 and Linux

    Please update libmpc to the highest available. Looks like the dependency is not correct and the package was not updated during gcc update.

    (cut)> g++ a.cpp
    exec(): 0509-036 Cannot load program /opt/freeware/libexec/gcc/powerpc-ibm-aix7.1.0.0/8.3.0/cc1plus because of the following errors:
            0509-130 Symbol resolution failed for cc1plus because:
            0509-136   Symbol _GLOBAL__AIXI_libmpc_so (number 264) is not exported from
                       dependent module /opt/freeware/lib/libmpc.a(libmpc.so.3).
            0509-136   Symbol _GLOBAL__AIXD_libmpc_so (number 265) is not exported from
                       dependent module /opt/freeware/lib/libmpc.a(libmpc.so.3).
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.

    (cut)> yum info libmpc
    Installed Packages
    Name        : libmpc
    Arch        : ppc
    Version     : 1.0.3
    Release     : 1
    Size        : 1.0 M
    Repo        : installed
    Summary     : C library for multiple precision complex arithmetic
    URL         : http://www.multiprecision.org/
    License     : LGPLv2+
    Description : MPC is a C library for the arithmetic of complex numbers with
                : arbitrarily high precision and correct rounding of the result. It is
                : built upon and follows the same principles as Mpfr.
                :
                : The library is available as 32-bit and 64-bit.

    Available Packages
    Name        : libmpc
    Arch        : ppc
    Version     : 1.1.0
    Release     : 1
    Size        : 224 k
    Repo        : AIX_Toolbox
    Summary     : C library for multiple precision complex arithmetic
    URL         : http://www.multiprecision.org/
    License     : LGPLv2+
    Description : MPC is a C library for the arithmetic of complex numbers with
                : arbitrarily high precision and correct rounding of the result. It is
                : built upon and follows the same principles as Mpfr.
                :
                : The library is available as 32-bit and 64-bit.
    From: (cut)
    Sent: Thursday, January 23, 2020 8:29 AM
    To: (cut)
    Cc: (cut)
    Subject: RE: gcc upgrade on AIX 7.1 and Linux

    (cut)> yum info gcc
    Installed Packages
    Name        : gcc
    Arch        : ppc
    Version     : 6.3.0
    Release     : 2
    Size        : 82 M
    Repo        : installed
    Summary     : GNU Compiler Collection
    URL         : http://gcc.gnu.org/
    License     : GPL
    Description : The gcc package contains the GNU Compiler Collection version 6.3.0.
                : You'll need this package in order to compile C code.

    Available Packages
    Name        : gcc
    Arch        : ppc
    Version     : 8.3.0
    Release     : 1
    Size        : 28 M
    Repo        : AIX_Toolbox_71
    Summary     : GNU Compiler Collection
    URL         : http://gcc.gnu.org/
    License     : GPL
    Description : The gcc package contains the GNU Compiler Collection version 8.3.0.
                : You'll need this package in order to compile C code.

    (cut)>
    (cut)> sudo su - root
    (cut):/>  yum install gcc.ppc
    AIX_Toolbox                                                                                      | 2.9 kB  00:00:00
    AIX_Toolbox/primary_db                                                                           | 1.5 MB  00:00:03
    AIX_Toolbox_71                                                                                   | 2.9 kB  00:00:00
    AIX_Toolbox_71/primary_db                                                                        |  33 kB  00:00:00
    AIX_Toolbox_noarch                                                                               | 2.9 kB  00:00:00
    AIX_Toolbox_noarch/primary_db                                                                    |  63 kB  00:00:00
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package gcc.ppc 0:6.3.0-2 will be updated
    --> Processing Dependency: gcc = 6.3.0-2 for package: gcc-c++-6.3.0-2.ppc
    --> Processing Dependency: gcc = 6.3.0-2 for package: gcc-cpp-6.3.0-2.ppc
    ---> Package gcc.ppc 0:8.3.0-1 will be an update
    --> Processing Dependency: libgcc = 8.3.0-1 for package: gcc-8.3.0-1.ppc
    --> Running transaction check
    ---> Package gcc-c++.ppc 0:6.3.0-2 will be updated
    ---> Package gcc-c++.ppc 0:8.3.0-1 will be an update
    --> Processing Dependency: libstdc++-devel = 8.3.0-1 for package: gcc-c++-8.3.0-1.ppc
    --> Processing Dependency: libmpfr.a(libmpfr.so.6) for package: gcc-c++-8.3.0-1.ppc
    ---> Package gcc-cpp.ppc 0:6.3.0-2 will be updated
    ---> Package gcc-cpp.ppc 0:8.3.0-1 will be an update
    ---> Package libgcc.ppc 0:6.3.0-2 will be updated
    --> Processing Dependency: libgcc = 6.3.0-2 for package: libstdc++-6.3.0-2.ppc
    ---> Package libgcc.ppc 0:8.3.0-1 will be an update
    --> Running transaction check
    ---> Package libstdc++.ppc 0:6.3.0-2 will be updated
    ---> Package libstdc++.ppc 0:8.3.0-1 will be an update
    ---> Package libstdc++-devel.ppc 0:6.3.0-2 will be updated
    ---> Package libstdc++-devel.ppc 0:8.3.0-1 will be an update
    ---> Package mpfr.ppc 0:3.1.2-3 will be updated
    ---> Package mpfr.ppc 0:4.0.2-1 will be an update
    --> Finished Dependency Resolution

    Dependencies Resolved

    ========================================================================================================================
    Package                          Arch                 Version                    Repository                       Size
    ========================================================================================================================
    Updating:
    gcc                              ppc                  8.3.0-1                    AIX_Toolbox_71                   28 M
    Updating for dependencies:
    gcc-c++                          ppc                  8.3.0-1                    AIX_Toolbox_71                   11 M
    gcc-cpp                          ppc                  8.3.0-1                    AIX_Toolbox_71                   10 M
    libgcc                           ppc                  8.3.0-1                    AIX_Toolbox_71                  977 k
    libstdc++                        ppc                  8.3.0-1                    AIX_Toolbox_71                   12 M
    libstdc++-devel                  ppc                  8.3.0-1                    AIX_Toolbox_71                  3.3 M
    mpfr                             ppc                  4.0.2-1                    AIX_Toolbox                     2.0 M

    Transaction Summary
    ========================================================================================================================
    Upgrade       7 Packages

    Total download size: 67 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/7): gcc-8.3.0-1.aix7.1.ppc.rpm                                                                |  28 MB  00:00:39
    (2/7): gcc-cplusplus-8.3.0-1.aix7.1.ppc.rpm                                                      |  11 MB  00:00:20
    (3/7): gcc-cpp-8.3.0-1.aix7.1.ppc.rpm                                                            |  10 MB  00:00:18
    (4/7): libgcc-8.3.0-1.aix7.1.ppc.rpm                                                             | 977 kB  00:00:01
    (5/7): libstdcplusplus-8.3.0-1.aix7.1.ppc.rpm                                                    |  12 MB  00:00:19
    (6/7): libstdcplusplus-devel-8.3.0-1.aix7.1.ppc.rpm                                              | 3.3 MB  00:00:05
    (7/7): mpfr-4.0.2-1.aix6.1.ppc.rpm                                                               | 2.0 MB  00:00:09
    ------------------------------------------------------------------------------------------------------------------------
    Total                                                                                   597 kB/s |  67 MB     01:55
    Running Transaction Check
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Warning: RPMDB altered outside of yum.
      Updating   : libgcc-8.3.0-1.ppc                                                                                  1/14
      Updating   : mpfr-4.0.2-1.ppc                                                                                    2/14
      Updating   : gcc-cpp-8.3.0-1.ppc                                                                                 3/14
      Updating   : gcc-8.3.0-1.ppc                                                                                     4/14
      Updating   : libstdc++-8.3.0-1.ppc                                                                               5/14
      Updating   : libstdc++-devel-8.3.0-1.ppc                                                                         6/14
      Updating   : gcc-c++-8.3.0-1.ppc                                                                                 7/14
      Cleanup    : gcc-c++-6.3.0-2.ppc                                                                                 8/14
      Cleanup    : gcc-cpp-6.3.0-2.ppc                                                                                 9/14
      Cleanup    : gcc-6.3.0-2.ppc                                                                                    10/14
      Cleanup    : mpfr-3.1.2-3.ppc                                                                                   11/14
      Cleanup    : libstdc++-devel-6.3.0-2.ppc                                                                        12/14
      Cleanup    : libstdc++-6.3.0-2.ppc                                                                              13/14
      Cleanup    : libgcc-6.3.0-2.ppc                                                                                 14/14

    Updated:
      gcc.ppc 0:8.3.0-1

    Dependency Updated:
      gcc-c++.ppc 0:8.3.0-1              gcc-cpp.ppc 0:8.3.0-1      libgcc.ppc 0:8.3.0-1      libstdc++.ppc 0:8.3.0-1
      libstdc++-devel.ppc 0:8.3.0-1      mpfr.ppc 0:4.0.2-1

    Complete!
    (cut):/> type gcc
    gcc is /usr/bin/gcc
    (cut):/> gcc -v
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix7.1.0.0/8.3.0/lto-wrapper
    Target: powerpc-ibm-aix7.1.0.0
    Configured with: ../gcc-8.3.0/configure --prefix=/opt/freeware --mandir=/opt/freeware/man --infodir=/opt/freeware/info --with-local-prefix=/opt/freeware --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran,objc,obj-c++ --enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd --with-cloog=no --with-ppl=no --disable-libstdcxx-pch --enable-__cxa_atexit --host=powerpc-ibm-aix7.1.0.0
    Thread model: aix
    gcc version 8.3.0 (GCC)
    (cut):/> rpm -qa gcc
    gcc-8.3.0-1.ppc
    (cut):/>                              

    (cut)
           



  • 2.  Re: AIX7.1 gcc-8.3.0-1.ppc dependency on libmpc issue

    Posted Fri January 24, 2020 10:52 AM

    Originally posted by: sanket


    Thank you for reporting the issue. We will look and try to fix the dependency issue.



  • 3.  Re: AIX7.1 gcc-8.3.0-1.ppc dependency on libmpc issue

    Posted Mon January 27, 2020 03:36 PM

    Originally posted by: Nitish Mishra


    We have updated a new version of libmpc recently which was built with gcc-6.3.0. It is linked to AIX specific symbol which is causing the issue. We see that dependency is given as libmpc >= 0.8 and new version is 1.1.0. Need to update the version in dependency. We will upload the fixed gcc as soon as possible. Thanks for reporting.

     

    Thanks and Regards,

    Nitish