Subject: Re: AIX 5.3 and gcc-c++
To: None <tech-pkg@netbsd.org>
From: Matthew Clarke <mclarke@maves.com>
List: tech-pkg
Date: 07/17/2006 16:02:30
Louis Guillaume a =E9crit :
> Hi Everyone,
>=20
> I'm sorry to repost this, but this problem is still not resolved on my
> system and I'm at a loss. It would be an enormous help to get pkgsrc
> usable on AIX. Is nobody else seeing this?
>=20
>=20
> . gmake Builds ok
> . gcc3-c Builds ok
> . gcc3-c++ builds/configures/builds/configures forever. never completes=
=2E
>=20
>=20
> In mk.conf, I have...
>=20
> DISTDIR?=3D /usr/pkg/distfiles
> PACKAGES?=3D /usr/pkg/obj/packages
> WRKOBJDIR=3D /usr/pkg/obj
> PKGCHK_CONF=3D /etc/pkgchk.conf
> PKG_SYSCONFBASE=3D/etc
>=20
> # USE_NATIVE_GCC=3Dyes
> # CC=3Dgcc
>=20
> # Configure scripts don't always get this right
> MACHINE_GNU_PLATFORM=3Dpowerpc-ibm-aix5.3.0.0
>=20
> .include "/usr/pkg/gcc3/mk/c.mk"
>=20
> CHECK_SHLIBS=3Dno
> RENAME=3D
> USE_GCC3=3Dyes
>=20
> PKGMAKECONF=3D${MAKECONF}
> DEPENDS_TARGET=3Dpackage
>=20
>=20
>=20
> ... I've tried telling pkgsrc which gcc to use a few different ways:
>=20
> . USE_NATIVE_GCC=3Dyes
> . CC=3D/opt/freeware/bin/gcc
> . .include "/usr/pkg/gcc3/mk/c.mk"
>=20
> ... all produce the same results.
>=20
> Any help would be fantastic,
>=20
> Thanks (again)
>=20
> Louis
I'm just starting to look at pkgsrc, and am seeing the same thing on AIX =
5.1 (ML 5100-04) with pkgsrc-2006Q2.
It appears to configure everything OK and build all 6 (1 plain and 5=20
multilib: pthread, power, powerpc, pthread/power, pthread/powerpc)=20
libiberty libraries, but then runs into trouble when doing=20
'config.status --recheck' and related things and then 'gmake ...=20
DO=3Ddistclean multi-clean' in the various libstdc++-v3 multilib=20
sub-directories.
I'm trying to figure out the problem, but don't hold your breath -- my=20
past experience with heavily nested autofoo-generated configure scripts=20
and Makefiles consists mostly of getting so confused I have to go look=20
at M.C. Escher drawings to straighten out my brain again.
I can send a build log (from "% bmake build |& tee build.out") if=20
anyone's interested (~2.6M before I hit Ctrl-C, ~300K gzip'd), and my=20
/usr/pkg/etc/mk.conf contains the following:
# @(#)/usr/pkg/etc/mk.conf -- settings for BSD Make (/usr/pkg/bin/bmake)
#########################################################################=
#####
=2Eifdef BSD_PKG_MK # begin pkgsrc settings
# clamat -- temp compiler for bootstrapping
CXX=3Dg++
PKG_DBDIR=3D/usr/pkg/pkgdb
LOCALBASE=3D/usr/pkg
VARBASE=3D/var
INSTALL=3D/usr/pkg/bin/install-sh
FETCH_CMD=3D/usr/pkg/bin/ftp
PAX=3D/usr/pkg/bin/pax
SED=3D/usr/pkg/bin/nbsed
# clamat -- use compilers from pkgsrc to build all other pkgsrc stuff
=2Einclude "/usr/pkg/gcc3/mk/c.mk"
=2Einclude "/usr/pkg/gcc3/mk/f77.mk"
=2Eendif # end pkgsrc settings
--=20
Matthew Clarke
Systems Integration Specialist
Maves International Software
http://www.maves.com +1 (905) 882-8300 FAX: +1 (905) 882-1550