tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Bootstrap on AIX 7.1



Hi!

Trying to bootstrap pkgsrc-2019Q4 on AIX 7.1. I installed gcc and other tools from the AIX "Toolbox for Linux Applications".

Currently bootstrap gets stuck on building "sed", because it can't seem to link to libnbcompat.a, which I find strange because that just got built!

Below is the bootstrap command line, output where it gets stuck and significant portion of config.log. Also - here's my mk.conf fragment:

---8<---
PKGSRCDIR=              /opt/pkg/src
PKG_DBDIR=              /opt/pkg/.dbdir
LOCALBASE=              /opt/pkg
DISTDIR=                /opt/pkg/distfiles
PACKAGES=               /opt/pkg/packages
WRKOBJDIR=              /opt/pkg/obj

DEPENDS_TARGET=         package-install

# Configure scripts don't always get this right
MACHINE_GNU_PLATFORM=powerpc-ibm-aix7.1.5.0
CC=gcc
PKGMAKECONF=${MAKECONF}

#CHECK_SHLIBS=no
#RENAME=
#USE_GCC3=yes
--->8---

Any help would be great. Thanks!

--
Louis


# ./bootstrap --abi 64 --binary-kit ~louisg/pkgsrc-aix-20200316.tar --mk-fragment=/opt/pkg/etc/mk> ===> bootstrap command: ./bootstrap --abi 64 --binary-kit /home/louisg/pkgsrc-aix-20200316.tar --mk-fragment=/opt/pkg/etc/mk.conf --compiler gcc --pkgdbdir /opt/pkg/.dbdir --prefix /opt/pkg --sysconfdir /opt/pkg/etc --varbase /opt/pkg/var --workdir /opt/pkg/work --mk-fragment /opt/pkg/etc/mk.conf
===> bootstrap started: Mon Mar 16 17:11:53 EDT 2020
Working directory is: /opt/pkg/work
===> running: /opt/freeware/bin/sed -e 's|@DEFAULT_INSTALL_MODE@|'0755'|' /opt/pkg/src/sysutils/install-sh/files/install-sh.in > /opt/pkg/work/bin/install-sh
===> running: /opt/freeware/bin/chmod +x /opt/pkg/work/bin/install-sh
===> Creating default mk.conf in /opt/pkg/work
===> running: /usr/bin/sh /opt/pkg/work/bin/install-sh -d -o root -g system /opt/pkg/work/sbin ===> running: /usr/bin/sh /opt/pkg/work/bin/install-sh -d -o root -g system /opt/pkg/work/share/mk
===> Installing fixed strip script
===> running: /usr/bin/sh /opt/pkg/work/bin/install-sh -c -o root -g system -m 755 /opt/pkg/src/pkgtools/bootstrap-extras/files/strip-sh /opt/pkg/work/bin/strip
===> Bootstrapping mk-files
===> running: (cd /opt/pkg/src/pkgtools/bootstrap-mk-files/files && env CP=/opt/freeware/bin/cp OPSYS=AIX MK_DST=/opt/pkg/work/share/mk ROOT_GROUP=system ROOT_USER=root SED=/opt/freeware/bin/sed SYSCONFDIR=/opt/pkg/etc /usr/bin/sh ./bootstrap.sh)
===> Bootstrapping bmake
===> running: /usr/bin/sh /opt/pkg/work/bin/install-sh -d -o root -g system /opt/pkg/work/bmake ===> running: (cd /opt/pkg/work/bmake && /usr/bin/sh configure --prefix=/opt/pkg/work --with-default-sys-path=/opt/pkg/work/share/mk --with-machine-arch=powerpc64 )
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
.......
..
..
===> Bootstrapping sed
===> running: /usr/bin/sh /opt/pkg/work/bin/install-sh -d -o root -g system /opt/pkg/work/sed ===> running: (cd /opt/pkg/work/sed; env INSTALL='/opt/pkg/bin/install-sh -c' CPPFLAGS=' -I../libnbcompat' LDFLAGS=' -L../libnbcompat' LIBS=' -lnbcompat' /usr/bin/sh ./configure -C --prefix=/opt/pkg --infodir=/opt/pkg/info --mandir=/opt/pkg/man --sysconfdir=/opt/pkg/etc --program-transform-name='s,sed,nbsed,' && /opt/pkg/work/bin/bmake -j1)
configure: creating cache config.cache
checking build system type... powerpc-ibm-aix7.1.5.0
checking host system type... powerpc-ibm-aix7.1.5.0
checking whether make sets $(MAKE)... yes
checking for gawk... gawk
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
===> exited with status 77
aborted.


 >>> Config.log <<<

In config.log we have this...

gcc version 8.3.0 (GCC)
configure:1807: $? = 0
configure:1809: gcc -V </dev/null >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:1812: $? = 1
configure:1835: checking for C compiler default output file name
configure:1838: gcc -I../libnbcompat -L../libnbcompat conftest.c -lnbcompat >&5
collect2: fatal error: ../libnbcompat/libnbcompat.a: not a COFF file
compilation terminated.




Home | Main Index | Thread Index | Old Index