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
  • 1.  Installation of GO Lang under AIX

    Posted Wed July 20, 2022 01:38 AM
    Hi
     i have tried to install GO language compiler on AIX 7.2 but it seems to have failed.
    can someone help me here ?


    root@rb3nff2(Fe):/SOFTWARE/IBM/DNF/AIX71_72 $ dnf install gcc-go
    Last metadata expiration check: 0:01:21 ago on Wed Jul 20 07:30:41 CEST 2022.
    Dependencies resolved.
    ===============================================================================================================================================================================================================
    Package Architecture Version Repository Size
    ===============================================================================================================================================================================================================
    Installing:
    gcc-go ppc 1:8-1 AIX_Toolbox_72 14 k
    Installing dependencies:
    gmp ppc 6.2.1-1 AIX_Toolbox 1.1 M
    libmpc ppc 1.2.1-1 AIX_Toolbox 232 k
    mpfr ppc 4.1.0-1 AIX_Toolbox 1.9 M
    sed ppc 4.8-1 AIX_Toolbox 308 k
    gcc ppc 1:8-1 AIX_Toolbox_72 14 k
    gcc-cpp ppc 1:8-1 AIX_Toolbox_72 14 k
    gcc8 ppc 8.3.0-4 AIX_Toolbox_72 29 M
    gcc8-cpp ppc 8.3.0-4 AIX_Toolbox_72 10 M
    gcc8-go ppc 8.3.0-4 AIX_Toolbox_72 47 M
    libgo ppc 1:8-1 AIX_Toolbox_72 13 k
    libgo-devel ppc 1:8-1 AIX_Toolbox_72 13 k
    libgo8 ppc 8.3.0-4 AIX_Toolbox_72 62 M
    libgo8-devel ppc 8.3.0-4 AIX_Toolbox_72 1.8 M

    Transaction Summary
    ===============================================================================================================================================================================================================
    Install 14 Packages

    Total size: 154 M
    Total download size: 153 M
    Installed size: 154 M
    Is this ok [y/N]: y
    Downloading Packages:
    [SKIPPED] gmp-6.2.1-1.aix6.1.ppc.rpm: Already downloaded
    (2/14): sed-4.8-1.aix6.1.ppc.rpm 657 kB/s | 308 kB 00:00
    (3/14): libmpc-1.2.1-1.aix6.1.ppc.rpm 490 kB/s | 232 kB 00:00
    (4/14): gcc-8-1.aix7.2.ppc.rpm 455 kB/s | 14 kB 00:00
    (5/14): gcc-cpp-8-1.aix7.2.ppc.rpm 418 kB/s | 14 kB 00:00
    (6/14): gcc-go-8-1.aix7.2.ppc.rpm 414 kB/s | 14 kB 00:00
    (7/14): mpfr-4.1.0-1.aix6.1.ppc.rpm 2.2 MB/s | 1.9 MB 00:00
    (8/14): gcc8-cpp-8.3.0-4.aix7.2.ppc.rpm 6.9 MB/s | 10 MB 00:01
    (9/14): libgo-8-1.aix7.2.ppc.rpm 438 kB/s | 13 kB 00:00
    (10/14): libgo-devel-8-1.aix7.2.ppc.rpm 424 kB/s | 13 kB 00:00
    (11/14): gcc8-8.3.0-4.aix7.2.ppc.rpm 2.1 MB/s | 29 MB 00:13
    (12/14): libgo8-8.3.0-4.aix7.2.ppc.rpm 4.8 MB/s | 62 MB 00:12
    (13/14): libgo8-devel-8.3.0-4.aix7.2.ppc.rpm 1.7 MB/s | 1.8 MB 00:01
    (14/14): gcc8-go-8.3.0-4.aix7.2.ppc.rpm 2.0 MB/s | 47 MB 00:23
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total 6.1 MB/s | 153 MB 00:24
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
    Preparing : 1/1
    Installing : gmp-6.2.1-1.ppc 1/14
    Installing : mpfr-4.1.0-1.ppc 2/14
    Installing : libmpc-1.2.1-1.ppc 3/14
    Installing : libgo8-8.3.0-4.ppc 4/14
    Installing : libgo-1:8-1.ppc 5/14
    Installing : libgo8-devel-8.3.0-4.ppc 6/14
    Installing : libgo-devel-1:8-1.ppc 7/14
    Installing : sed-4.8-1.ppc 8/14
    Running scriptlet: sed-4.8-1.ppc 8/14
    Installing : gcc8-8.3.0-4.ppc 9/14
    Running scriptlet: gcc8-8.3.0-4.ppc 9/14
    Fixing headers into /tmp/gcc-fixincl42861058 for powerpc-ibm-aix7.2.5.0 target
    Forbidden identifiers: bool pixel vector
    Finding directories and links to directories
    Searching /usr/include/.
    Searching /usr/include/./X11
    Searching /usr/include/./readline
    Making symbolic directory links
    Fixing directory /usr/include into /tmp/gcc-fixincl42861058
    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
    Cannot access css_shared.h from /usr/include
    error 2 (No such file or directory)
    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
    Fixed: fcntl.h
    Applying io_quotes_def to isode/pepsy.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_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 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
    Cannot access swclock.h from /usr/include
    error 2 (No such file or directory)
    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 io_quotes_def to sys/fs/kdm_dmi.h
    Applying io_quotes_def to sys/ioctl.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_null to sys/types.h
    Applying gnu_types to sys/types.h
    Fixed: sys/types.h
    Applying next_wait_union to sys/wait.h
    Fixed: sys/wait.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-fixincl42861058/root/usr/lpp/X11/include/X11
    Applying io_quotes_def to X11/Xmu/Atoms.h
    Fixing directory /usr/include/readline into /tmp/gcc-fixincl42861058/root/opt/freeware/include/readline
    Applying ctrl_quotes_def to readline/chardefs.h
    Cleaning up unneeded directories:
    fixincludes is done

    Installing : gcc8-cpp-8.3.0-4.ppc 10/14
    Running scriptlet: gcc8-cpp-8.3.0-4.ppc 10/14
    Installing : gcc-cpp-1:8-1.ppc 11/14
    Installing : gcc-1:8-1.ppc 12/14
    Installing : gcc8-go-8.3.0-4.ppc 13/14
    Running scriptlet: gcc8-go-8.3.0-4.ppc 13/14
    Installing : gcc-go-1:8-1.ppc 14/14
    Running scriptlet: gcc-go-1:8-1.ppc 14/14
    Verifying : gmp-6.2.1-1.ppc 1/14
    Verifying : libmpc-1.2.1-1.ppc 2/14
    Verifying : mpfr-4.1.0-1.ppc 3/14
    Verifying : sed-4.8-1.ppc 4/14
    Verifying : gcc-1:8-1.ppc 5/14
    Verifying : gcc-cpp-1:8-1.ppc 6/14
    Verifying : gcc-go-1:8-1.ppc 7/14
    Verifying : gcc8-8.3.0-4.ppc 8/14
    Verifying : gcc8-cpp-8.3.0-4.ppc 9/14
    Verifying : gcc8-go-8.3.0-4.ppc 10/14
    Verifying : libgo-1:8-1.ppc 11/14
    Verifying : libgo-devel-1:8-1.ppc 12/14
    Verifying : libgo8-8.3.0-4.ppc 13/14
    Verifying : libgo8-devel-8.3.0-4.ppc 14/14

    Installed:
    gcc-go-1:8-1.ppc gmp-6.2.1-1.ppc libmpc-1.2.1-1.ppc mpfr-4.1.0-1.ppc sed-4.8-1.ppc gcc-1:8-1.ppc gcc-cpp-1:8-1.ppc gcc8-8.3.0-4.ppc
    gcc8-cpp-8.3.0-4.ppc gcc8-go-8.3.0-4.ppc libgo-1:8-1.ppc libgo-devel-1:8-1.ppc libgo8-8.3.0-4.ppc libgo8-devel-8.3.0-4.ppc

    Complete!
     
    root@rb3nff2(Fe):/SOFTWARE/IBM/DNF/AIX71_72 $ gccgo
    exec(): 0509-036 Cannot load program gccgo because of the following errors:
    0509-130 Symbol resolution failed for gccgo-8 because:
    0509-136 Symbol _GLOBAL__AIXI_libiconv_so (number 161) is not exported from
    dependent module /opt/freeware/lib/libiconv.a(libiconv.so.2).
    0509-136 Symbol _GLOBAL__AIXD_libiconv_so (number 162) is not exported from
    dependent module /opt/freeware/lib/libiconv.a(libiconv.so.2).
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.
    root@rb3nff2(Fe):/SOFTWARE/IBM/DNF/AIX71_72 $

    ------------------------------
    Vincencio Michaelis
    ------------------------------


  • 2.  RE: Installation of GO Lang under AIX

    Posted Wed July 20, 2022 02:01 AM
    Update


    root@rb3nff2(Fe):/SOFTWARE/OpenSource/gcc-go-8-1.aix72 $ rpm -qi libiconv
    Name : libiconv
    Version : 1.15
    Release : 1
    Architecture: ppc
    Install Date: Wed Jun 27 11:34:24 CEST 2018
    Group : System Environment/Libraries
    Size : 2802495
    License : LGPL
    Signature : (none)
    Source RPM : libiconv-1.15-1.src.rpm
    Build Date : Fri Feb 3 08:01:06 CET 2017
    Build Host : aix51.perzl.org
    URL : http://www.gnu.org/software/libiconv/
    Summary : Character set conversion library, portable iconv implementation
    Description :
    GNU libiconv provides an iconv() implementation for use on systems
    which don't have one or whose implementation cannot convert from/to Unicode.
    It supports all the important encodings in use today.

    The library is available as 32-bit and 64-bit.

    If you are compiling a 32-bit program, no special compiler options are
    needed.

    If you are compiling a 64-bit program, you have to compile and link your
    application with "cc_r -q64" or "gcc -maix64".

    ------------------------------
    Vincencio Michaelis
    ------------------------------



  • 3.  RE: Installation of GO Lang under AIX

    Posted Wed July 20, 2022 02:11 AM
    Problem solved....have simply installed with DNF latest libiconv now it is working 


    ------------------------------
    Vincencio Michaelis
    ------------------------------