From: Ian Campbell <Ian.Campbell@citrix.com>
To: Sander Eikelenboom <linux@eikelenboom.it>
Cc: xen-devel@lists.xenproject.org, stefano.stabellini@eu.citrix.com
Subject: Re: xen-unstable stubdom build-failure when debug=n
Date: Mon, 21 Jul 2014 17:13:24 +0100 [thread overview]
Message-ID: <1405959204.13494.0.camel@kazak.uk.xensource.com> (raw)
In-Reply-To: <598019223.20140717162519@eikelenboom.it>
On Thu, 2014-07-17 at 16:25 +0200, Sander Eikelenboom wrote:
> Thursday, July 17, 2014, 4:13:11 PM, you wrote:
>
>
> > On Thu, 2014-07-17 at 10:27 +0200, Sander Eikelenboom wrote:
> >> Hi,
> >>
> >> Today i tried to do a debug=n build of xen-unstable and ran into the build error
> >> below.
>
> > Yes, I see something similar:
>
> > stubdom/../extras/mini-os/include/mini-os/tpm_tis.h: In function ‘tpm_tis_request_locality.part.6’:
> > tpm_tis.c:618:71: error: array subscript is below array bounds [-Werror=array-bounds]
> > cc1: all warnings being treated as errors
>
> > Not sure why it should be debug=n only though.
>
> > In the case I've got the code is:
>
> > s->loc[locty].ints &= ~(val & INTERRUPTS_SUPPORTED);
>
> > where locty is a uint8_t, so how it can be *below* the bounds I'm not sure.
>
> > dhcp.c:1359 in my copy (assuming it is similar to yours) is
> > dhcp->msg_out->chaddr[i] = (i < netif->hwaddr_len) ? netif->hwaddr[i] : 0/* pad byte*/;
> > where i is a u16_t. But this is an above array bounds error, so
> > presumably the compiler thinks it knows something about the size of
> > chaddr or hwaddr vs hwaddr_len.
>
>
> > I'm not seeing anything in the logs for mini-os or stubdom since 4.4.0
> > which cry out to me as anything related. Except perhaps:
>
> > commit e6e9178431725c369aeac117badc546edf18ab07
> > Author: Thomas Leonard <talex5@gmail.com>
> > Date: Thu Jun 26 12:28:22 2014 +0100
>
> > mini-os: made off_t type signed
> >
> > POSIX requires this.
> >
> > Signed-off-by: Thomas Leonard <talex5@gmail.com>
> > Acked-by: Ian Campbell <ian.campbell@citrix.com>
> > Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
>
> > But there doesn't seem to be any size_t's involved at either site.
>
> > *Confused*
>
> Hrmmm i only changed 2 things that made it build ..
> 1) debug=n to debug=y
> 2) implicit:
> - the first build was after a "make mrproper", so that destroyed and redownloaded all git sub repo stuff
> - the second build was after a "make clean" after the first build (and the change from debug=n and debug=y)
>
> So it could also be it doesn't build on the first build due too an ordering
> issue of something that doesn't get cleaned by a make clean ?
If that were the case then I'd expect
git clean -ffffdqx && ./configure && make debug=n ; make debug=n
to work as well, which it doesn't seem to.
My guest is that turning off debug increases the optimisation level
which somehow makes gcc decide this code is now wrong.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2014-07-21 16:13 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-17 8:27 xen-unstable stubdom build-failure when debug=n Sander Eikelenboom
2014-07-17 14:13 ` Ian Campbell
2014-07-17 14:25 ` Sander Eikelenboom
2014-07-21 16:13 ` Ian Campbell [this message]
2014-07-21 16:21 ` Olaf Hering
2014-07-21 16:27 ` Ian Campbell
2014-07-22 7:09 ` Olaf Hering
2014-07-21 16:31 ` Olaf Hering
2014-07-21 16:43 ` Olaf Hering
2014-07-21 16:48 ` Ian Campbell
2014-07-21 16:51 ` Olaf Hering
2014-07-21 16:24 ` Ian Campbell
2014-07-21 17:43 ` Olaf Hering
2014-07-21 18:13 ` Daniel De Graaf
2014-07-22 6:13 ` Olaf Hering
2014-07-22 7:11 ` Sander Eikelenboom
2014-07-26 15:14 ` Sander Eikelenboom
2014-07-28 9:09 ` Ian Campbell
2014-07-28 9:47 ` Sander Eikelenboom
2014-07-28 9:51 ` Ian Campbell
2014-07-28 9:55 ` Olaf Hering
2014-07-28 9:22 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1405959204.13494.0.camel@kazak.uk.xensource.com \
--to=ian.campbell@citrix.com \
--cc=linux@eikelenboom.it \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).