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.  libxml2-2.9.10: rebuild on AIX 7.1 fails

    Posted Mon March 08, 2021 03:30 AM
    i need to rebuild this package on aix71 but it fails with the following error. no changes were made to the spec file or sources.

    Making all in .
    make[4]: Entering directory '/home/packagebuilder/rpmbuild/BUILD/libxml2-2.9.10/64bit/python2/python'
      CC       libxml.lo
      CC       libxml2-py.lo
      CC       types.lo
      CCLD     libxml2mod.la
    collect2: fatal error: ../.libs/libxml2.a: cannot open as COFF file
    compilation terminated.
    make[4]: *** [Makefile:600: libxml2mod.la] Error 1
    make[4]: Leaving directory '/home/packagebuilder/rpmbuild/BUILD/libxml2-2.9.10/64bit/python2/python'
    make[3]: *** [Makefile:694: all-recursive] Error 1
    make[3]: Leaving directory '/home/packagebuilder/rpmbuild/BUILD/libxml2-2.9.10/64bit/python2/python'
    make[2]: *** [Makefile:528: all] Error 2
    make[2]: Leaving directory '/home/packagebuilder/rpmbuild/BUILD/libxml2-2.9.10/64bit/python2/python'
    make[1]: *** [Makefile:1479: all-recursive] Error 1
    make[1]: Leaving directory '/home/packagebuilder/rpmbuild/BUILD/libxml2-2.9.10/64bit/python2'
    make: *** [Makefile:893: all] Error 2
    make: Leaving directory '/home/packagebuilder/rpmbuild/BUILD/libxml2-2.9.10/64bit/python2'
    error: Bad exit status from /home/packagebuilder/rpmbuild/tmp/rpm-tmp.B4R7ab (%build)
    ​





    ------------------------------
    I regret starting this entire conversation
    ------------------------------


  • 2.  RE: libxml2-2.9.10: rebuild on AIX 7.1 fails

    Posted Mon March 08, 2021 08:00 AM
    found the problem, due to faulty PATH, the script used the gnu binutils which of course failed miserably...after forcing it to aix tools everything worked. so consider this FIXED.

    Wrote: /home/packagebuilder/rpmbuild/SRPMS/libxml2-2.9.10-itsv1.src.rpm
    Wrote: /home/packagebuilder/rpmbuild/RPMS/ppc/libxml2-2.9.10-itsv1.aix7.1.ppc.rpm
    Wrote: /home/packagebuilder/rpmbuild/RPMS/ppc/libxml2-devel-2.9.10-itsv1.aix7.1.ppc.rpm
    Wrote: /home/packagebuilder/rpmbuild/RPMS/ppc/libxml2-python-2.9.10-itsv1.aix7.1.ppc.rpm
    Wrote: /home/packagebuilder/rpmbuild/RPMS/ppc/libxml2-python3-2.9.10-itsv1.aix7.1.ppc.rpm
    Executing(%clean): /bin/sh -e /home/packagebuilder/rpmbuild/tmp/rpm-tmp.JEVMah
    + umask 022
    + cd /home/packagebuilder/rpmbuild/BUILD
    + cd libxml2-2.9.10
    + [ /home/packagebuilder/rpmbuild/tmp/libxml2-2.9.10-itsv1.ppc != / ]
    + rm -rf /home/packagebuilder/rpmbuild/tmp/libxml2-2.9.10-itsv1.ppc
    + exit 0
    packagebuilder@aixbuildhostng: /home/packagebuilder/rpmbuild/SPECS #
    ​


    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 3.  RE: libxml2-2.9.10: rebuild on AIX 7.1 fails

    Posted Mon March 08, 2021 08:20 AM
    Good to know your problem is fixed.
    Yes binutils on AIX has issues and it does not work for many cases.
    We have plans to fix binutils but it is big project and going to take time.
    So please use AIX tools only for building any packages or software.

    ------------------------------
    SANKET RATHI
    ------------------------------