Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Oct 2003 08:59:11 -0700 (PDT)
From:      Doug White <dwhite@gumbysoft.com>
To:        "Vladimir B. Grebenschikov" <vova@sw.ru>
Cc:        "current@freebsd.org" <current@freebsd.org>
Subject:   Re: warnings while kernel build
Message-ID:  <20031023085608.G79600@carver.gumbysoft.com>
In-Reply-To: <1066905716.829.3.camel@localhost>
References:  <1066806474.959.18.camel@localhost> <20031022151112.M71676@carver.gumbysoft.com> <1066905716.829.3.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 23 Oct 2003, Vladimir B. Grebenschikov wrote:

> 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

hrm....

> > > /ext/current/src# make -j8 buildkernel
> > > ...
> > > /ext/current/src/sys/kern/kern_descrip.c:1914: warning: inlining failed
> > > in call to `_fgetvp'
> >
> > > makeoptions	CONF_CFLAGS="-O3 -mcpu=pentiumpro"
> >
> > This is an unsupported option.  Do not compile the kernel with any
> > optimization beyond -O.  This might be the other reason why you are
> > getting these inlining warnings.
>
> Ok, But it works for me from 5.0 branching (or about).

Optimization levels beyond -O are known to generate incorrect code.  You
will end up with an unbootable or, worse, an incorrect kernel as a result.

If you are having compile problems with anything but -O, revert to -O.  If
you are still having problems, wthen we'll talk.

Youre _are_ following the instructions in /usr/src/UPDATING on how to
upgrade from -STABLE to -CURRENT, right?

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite@gumbysoft.com          |  www.FreeBSD.org



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