On Fri, 8 May 2020, 04:30 Peter Bartfai, <pbart...@stardust.hu> wrote:
> Hi > > Compilation fails on gcc 10.0.1 (Fedora 32). It works with Fedora 31. > > [root@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]; > | ^~~~~ > drivers/net/intelvf.c:98:20: note: defined here ‘msg’ > 98 | union intelvf_msg msg; > | ^~~ > cc1: all warnings being treated as errors > make: *** [Makefile.housekeeping:946: bin/intelvf.o] Error 1 > [BUILD] bin/flexboot_nodnic.o > drivers/infiniband/flexboot_nodnic.c: In function > ‘flexboot_nodnic_create_qp’: > drivers/infiniband/flexboot_nodnic.c:368:53: error: implicit conversion > from ‘enum ib_queue_pair_type’ to ‘nodnic_queue_pair_type’ > [-Werror=enum-conversion] > 368 | status = nodnic_port_create_qp(&port->port_priv, qp->type, > | ~~^~~~~~ > drivers/infiniband/flexboot_nodnic.c: In function > ‘flexboot_nodnic_destroy_qp’: > drivers/infiniband/flexboot_nodnic.c:409:45: error: implicit conversion > from ‘enum ib_queue_pair_type’ to ‘nodnic_queue_pair_type’ > [-Werror=enum-conversion] > 409 | nodnic_port_destroy_qp(&port->port_priv, qp->type, > | ~~^~~~~~ > cc1: all warnings being treated as errors > make: *** [Makefile.housekeeping:946: bin/flexboot_nodnic.o] Error 1 > [VERSION] bin/version.undionly.kpxe.o > make: Target 'bin/undionly.kpxe' not remade because of errors. > > Please check. > > Regards, > Peter > _______________________________________________ > ipxe-devel mailing list > ipxe-devel@lists.ipxe.org > https://lists.ipxe.org/mailman/listinfo/ipxe-devel Did you check the mailinglist for other recent mails about gcc 10? > >
_______________________________________________ ipxe-devel mailing list ipxe-devel@lists.ipxe.org https://lists.ipxe.org/mailman/listinfo/ipxe-devel