[ipxe-devel] Compilation fails on gcc 10.0.1
Geert Stappers
stappers at stappers.nl
Fri May 8 17:29:04 UTC 2020
On Fri, May 08, 2020 at 09:28:00PM +0900, Christian Nilsson wrote:
> On Fri, 8 May 2020, 04:30 Peter Bartfai, <pbartfai at stardust.hu> wrote:
> > Hi
> >
> > Compilation fails on gcc 10.0.1 (Fedora 32). It works with Fedora 31.
> >
> > [root at fedora src]# make -k bin/undionly.kpxe
> > [BUILD] bin/intelvf.o
> > drivers/net/intelvf.c: In function ‘intelvf_mbox_poll’:
> > drivers/net/intelvf.c:80:13: error: array subscript i is outside array
> > bounds of ‘uint32_t[0]’ {aka ‘unsigned int[]’} [-Werror=array-bounds]
> > 80 | msg->dword[i] = readl ( intel->regs + intel->mbox.mem +
> > | ~~~~~~~~~~^~~
> > In file included from drivers/net/intelvf.c:32:
> > drivers/net/intelvf.h:135:11: note: while referencing ‘dword’
> > 135 | uint32_t dword[0];
> > | ^~~~~
...
> >
> > Please check.
> >
Good to see that report.
> > Regards,
> > Peter
>
>
> Did you check the mailinglist for other recent mails about gcc 10?
>
Mailinglist posting https://lists.ipxe.org/pipermail/ipxe-devel/2020-May/007047.html
starts with 'gcc10 switched default behavior from -fcommon to -fno-common'
and does a patch for it.
Groeten
Geert Stappers
--
Silence is hard to parse
More information about the ipxe-devel
mailing list