Subject: Re: i386/GCC 3.3 problem making current
To: Daniel Carosone <dan@geek.com.au>
From: Daniel Carosone <dan@geek.com.au>
List: current-users
Date: 08/31/2003 12:45:05
On Sun, Aug 31, 2003 at 11:09:01AM +1000, Daniel Carosone wrote:
>=20
> It seems that HAVE_GCC3=3Dyes is not the same as HAVE_GCC3=3DYES.
>=20
> With the latter, it builds gcc3 host tools, but then tries to use
> them to compile libgcc2

while using the lower-case HAVE_GCC3=3Dyes allows the build to proceed
through to:

/home/NetBSD/HEAD/src/obj.i386/tooldir.NetBSD-1.6T-i386/bin/i386--netbsdelf=
-gcc -g -pipe  -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer=
-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized  -Werror   -DI=
NET6 -DHAVE_FUNCTION_MACRO=3D1 -DHAVE_LIBCRYPTO=3D1 -DHAVE_LIBL=3D1 -DHAVE_=
LIBY=3D1 -DENABLE_IPV6=3D1 -DADVAPI=3D1 -DHAVE_GETADDRINFO=3D1 -DHAVE_GETNA=
MEINFO=3D1 -DSTDC_HEADERS=3D1 -DHAVE_SYS_WAIT_H=3D1 -DHAVE_LIMITS_H=3D1 -DH=
AVE_SYS_TIME_H=3D1 -DHAVE_UNISTD_H=3D1 -DHAVE_STDARG_H=3D1 -DHAVE_VARARGS_H=
=3D1 -DTIME_WITH_SYS_TIME=3D1 -DRETSIGTYPE=3Dvoid -DHAVE_VPRINTF=3D1 -DHAVE=
_GETTIMEOFDAY=3D1 -DHAVE_SELECT=3D1 -DHAVE_SOCKET=3D1 -DHAVE_STRERROR=3D1 -=
DHAVE_STRTOL=3D1 -DHAVE_STRTOUL=3D1 -DHAVE_STRDUP=3D1 -DHAVE_GETIFADDRS=3D1=
 -DHAVE_ARC4RANDOM=3D1 -DHAVE_PFKEYV2 -DYIPS_DEBUG -DIPSEC  -I. -I/home/Net=
BSD/HEAD/src/crypto/dist/kame/racoon -DSYSCONFDIR=3D\"/etc/racoon\" -DHAVE_=
OPENSSL_OPENSSLV_H=3D1 -DYY_NO_UNPUT -I/home/NetBSD/HEAD/src/crypto/dist/ka=
me/libipsec -I/home/NetBSD/HEAD/src/crypto/dist/kame/racoon/missing -DHAVE_=
GSSAPI -DRACOON_PKG_VERSION=3D"\"netbsd-20030826\"" -I/home/NetBSD/HEAD/src=
/dist/tcpdump -I/home/NetBSD/HEAD/src/dist/tcpdump/lbl -DHAVE_PRINT_ISAKMP_=
C=3D1 -I/home/NetBSD/dest/p4/usr/include/krb5 -DHAVE_SIGNING_C=3D1 -DHAVE_O=
PENSSL_PEM_H=3D1 -DHAVE_OPENSSL_X509_H=3D1  -DHAVE_OPENSSL_EVP_H=3D1 -nostd=
inc -isystem /home/NetBSD/dest/p4/usr/include  -c    /home/NetBSD/HEAD/src/=
crypto/dist/kame/racoon/crypto_openssl.c
/home/NetBSD/HEAD/src/crypto/dist/kame/racoon/crypto_openssl.c: In function=
 `eay_str2asn1dn':
/home/NetBSD/HEAD/src/crypto/dist/kame/racoon/crypto_openssl.c:185: warning=
: dereferencing type-punned pointer will break strict-aliasing rules
/home/NetBSD/HEAD/src/crypto/dist/kame/racoon/crypto_openssl.c: In function=
 `eay_cmp_asn1dn':
/home/NetBSD/HEAD/src/crypto/dist/kame/racoon/crypto_openssl.c:214: warning=
: dereferencing type-punned pointer will break strict-aliasing rules
/home/NetBSD/HEAD/src/crypto/dist/kame/racoon/crypto_openssl.c:217: warning=
: dereferencing type-punned pointer will break strict-aliasing rules
*** Error code 1

Which is the same place it has been failing for me for a while,
using the USE_TOOLS_TOOLCHAIN=3Dno option.

I have current sources, with cvs update -dPAC, and have cleaned
out all the obj dirs and so on.  I'm next going to try updating
the system completly using a standard gcc2 build first, as it is
a little old (not that it is supposed to matter, and i see this
failure on several build hosts).

I doubt this will make a difference - anything else I should try?

mk.conf below.

--
Dan.=20

#.include "/usr/pkg/share/examples/gcc/mk.conf"

# Common options
COPTS+=3D-pipe  -O2=20
#CPUFLAGS+=3D-march=3Dpentium4
HAVE_GCC3=3Dyes

#NBUILDJOBS=3D4
BSDSRCDIR=3D/home/NetBSD/HEAD/src
BSDOBJDIR=3D/home/NetBSD/obj
OBJMACHINE=3DOBJMACHINE

# My options
MKCATPAGES=3Dno
NOLINT=3DNOLINT
MKINFO=3DNO
NOPROFILE=3DNOPROFILE
MANZ=3D1

USE_XF86_4=3DYES


# pkgsrc options
ACCEPTABLE_LICENSES+=3Dshareware
ACCEPTABLE_LICENSES+=3Dno-commercial-use
ACCEPTABLE_LICENSES+=3Dfee-based-commercial-use
ACCEPTABLE_LICENSES+=3Djdk13-license
ACCEPTABLE_LICENSES+=3DIDEA-license
ACCEPTABLE_LICENSES+=3Dvmware-license
ACCEPTABLE_LICENSES+=3Dadobe-acrobat-license
ACCEPTABLE_LICENSES+=3Dgraphviz-license

PAPERSIZE=3D      A4
#X11BASE=3D/usr/pkg
USE_RSAREF2=3DNO
USE_IDEA=3DYES
USE_XEMACS=3DYES
MOZILLA_USE_XFT=3DYES
MPLAYER_ENABLE_RUNTIME_CPU_DETECTION=3DNO
#MPLAYER_USE_REALMEDIA=3DYES

MASTER_SORT=3D .au



MASTER_SITE_GNOME=3D     ftp://www.planetmirror.com.au/pub/GNOME/
MASTER_SITE_GNU=3D       ftp://www.planetmirror.com.au/pub/gnu/
MASTER_SITE_PERL_CPAN=3D ftp://www.planetmirror.com.au/pub/perl/CPAN/module=
s/by-module/
MASTER_SITE_SUNSITE=3D   ftp://www.planetmirror.com.au/pub/sunsite/
MASTER_SITE_SUSE=3D      ftp://www.planetmirror.com.au/pub/suse/i386/${SUSE=
_VERSION}/suse/
MASTER_SITE_TEX_CTAN=3D  ftp://www.planetmirror.com.au/pub/tex-archive/
MASTER_SITE_SOURCEFORGE=3Dftp://www.planetmirror.com.au/pub/sourceforge/
MASTER_SITE_XCONTRIB=3D  ftp://www.planetmirror.com.au/pub/X11/contrib/
MASTER_SITE_BACKUP=3D    ftp://ftp.au.netbsd.org/pub/NetBSD/packages/distfi=
les/ \
                       ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/
MASTER_SITE_LOCAL=3D     ftp://ftp.au.netbsd.org/pub/NetBSD/packages/distfi=
les/LOCAL_PORTS/ \
                       ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/L=
OCAL_PORTS/