Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Feb 2005 23:45:04 -0800
From:      Kris Kennaway <kris@obsecurity.org>
To:        Vladimir Grebenschikov <vova@fbsd.ru>
Cc:        Kris Kennaway <kris@obsecurity.org>
Subject:   Re: buildkernel warnings
Message-ID:  <20050228074504.GA61686@xor.obsecurity.org>
In-Reply-To: <1109575989.7823.0.camel@localhost>
References:  <1109542560.2370.14.camel@localhost> <20050228071207.GA58717@xor.obsecurity.org> <1109575989.7823.0.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help

--tKW2IUtsqtDRztdT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Feb 28, 2005 at 10:33:09AM +0300, Vladimir Grebenschikov wrote:
> ? ??, 27/02/2005 ? 23:12 -0800, Kris Kennaway ?????:
> >On Mon, Feb 28, 2005 at 01:16:00AM +0300, Vladimir Grebenschikov wrote:
> >>=20
> >> While building 6-CURRENT kernel with 'make buildkernel' I has a lot of
> >> warnings like:
> >>=20
> >> cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prot=
otypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat=
-extensions -std=3Dc99 -g -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/=
contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfil=
ter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys=
/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include op=
t_global.h -fno-common -finline-limit=3D8000 --param inline-unit-growth=3D1=
00 --param large-function-growth=3D1000 -O -mcpu=3Dpentiumpro -mno-align-lo=
ng-strings -mpreferred-stack-boundary=3D2 -ffreestanding -Werror  vers.c
> >> `-mcpu=3D' is deprecated. Use `-mtune=3D' or '-march=3D' instead.
> >
> >Do you have -mcpu set in COPTFLAGS?
>=20
> No, no any flags in make.conf or environment.

Are you absolutely certain you don't have CONF_CFLAGS set?  Somehow
you're getting old or non-default settings, i.e. the '-O
-mcpu=3Dpentiumpro'.

This is what happens when you have CPUTYPE=3Dp3 and default settings:

cc -c -O -pipe -march=3Dpentium3 -Wall -Wredundant-decls -Wnested-externs -=
Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qu=
al  -fformat-extensions -std=3Dc99 -g -nostdinc -I-  -I. -I/usr/src/sys -I/=
usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/c=
ontrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I=
/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL=
 -include opt_global.h -fno-common -finline-limit=3D8000 --param inline-uni=
t-growth=3D100 --param large-function-growth=3D1000  -mno-align-long-string=
s -mpreferred-stack-boundary=3D2 -ffreestanding -Werror  aic79xx_reg_print.c

Note nothing (in fact, double space) before the
-mno-align-long-strings.  Here's what happens if you set
CONF_CFLAGS=3D-DFOO:

cc -c -O -pipe -march=3Dpentium3 -Wall -Wredundant-decls -Wnested-externs -=
Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qu=
al  -fformat-extensions -std=3Dc99 -g -nostdinc -I-  -I. -I/usr/src/sys -I/=
usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/c=
ontrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I=
/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL=
 -include opt_global.h -fno-common -finline-limit=3D8000 --param inline-uni=
t-growth=3D100 --param large-function-growth=3D1000 -DFOO -mno-align-long-s=
trings -mpreferred-stack-boundary=3D2 -ffreestanding -Werror  /usr/src/sys/=
cam/cam_xpt.c

i.e. it's added precisely where your bogus arguments appear.

Kris

--tKW2IUtsqtDRztdT
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCIswAWry0BWjoQKURAtyzAKDAxdF7JpwSk3BXJbLW4qa+fB1kigCgllLG
gR+fLYiza1Y98PWAQfuZqq4=
=4HNw
-----END PGP SIGNATURE-----

--tKW2IUtsqtDRztdT--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050228074504.GA61686>