Re: buildkernel warnings

From: Kris Kennaway (kris_at_obsecurity.org)
Date: 02/28/05

  • Next message: Vladimir Grebenschikov: "Re: buildkernel warnings"
    Date: Sun, 27 Feb 2005 23:45:04 -0800
    To: Vladimir Grebenschikov <vova@fbsd.ru>
    
    
    

    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:
    > >>
    > >> While building 6-CURRENT kernel with 'make buildkernel' I has a lot of
    > >> warnings like:
    > >>
    > >> cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -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_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -O -mcpu=pentiumpro -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror vers.c
    > >> `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
    > >
    > >Do you have -mcpu set in COPTFLAGS?
    >
    > 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=pentiumpro'.

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

    cc -c -O -pipe -march=pentium3 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -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_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -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=-DFOO:

    cc -c -O -pipe -march=pentium3 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -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_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -DFOO -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror /usr/src/sys/cam/cam_xpt.c

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

    Kris

    
    



  • Next message: Vladimir Grebenschikov: "Re: buildkernel warnings"

    Relevant Pages

    • Re: buildkernel warnings
      ... no any flags in make.conf or environment. ... Somehow ... yes, it is kernel configuration, I've already found that. ...
      (freebsd-current)
    • Re: Windows disables write-cacheing on boot drive
      ... and having the write-cache settings reset upon each reboot. ... > available in the environment, ... .reg file to run as a startup file or set that entry in a GPO as a registry ...
      (microsoft.public.win2000.dns)
    • Windows XP Service Pack 2
      ... WAN 9000 times. ... and have noticed that in my environment, Windows 2000 AD 2000 that many GPO ... settings made have no effect. ... environment, and protecting the users from themselves, as well as helping me ...
      (microsoft.public.windowsxp.security_admin)
    • Re: allowing an @ sybol in a password
      ... It appears that you have teletype settings. ... characters were just ordinary printing characters, ... will use your current environment. ...
      (comp.unix.admin)
    • Re: DDK build result different from VS result
      ... The only flags of interest with respect to ... > built using the standard settings from the ddk. ... that now go entirely into the sources file. ...
      (microsoft.public.development.device.drivers)