Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
Expand all | Collapse all

Upgrading gcc8.ppc 8.3.0-7 : Illegal instruction(coredump) AIX7.1

  • 1.  Upgrading gcc8.ppc 8.3.0-7 : Illegal instruction(coredump) AIX7.1

    Posted Thu December 22, 2022 04:28 AM
    Hello All

    Please assist with this problem after trying to upgrade gcc8.
    Need rpm db recovered.

    oslevel: 7100-05-09-2148

    Steps below in order, all fails, output follows after bullets.
    • dnf upgrade gcc8
    • usr/sbin/updtvpkg
    • dnf -v check-upgrade
    • rpm -qa

    dev:/ # dnf upgrade gcc8.ppc
    Last metadata expiration check: 0:00:58 ago on Thu Dec 22 10:56:53 USAST 2022.
    Dependencies resolved.
    ==============================================================================================================
    Package Architecture Version Repository Size
    ==============================================================================================================
    Upgrading:
    gcc8 ppc 8.3.0-7 AIX_Toolbox_71 29 M
    gcc8-cpp ppc 8.3.0-7 AIX_Toolbox_71 10 M
    libgcc8 ppc 8.3.0-7 AIX_Toolbox_71 976 k
    libgomp8 ppc 8.3.0-7 AIX_Toolbox_71 1.4 M
    libstdc++8 ppc 8.3.0-7 AIX_Toolbox_71 12 M

    Transaction Summary
    ==============================================================================================================
    Upgrade 5 Packages

    Total download size: 54 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/5): libgcc8-8.3.0-7.aix7.1.ppc.rpm 349 kB/s | 976 kB 00:02
    (2/5): libgomp8-8.3.0-7.aix7.1.ppc.rpm 994 kB/s | 1.4 MB 00:01
    (3/5): gcc8-cpp-8.3.0-7.aix7.1.ppc.rpm 945 kB/s | 10 MB 00:11
    (4/5): libstdcplusplus8-8.3.0-7.aix7.1.ppc.rpm 1.1 MB/s | 12 MB 00:10
    (5/5): gcc8-8.3.0-7.aix7.1.ppc.rpm 1.1 MB/s | 29 MB 00:27
    --------------------------------------------------------------------------------------------------------------
    Total 1.9 MB/s | 54 MB 00:27
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
    Preparing : 1/1
    Upgrading : libgcc8-8.3.0-7.ppc 1/10
    Upgrading : gcc8-cpp-8.3.0-7.ppc 2/10
    Running scriptlet: gcc8-cpp-8.3.0-7.ppc 2/10
    Upgrading : gcc8-8.3.0-7.ppc 3/10
    Running scriptlet: gcc8-8.3.0-7.ppc 3/10
    Fixing headers into /tmp/gcc-fixincl12517860 for powerpc-ibm-aix7.1.5.0 target
    Forbidden identifiers: bool pixel vector
    Finding directories and links to directories
    Searching /usr/include/.
    Searching /usr/include/./X11
    Making symbolic directory links
    Fixing directory /usr/include into /tmp/gcc-fixincl12517860
    Applying io_quotes_use to net/bpf.h
    Fixed: net/bpf.h
    Applying aix_net_if_arp to net/if_arp.h
    Fixed: net/if_arp.h
    Applying io_quotes_use to netinet/if_802_5.h
    Fixed: netinet/if_802_5.h
    Applying io_quotes_def to netinet/in.h
    Applying ip_missing_semi to netinet/ip.h
    Applying io_quotes_def to netinet/ip6_opts.h
    Applying sun_auth_proto to rpc/svc.h
    Fixed: rpc/svc.h
    Applying io_quotes_def to sys/fs/kdm_dmi.h
    Applying io_quotes_def to sys/aio.h
    Applying aix_null to sys/dir.h
    Fixed: sys/dir.h
    Quoted includes in sys/dir.h
    Applying io_quotes_def to sys/dlpi_aix.h
    Applying io_quotes_use to sys/dlpi_aix.h
    Applying aix_inttypes to sys/inttypes.h
    Fixed: sys/inttypes.h
    Applying io_quotes_def to sys/ioctl.h
    Applying aix_externc to sys/localedef.h
    Fixed: sys/localedef.h
    Applying io_quotes_use to sys/mtio.h
    Applying aix_null to sys/param.h
    Fixed: sys/param.h
    Quoted includes in sys/param.h
    Applying io_quotes_use to sys/ras.h
    Applying aix_volatile to sys/signal.h
    Fixed: sys/signal.h
    Applying aix_externcpp1 to sys/socket.h
    Applying aix_externcpp2 to sys/socket.h
    Fixed: sys/socket.h
    Applying io_quotes_def to sys/stropts.h
    Applying aix_externc to sys/times.h
    Fixed: sys/times.h
    Applying aix_null to sys/types.h
    Applying gnu_types to sys/types.h
    Fixed: sys/types.h
    Applying aix_syswait_2 to sys/wait.h
    Applying next_wait_union to sys/wait.h
    Fixed: sys/wait.h
    Applying aix_assert to assert.h
    Applying strict_ansi_only to assert.h
    Fixed: assert.h
    Applying aix_complex to complex.h
    Fixed: complex.h
    Applying aix_externc to ctype.h
    Applying avoid_wchar_t_type to ctype.h
    Fixed: ctype.h
    Applying aix_null to curses.h
    Fixed: curses.h
    Applying aix_null to dbm.h
    Fixed: dbm.h
    Applying AAB_aix_fcntl to fcntl.h
    Applying aix_externc to fcntl.h
    Fixed: fcntl.h
    Applying io_quotes_def to isode/pepsy.h
    Applying aix_externc to langinfo.h
    Fixed: langinfo.h
    Applying aix_externc to ldfcn.h
    Fixed: ldfcn.h
    Applying machine_name to libmilter/mfapi.h
    Fixed: libmilter/mfapi.h
    Quoted includes in libmilter/mfapi.h
    Applying aix_null to locale.h
    Fixed: locale.h
    Applying sun_malloc to malloc.h
    Applying hpux8_bogus_inlines to math.h
    Applying math_exception to math.h
    Applying rs6000_double to math.h
    Fixed: math.h
    Applying io_quotes_def to oncplus/nfs/nfs_fscntl.h
    Applying io_quotes_use to oncplus/nfs/nfs_fscntl.h
    Applying svr4_undeclared_getrnge to regexp.h
    Applying strict_ansi_only to setjmp.h
    Fixed: setjmp.h
    Applying gnu_types to stddef.h
    Fixed: stddef.h
    Applying aix_stdint_1 to stdint.h
    Applying aix_stdint_2 to stdint.h
    Applying aix_stdint_3 to stdint.h
    Applying aix_stdint_4 to stdint.h
    Fixed: stdint.h
    Applying AAB_aix_stdio to stdio.h
    Applying aix_null to stdio.h
    Applying aix_stdio_inline to stdio.h
    Applying stdio_stdarg_h to stdio.h
    Applying stdio_va_list to stdio.h
    Fixed: stdio.h
    Applying aix_null to stdlib.h
    Applying aix_stdlib_malloc to stdlib.h
    Applying aix_stdlib_realloc to stdlib.h
    Applying aix_stdlib_calloc to stdlib.h
    Applying aix_stdlib_valloc to stdlib.h
    Applying aix_stdlib_vec_malloc to stdlib.h
    Applying aix_stdlib_vec_calloc to stdlib.h
    Applying gnu_types to stdlib.h
    Fixed: stdlib.h
    Applying aix_null to string.h
    Applying sysv68_string to string.h
    Fixed: string.h
    Applying aix_null to time.h
    Fixed: time.h
    Applying aix_null to unistd.h
    Fixed: unistd.h
    Applying io_quotes_def to usersec.h
    Applying aix_null to wchar.h
    Applying stdio_va_list_clients to wchar.h
    Fixed: wchar.h
    Fixing directory /usr/include/X11 into /tmp/gcc-fixincl12517860/root/usr/lpp/X11/include/X11
    Applying io_quotes_def to X11/Xmu/Atoms.h
    Cleaning up unneeded directories:
    fixincludes is done

    Upgrading : libgomp8-8.3.0-7.ppc 4/10
    Running scriptlet: libgomp8-8.3.0-7.ppc 4/10
    Upgrading : libstdc++8-8.3.0-7.ppc 5/10
    Cleanup : libstdc++8-8.3.0-6.ppc 6/10
    Running scriptlet: libgomp8-8.3.0-6.ppc 7/10
    Cleanup : libgomp8-8.3.0-6.ppc 7/10
    Running scriptlet: gcc8-8.3.0-6.ppc 8/10
    Warnings dealing with include-fixed directory can be ignored.

    Cleanup : gcc8-8.3.0-6.ppc [======================================== ] 8/10Illegal instruction(coredump)



    dev:/ # /usr/sbin/updtvpkg

    Please wait...error: rpmdb: Thread/process 14614736/1 failed: Thread died in Berkeley DB library
    error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages index using db4 - (-30974)
    error: cannot open Packages database in /opt/freeware/packages
    error: rpmdb: Thread/process 14614736/1 failed: Thread died in Berkeley DB library
    error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages index using db4 - (-30974)
    error: cannot open Packages database in /opt/freeware/packages
    error: rpmdb: Thread/process 14614736/1 failed: Thread died in Berkeley DB library
    error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages index using db4 - (-30974)
    error: cannot open Packages database in /opt/freeware/packages
    error: rpmdb: Thread/process 14614736/1 failed: Thread died in Berkeley DB library
    error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages index using db4 - (-30974)
    error: cannot open Packages database in /opt/freeware/packages
    warning: line 8: It's not recommended to have unversioned Obsoletes: Obsoletes: SysProvides
    error: rpmdb: Thread/process 14614736/1 failed: Thread died in Berkeley DB library
    error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages index using db4 - (-30974)
    error: cannot open Packages database in /opt/freeware/packages
    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.SyMMaa
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + RPM_EC=0
    + jobs -p
    + exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.SyMMab
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + RPM_EC=0
    + jobs -p
    + exit 0
    Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.TaMMac
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + RPM_EC=0
    + jobs -p
    + exit 0
    Processing files: AIX-rpm-7.1.5.33-1.ppc
    Wrote: /opt/freeware/src/packages/SRPMS/AIX-rpm-7.1.5.33-1.src.rpm
    Wrote: /opt/freeware/src/packages/RPMS/ppc/AIX-rpm-7.1.5.33-1.aix7.1.ppc.rpm
    Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.TEMMad
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + RPM_EC=0
    + jobs -p
    + exit 0

    error: rpmdb: Thread/process 14614736/1 failed: Thread died in Berkeley DB library
    error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages index using db4 - (-30974)
    error: cannot open Packages database in /opt/freeware/packages
    error: rpmdb: Thread/process 14614736/1 failed: Thread died in Berkeley DB library
    error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages index using db4 - (-30974)
    error: cannot open Packages database in /opt/freeware/packages


    dev:/ # dnf -v check-upgrade
    DNF version: 4.2.17
    cachedir: /var/cache/dnf
    os-release file not found
    os-release: falling back to basic User-Agent: missing NAME or VERSION_ID
    Illegal instruction(coredump)

    dev:/ # rpm -qa
    error: rpmdb: Thread/process 11469176/1 failed: Thread died in Berkeley DB library
    error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages index using db4 - (-30974)
    error: cannot open Packages database in /opt/freeware/packages
    error: rpmdb: Thread/process 11469176/1 failed: Thread died in Berkeley DB library
    error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages index using db4 - (-30974)
    error: cannot open Packages database in /opt/freeware/packages

    Thanks so much.





    ------------------------------
    Jan Robinson
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Upgrading gcc8.ppc 8.3.0-7 : Illegal instruction(coredump) AIX7.1

    Posted Thu December 22, 2022 06:46 AM
    Hi Jan,

    To resolve the rpm issue run the run the "rpm --rebuilddb".
    And for the issue related to illegal instruction please run "dnf update".
    Please have look at this post https://community.ibm.com/community/user/power/discussion/recent-dnf-and-yum-issues-with-newer-python3-and-curl-builds

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



  • 3.  RE: Upgrading gcc8.ppc 8.3.0-7 : Illegal instruction(coredump) AIX7.1

    Posted Thu December 22, 2022 08:26 AM
    Hello Sangamesh

    Thank you so much.
               
    Life is back to normal!



    ------------------------------
    Jan Robinson
    ------------------------------