Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Oct 2006 09:32:14 +0400
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Dmitry Morozovsky <marck@rinet.ru>
Cc:        stable@freebsd.org
Subject:   Re: RELENG_6/amd64 buildworld error
Message-ID:  <20061006053214.GA63996@rambler-co.ru>
In-Reply-To: <20061006052439.GC63381@rambler-co.ru>
References:  <20061006020210.J70310@woozle.rinet.ru> <20061006052439.GC63381@rambler-co.ru>

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

[-- Attachment #1 --]
On Fri, Oct 06, 2006 at 09:24:39AM +0400, Ruslan Ermilov wrote:
> On Fri, Oct 06, 2006 at 02:02:27AM +0400, Dmitry Morozovsky wrote:
> > 
> > Hi there colleagues
> > 
> > am I the only one who got the following error? 
> > 
> > ===> sbin/geom/class/mirror (all)
> > cc -fpic -DPIC -O2 -fno-strict-aliasing -pipe -march=opteron 
> > -I/usr/src/sbin/geom/class/mirror/../.. 
> > -I/usr/src/sbin/geom/class/mirror/../../../../sys -Wsystem-headers -Werror 
> > -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes 
> > -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings 
> > -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline 
> > -Wnested-externs -Wredundant-decls -c 
> > /usr/src/sbin/geom/class/mirror/geom_mirror.c -o geom_mirror.So
> > /usr/src/sbin/geom/class/mirror/geom_mirror.c: In function `mirror_main':
> > /usr/src/sbin/geom/class/mirror/../../../../sys/geom/mirror/g_mirror.h:374: 
> > warning: inlining failed in call to 'mirror_metadata_decode': --param 
> > max-inline-insns-single limit reached after inlining into the callee
> > /usr/src/sbin/geom/class/mirror/geom_mirror.c:310: warning: called from here
> > /usr/src/sbin/geom/class/mirror/../../../../sys/geom/mirror/g_mirror.h:374: 
> > warning: inlining failed in call to 'mirror_metadata_decode': --param 
> > max-inline-insns-single limit reached after inlining into the callee
> > /usr/src/sbin/geom/class/mirror/geom_mirror.c:346: warning: called from here
> > 
> It I go into sbin/geom/class/mirror and compile it like this:
> 
> make DEBUG_FLAGS="-I/usr/src/sbin/geom/class/mirror/../../../../sys"
> 
> I also get this error.  The question is why you have this -I added.
> 
The below explains why the warning is only seen when using non-system headers:

:    -Winline
:        Warn if a function can not be inlined and it was declared as
:        inline.  Even with this option, the compiler will not warn about
:        failures to inline functions declared in system headers.


Cheers,
-- 
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFJepeqRfpzJluFF4RAmPKAJ9F3nJnde1dmatN4N8cUY8BMHRalwCdH5eu
/udvrscTMtA3A36yUx7Fzt8=
=lI5M
-----END PGP SIGNATURE-----

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