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.  GCC 7.x or 8.x for AIX71

    Posted Tue February 26, 2019 04:55 AM

    Originally posted by: vadimka


    Hi.

     

    Any chance you could provide GCC 7.x or 8.x for AIX71? I've tried rebuilding https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/SRPMS/gcc/gcc-8.1.0-2.src.rpm on AIX71 but the rpm spec file appears to require packages not downloadable from from https://www.ibm.com/developerworks/aix/library/aix-toolbox/date.html:

    $ rpmbuild -bb gcc-8.1.0-2.spec
    warning: Macro %with_go defined but not used within scope
    warning: Macro %dotests defined but not used within scope
    warning: Macro %do_default defined but not used within scope
    warning: Macro %do_prep defined but not used within scope
    warning: Macro %do_build defined but not used within scope
    warning: Macro %do_clean_build defined but not used within scope
    warning: Macro %do_install defined but not used within scope
    warning: line 185: prereq is deprecated: Prereq: /sbin/install-info
    warning: bogus date in %changelog: Tue Mar 01 2018 Tony Reix <tony.reix@atos.net> - 8.0.1-3
    warning: bogus date in %changelog: Tue Sep 21 2017 Tony Reix <tony.reix@atos.net> - 7.2.0-5
    warning: bogus date in %changelog: Tue Nov 05 2015 Tony Reix <tony.reix@bull.net> - 5.2.0-1
    error: Failed build dependencies:
           autoconf = 2.64 is needed by gcc-8.1.0-2.ppc
           automake = 1.11.6 is needed by gcc-8.1.0-2.ppc
           binutils-gccgov1 is needed by gcc-8.1.0-2.ppc

     

    Much appreciated in advance

    Vadim
     

     



  • 2.  Re: GCC 7.x or 8.x for AIX71

    Posted Tue February 26, 2019 10:29 AM

    Originally posted by: AyappanP


    We will check on this problem. Meanwhile you can remove the problematic "BuildRequires:" field from spec file and try the build.



  • 3.  Re: GCC 7.x or 8.x for AIX71

    Posted Wed February 27, 2019 04:16 AM

    Originally posted by: vadimka


    I have tried fixing the build requires:

    $ rpmbuild -bb gcc-8.1.0-2.spec
    warning: Macro %with_go defined but not used within scope
    warning: Macro %dotests defined but not used within scope
    warning: Macro %do_default defined but not used within scope
    warning: Macro %do_prep defined but not used within scope
    warning: Macro %do_build defined but not used within scope
    warning: Macro %do_clean_build defined but not used within scope
    warning: Macro %do_install defined but not used within scope
    warning: line 185: prereq is deprecated: Prereq: /sbin/install-info
    warning: bogus date in %changelog: Tue Mar 01 2018 Tony Reix <tony.reix@atos.net> - 8.0.1-3
    warning: bogus date in %changelog: Tue Sep 21 2017 Tony Reix <tony.reix@atos.net> - 7.2.0-5
    warning: bogus date in %changelog: Tue Nov 05 2015 Tony Reix <tony.reix@bull.net> - 5.2.0-1
    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.r4amqa
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + export PATH=/opt/freeware/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/jre/bin:/usr/java5/bin
    + [ 3 -ge 1 ]
    + grep -q 64-bit
    + which autogen
    no autogen in /opt/freeware/bin /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java5/jre/bin /usr/java5/bin
    + /usr/bin/file
    usage: file [-cdhi] [-M MagicFile] [-m MagicFile] [-f FileList]  [file...]
    + [ 1 == 1 ]
    + cd /opt/freeware/src/packages/BUILD
    + rm -rf gcc-8.1.0
    + /bin/tar -xof -
    + /opt/freeware/bin/xz -dc /opt/freeware/src/packages/SOURCES/gcc-8.1.0.tar.xz
    tar: can't create gcc-8.1.0/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/requirements/explicit_instant: Is a directory
    tar: can't create gcc-8.1.0/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/requirements/explicit_instant: Is a directory
    tar: directory checksum error (13801 != 42438)
    error: Bad exit status from /var/tmp/rpm-tmp.r4amqa (%prep)


    RPM build errors:
       Macro %with_go defined but not used within scope
       Macro %dotests defined but not used within scope
       Macro %do_default defined but not used within scope
       Macro %do_prep defined but not used within scope
       Macro %do_build defined but not used within scope
       Macro %do_clean_build defined but not used within scope
       Macro %do_install defined but not used within scope
       line 185: prereq is deprecated: Prereq: /sbin/install-info
       bogus date in %changelog: Tue Mar 01 2018 Tony Reix <tony.reix@atos.net> - 8.0.1-3
       bogus date in %changelog: Tue Sep 21 2017 Tony Reix <tony.reix@atos.net> - 7.2.0-5
       bogus date in %changelog: Tue Nov 05 2015 Tony Reix <tony.reix@bull.net> - 5.2.0-1
       Bad exit status from /var/tmp/rpm-tmp.r4amqa (%prep)

     



  • 4.  Re: GCC 7.x or 8.x for AIX71

    Posted Wed February 27, 2019 04:58 AM

    Originally posted by: AyappanP


    I just tried it and didn't face the issue. 

    + cd /opt/freeware/src/packages/BUILD
    + rm -rf gcc-8.1.0
    + /bin/tar -xof -
    + /opt/freeware/bin/xz -dc /opt/freeware/src/packages/SOURCES/gcc-8.1.0.tar.xz
    + STATUS=0
    + [ 0 -ne 0 ]
    + cd gcc-8.1.0
     

    # cksum gcc-8.1.0.tar.xz
    2878345184 63372320 gcc-8.1.0.tar.xz
     



  • 5.  Re: GCC 7.x or 8.x for AIX71

    Posted Wed February 27, 2019 05:53 AM

    Originally posted by: vadimka


    Your /bin/tar understands GNU tar format but mine does not.



  • 6.  Re: GCC 7.x or 8.x for AIX71

    Posted Wed February 27, 2019 06:00 AM

    Originally posted by: AyappanP


    # ls -l /bin/tar
    -r-xr-xr-x 1 bin bin 77724 Jul 22  2018 /bin/tar

    (0) root @ fvt-p7a2-lp16: /opt/freeware/src/packages/SPECS
    # what /bin/tar
    /bin/tar:
            61      1.16  src/bos/usr/ccs/lib/libc/__threads_init.c, libcthrd, bos61B, b2007_33A0 8/2/07 13:09:21
            10    1.49.14.16  src/bos/usr/bin/tar/tar.c, cmdarch, bos71X, x2016_22A2 5/17/16 12:50:40
            92      1.7  src/bos/usr/ccs/lib/libIN/eprintf.c, libIN, bos610 6/10/91 10:23:13
     



  • 7.  Re: GCC 7.x or 8.x for AIX71

    Posted Wed February 27, 2019 06:13 AM

    Originally posted by: vadimka


    $ ls -l /bin/tar
    -r-xr-xr-x    1 bin      bin           68376 Mar 21 2011  /bin/tar

    $ what /bin/tar
    /bin/tar:
            61      1.16  src/bos/usr/ccs/lib/libc/__threads_init.c, libcthrd, bos61B, b2007_33A0 8/2/07 13:09:21
             AIX710_area/2 bos/usr/bin/tar/tar.c, cmdarch, aix710, 1019A_710 2010-05-07T05:31:36-05:00$
            92      1.7  src/bos/usr/ccs/lib/libIN/eprintf.c, libIN, bos610 6/10/91 10:23:13
     



  • 8.  Re: GCC 7.x or 8.x for AIX71

    Posted Wed February 27, 2019 06:39 AM

    Originally posted by: AyappanP


    If you think /bin/tar is the real problem here, then you can edit this file to make rpm use /opt/freeware/bin/tar instead of /bin/tar. And of course you should have tar rpm installed in the machine.

    # lslpp -f rpm.rte | grep macros
                            /usr/opt/rpm/lib/rpm/macros.python
                            /usr/opt/rpm/lib/rpm/macros
                            /usr/opt/rpm/lib/rpm/macros.php
                            /usr/opt/freeware/lib/rpm40/macros
                            /usr/opt/rpm/lib/rpm/macros.perl
     

    %__semodule     /usr/bin/semodule
    %__ssh          /usr/bin/ssh
    %__tar          /bin/tar
    %__unzip        /usr/bin/unzip
     

     



  • 9.  Re: GCC 7.x or 8.x for AIX71

    Posted Wed February 27, 2019 06:52 AM

    Originally posted by: vadimka


    I've worked around it by retarring the sources with /bin/tar. But then autoreconf fails. 

    $ rpmbuild -bb gcc-8.1.0-2.spec                                       
    warning: Macro %with_go defined but not used within scope
    warning: Macro %dotests defined but not used within scope
    warning: Macro %do_default defined but not used within scope
    warning: Macro %do_prep defined but not used within scope
    warning: Macro %do_build defined but not used within scope
    warning: Macro %do_clean_build defined but not used within scope
    warning: Macro %do_install defined but not used within scope
    warning: line 185: prereq is deprecated: Prereq: /sbin/install-info
    warning: bogus date in %changelog: Tue Mar 01 2018 Tony Reix <tony.reix@atos.net> - 8.0.1-3
    warning: bogus date in %changelog: Tue Sep 21 2017 Tony Reix <tony.reix@atos.net> - 7.2.0-5
    warning: bogus date in %changelog: Tue Nov 05 2015 Tony Reix <tony.reix@bull.net> - 5.2.0-1
    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.k6abaa
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + export PATH=/opt/freeware/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/jre/bin:/usr/java5/bin
    + [ 3 -ge 1 ]
    + grep -q 64-bit
    + which autogen
    no autogen in /opt/freeware/bin /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java5/jre/bin /usr/java5/bin
    + /usr/bin/file
    usage: file [-cdhi] [-M MagicFile] [-m MagicFile] [-f FileList]  [file...]
    + [ 1 == 1 ]
    + cd /opt/freeware/src/packages/BUILD
    + rm -rf gcc-8.1.0
    + /bin/tar -xof -
    + /bin/gzip -dc /opt/freeware/src/packages/SOURCES/gcc-8.1.0.tar.gz
    + STATUS=0
    + [ 0 -ne 0 ]
    + cd gcc-8.1.0
    + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
    + echo Patch #10060 (gcc-8.1.0-configure_OBJCOPY-a.patch):
    Patch #10060 (gcc-8.1.0-configure_OBJCOPY-a.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-configure_OBJCOPY-a.patch
    patching file libgo/configure
    Hunk #1 succeeded at 4907 (offset -8 lines).
    + echo Patch #10061 (gcc-8.1.0-configure_OBJCOPY-c.patch):
    Patch #10061 (gcc-8.1.0-configure_OBJCOPY-c.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-configure_OBJCOPY-c.patch
    patching file libgo/configure.ac
    + echo Patch #1007 (gcc-8.1.0-net-interface-workaround-c.patch):
    Patch #1007 (gcc-8.1.0-net-interface-workaround-c.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-net-interface-workaround-c.patch
    patching file libgo/mksysinfo.sh
    Hunk #1 succeeded at 974 (offset 11 lines).
    patching file libgo/go/net/interface_stub.go
    patching file libgo/go/net/interface_aix.go
    + echo Patch #1010 (gcc-8.1.0-gotest-min.patch):
    Patch #1010 (gcc-8.1.0-gotest-min.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-gotest-min.patch
    patching file libgo/testsuite/gotest
    + echo Patch #10111 (gcc-8.1.0-gotest-trace.patch):
    Patch #10111 (gcc-8.1.0-gotest-trace.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-gotest-trace.patch
    patching file libgo/testsuite/gotest
    Hunk #2 succeeded at 36 (offset 1 line).
    Hunk #4 succeeded at 630 (offset 5 lines).
    + echo Patch #10112 (gcc-8.1.0-gotest-nethttp.patch):
    Patch #10112 (gcc-8.1.0-gotest-nethttp.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-gotest-nethttp.patch
    patching file libgo/testsuite/gotest
    + echo Patch #10113 (gcc-8.1.0-gotest-ppc64-go1.patch):
    Patch #10113 (gcc-8.1.0-gotest-ppc64-go1.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-gotest-ppc64-go1.patch
    patching file libgo/testsuite/gotest
    + echo Patch #10114 (gcc-8.1.0-gotest-nodup.patch):
    Patch #10114 (gcc-8.1.0-gotest-nodup.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-gotest-nodup.patch
    patching file libgo/testsuite/gotest
    + echo Patch #1015 (gcc-8.1.0-user_TestGroupIds.patch):
    Patch #1015 (gcc-8.1.0-user_TestGroupIds.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-user_TestGroupIds.patch
    patching file libgo/go/os/user/user_test.go
    Hunk #1 succeeded at 131 (offset 6 lines).
    + echo Patch #10191 (gcc-8.1.0-traceback_gccgo-New.patch):
    Patch #10191 (gcc-8.1.0-traceback_gccgo-New.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-traceback_gccgo-New.patch
    patching file libgo/go/runtime/traceback_gccgo.go
    + echo Patch #1020 (gcc-8.1.0-HasGoBuild.patch):
    Patch #1020 (gcc-8.1.0-HasGoBuild.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-HasGoBuild.patch
    patching file libgo/go/internal/testenv/testenv.go
    + echo Patch #1022 (gcc-8.1.0-oslevel.patch):
    Patch #1022 (gcc-8.1.0-oslevel.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-oslevel.patch
    patching file config.guess
    Hunk #1 succeeded at 603 (offset 24 lines).
    + echo Patch #1023 (gcc-8.1.0-lgo-brtllib-v7.patch):
    Patch #1023 (gcc-8.1.0-lgo-brtllib-v7.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-lgo-brtllib-v7.patch
    patching file gotools/Makefile.am
    patching file gcc/gcc.c
    Hunk #1 succeeded at 304 (offset 1 line).
    Hunk #2 succeeded at 4289 (offset -7 lines).
    Hunk #3 succeeded at 8349 (offset 2 lines).
    patching file gotools/Makefile.in
    Hunk #1 succeeded at 272 (offset 9 lines).
    + echo Patch #1043 (gcc-8.1.0-go-20180504-gccgo-aix-FIX.patch):
    Patch #1043 (gcc-8.1.0-go-20180504-gccgo-aix-FIX.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-go-20180504-gccgo-aix-FIX.patch
    patching file libgo/go/cmd/go/internal/work/gccgo.go
    + echo Patch #1044 (gcc-8.1.0-runtime_semasleep.patch):
    Patch #1044 (gcc-8.1.0-runtime_semasleep.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-runtime_semasleep.patch
    patching file libgo/go/runtime/os_aix.go
    + echo Patch #1045 (gcc-8.1.0-20180615-static-link-collect2.patch):
    Patch #1045 (gcc-8.1.0-20180615-static-link-collect2.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-20180615-static-link-collect2.patch
    patching file gcc/collect2.c
    + echo Patch #1047 (gcc-8.1.0-20180731-go-speedup-XCOFF.patch):
    Patch #1047 (gcc-8.1.0-20180731-go-speedup-XCOFF.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-20180731-go-speedup-XCOFF.patch
    patching file libbacktrace/xcoff.c
    + echo Patch #1048 (gcc-8.1.0-20180731-go-netpoll-NoMorePollSet.patch):
    Patch #1048 (gcc-8.1.0-20180731-go-netpoll-NoMorePollSet.patch):
    + /usr/opt/rpm/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
    + 0< /opt/freeware/src/packages/SOURCES/gcc-8.1.0-20180731-go-netpoll-NoMorePollSet.patch
    patching file libgo/go/runtime/netpoll.go
    patching file libgo/go/runtime/netpoll_aix.go
    + cd libgo
    + autoconf --version
    autoconf (GNU Autoconf) 2.69
    Copyright (C) 2012 Free Software Foundation, Inc.
    License GPLv3+/Autoconf: GNU GPL version 3 or later
    <http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

    Written by David J. MacKenzie and Akim Demaille.
    + autoreconf
    /opt/freeware/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
    /opt/freeware/share/aclocal/glib.m4:8:   run info Automake 'Extending aclocal'
    /opt/freeware/share/aclocal/glib.m4:8:   or see https://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
    config/go.m4:10: error: m4_copy: won't overwrite defined macro: AC_LANG_CONFTEST(Go)
    config/go.m4:10: the top level
    autom4te: /opt/freeware/bin/m4 failed with exit status: 1
    aclocal: error: echo failed with exit status: 1
    autoreconf: aclocal failed with exit status: 1
    error: Bad exit status from /var/tmp/rpm-tmp.k6abaa (%prep)


    RPM build errors:
       Macro %with_go defined but not used within scope
       Macro %dotests defined but not used within scope
       Macro %do_default defined but not used within scope
       Macro %do_prep defined but not used within scope
       Macro %do_build defined but not used within scope
       Macro %do_clean_build defined but not used within scope
       Macro %do_install defined but not used within scope
       line 185: prereq is deprecated: Prereq: /sbin/install-info
       bogus date in %changelog: Tue Mar 01 2018 Tony Reix <tony.reix@atos.net> - 8.0.1-3
       bogus date in %changelog: Tue Sep 21 2017 Tony Reix <tony.reix@atos.net> - 7.2.0-5
       bogus date in %changelog: Tue Nov 05 2015 Tony Reix <tony.reix@bull.net> - 5.2.0-1
       Bad exit status from /var/tmp/rpm-tmp.k6abaa (%prep)