Re: warnings while kernel build

From: Vladimir B. Grebenschikov <vova_at_sw.ru>
Date: Thu, 23 Oct 2003 23:06:38 +0400
В чт, 23.10.2003, в 22:33, David O'Brien пишет:
> On Thu, Oct 23, 2003 at 02:41:58PM +0400, Vladimir B. Grebenschikov wrote:
> > ? ??, 23.10.2003, ? 02:13, Doug White ?????:
> > > On Wed, 22 Oct 2003, Vladimir B. Grebenschikov wrote:
> > > 
> > > >
> > > > While build kernel on RELENG_4 machine I have following warnings (they
> > > > prevent success build unless -Werror disabled)
> > > 
> > > Is there some reason you're trying to compile RELENG_4 with gcc 3.3, which
> > > won't work?
> > 
> > I am trying to compile -CURRENT code on RELENG_4 machine, with native
> > RELENG_4 gcc:
> > 
> > % gcc -v
> > Using builtin specs.
> > gcc version 2.95.4 20020320 [FreeBSD]
> > % which gcc
> > /usr/bin/gcc
> 
> Install the GCC 3.3 port on your 4.x system and use "CC=gcc33 make" when
> building the 5-CURRENT kernel sources.

Looks like bad idea, with native gcc I can simple ignore warnings,
but with gcc33 it fails on depend stage:

# env CC=/usr/local/bin/gcc33 make KERNCONF=VBOOK buildkernel | & tee
~/build.report33
...
if [ -f .depend ]; then mv .depend .olddep; fi
/usr/obj/ext/current/src/make.i386/make _kernel-depend
/usr/local/bin/gcc33 -c -O -pipe -mcpu=pentiumpro -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/ext/current/src/sys
-I/ext/current/src/sys/contrib/dev/acpica
-I/ext/current/src/sys/contrib/ipfilter
-I/ext/current/src/sys/contrib/dev/ath
-I/ext/current/src/sys/contrib/dev/ath/freebsd -D_KERNEL -include
opt_global.h -finline-limit=15000 -fno-strict-aliasing -O
-mcpu=pentiumpro -mno-align-long-strings -mpreferred-stack-boundary=2
-ffreestanding -Wno-inline /ext/current/src/sys/i386/i386/genassym.c
cc1: error: invalid option `no-align-long-strings'
*** Error code 1

Stop in /usr/obj/ext/current/src/sys/VBOOK.
*** Error code 1

Stop in /usr/obj/ext/current/src/sys/VBOOK.
*** Error code 1

Stop in /ext/current/src.
*** Error code 1

Stop in /ext/current/src.
#

-- 
Vladimir B. Grebenschikov <vova_at_sw.ru>
SWsoft Inc.
Received on Thu Oct 23 2003 - 12:06:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:26 UTC