<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 8 May 2020, 04:30 Peter Bartfai, <<a href="mailto:pbartfai@stardust.hu">pbartfai@stardust.hu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
Compilation fails on gcc 10.0.1 (Fedora 32). It works with Fedora 31.<br>
<br>
[root@fedora src]# make -k bin/undionly.kpxe<br>
[BUILD] bin/intelvf.o<br>
drivers/net/intelvf.c: In function ‘intelvf_mbox_poll’:<br>
drivers/net/intelvf.c:80:13: error: array subscript i is outside array <br>
bounds of ‘uint32_t[0]’ {aka ‘unsigned int[]’} [-Werror=array-bounds]<br>
80 | msg->dword[i] = readl ( intel->regs + intel->mbox.mem +<br>
| ~~~~~~~~~~^~~<br>
In file included from drivers/net/intelvf.c:32:<br>
drivers/net/intelvf.h:135:11: note: while referencing ‘dword’<br>
135 | uint32_t dword[0];<br>
| ^~~~~<br>
drivers/net/intelvf.c:98:20: note: defined here ‘msg’<br>
98 | union intelvf_msg msg;<br>
| ^~~<br>
cc1: all warnings being treated as errors<br>
make: *** [Makefile.housekeeping:946: bin/intelvf.o] Error 1<br>
[BUILD] bin/flexboot_nodnic.o<br>
drivers/infiniband/flexboot_nodnic.c: In function <br>
‘flexboot_nodnic_create_qp’:<br>
drivers/infiniband/flexboot_nodnic.c:368:53: error: implicit conversion <br>
from ‘enum ib_queue_pair_type’ to ‘nodnic_queue_pair_type’ <br>
[-Werror=enum-conversion]<br>
368 | status = nodnic_port_create_qp(&port->port_priv, qp->type,<br>
| ~~^~~~~~<br>
drivers/infiniband/flexboot_nodnic.c: In function <br>
‘flexboot_nodnic_destroy_qp’:<br>
drivers/infiniband/flexboot_nodnic.c:409:45: error: implicit conversion <br>
from ‘enum ib_queue_pair_type’ to ‘nodnic_queue_pair_type’ <br>
[-Werror=enum-conversion]<br>
409 | nodnic_port_destroy_qp(&port->port_priv, qp->type,<br>
| ~~^~~~~~<br>
cc1: all warnings being treated as errors<br>
make: *** [Makefile.housekeeping:946: bin/flexboot_nodnic.o] Error 1<br>
[VERSION] bin/version.undionly.kpxe.o<br>
make: Target 'bin/undionly.kpxe' not remade because of errors.<br>
<br>
Please check.<br>
<br>
Regards,<br>
Peter<br>
_______________________________________________<br>
ipxe-devel mailing list<br>
<a href="mailto:ipxe-devel@lists.ipxe.org" target="_blank" rel="noreferrer">ipxe-devel@lists.ipxe.org</a><br>
<a href="https://lists.ipxe.org/mailman/listinfo/ipxe-devel" rel="noreferrer noreferrer" target="_blank">https://lists.ipxe.org/mailman/listinfo/ipxe-devel</a></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Did you check the mailinglist for other recent mails about gcc 10?</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
</blockquote></div></div></div>