From owner-freebsd-current@FreeBSD.ORG Mon Feb 28 07:55:50 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B8FF16A4CE for ; Mon, 28 Feb 2005 07:55:50 +0000 (GMT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3A5A43D64 for ; Mon, 28 Feb 2005 07:55:49 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.44 (FreeBSD)) id 1D5fkq-000BXz-J3; Mon, 28 Feb 2005 10:55:48 +0300 From: Vladimir Grebenschikov To: Kris Kennaway In-Reply-To: <20050228074504.GA61686@xor.obsecurity.org> References: <1109542560.2370.14.camel@localhost> <20050228071207.GA58717@xor.obsecurity.org> <1109575989.7823.0.camel@localhost> <20050228074504.GA61686@xor.obsecurity.org> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Mon, 28 Feb 2005 10:55:48 +0300 Message-Id: <1109577348.7823.12.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.1.5 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov cc: "current@freebsd.org" Subject: Re: buildkernel warnings X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vova@fbsd.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Feb 2005 07:55:50 -0000 =F7 =D7=D3, 27/02/2005 =D7 23:45 -0800, Kris Kennaway =D0=C9=DB=C5=D4: >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 o= f >> >> warnings like: >> >>=20 >> >> cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-pro= totypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fforma= t-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/ipfi= lter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sy= s/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include o= pt_global.h -fno-common -finline-limit=3D8000 --param inline-unit-growth=3D= 100 --param large-function-growth=3D1000 -O -mcpu=3Dpentiumpro -mno-align-l= ong-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-q= ual -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/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_KERNE= L -include opt_global.h -fno-common -finline-limit=3D8000 --param inline-un= it-growth=3D100 --param large-function-growth=3D1000 -mno-align-long-strin= gs -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-q= ual -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/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_KERNE= L -include opt_global.h -fno-common -finline-limit=3D8000 --param inline-un= it-growth=3D100 --param large-function-growth=3D1000 -DFOO -mno-align-long-= strings -mpreferred-stack-boundary=3D2 -ffreestanding -Werror /usr/src/sys= /cam/cam_xpt.c > >i.e. it's added precisely where your bogus arguments appear. yes, it is kernel configuration, I've already found that. Thank you. Can you advise what is stable optimisation that should be provided for kernel build for modern CPUs ? >Kris --=20 Vladimir B. Grebenchikov vova@fbsd.ru