iPXE discussion forum
iPXE Build Problem - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: iPXE Build Problem (/showthread.php?tid=22914)



iPXE Build Problem - Chris-Tux - 2020-05-23 12:35

Hello everyone,
this is my first post here in the forum. Normally i just read along and could solve all problems so far. But currently I always get this error message.

----- 8< -----
drivers/net/intelvf.c: In Funktion »intelvf_mbox_poll«:
drivers/net/intelvf.c:80:13: Fehler: Arrayindex i liegt außerhalb der Arraygrenzen von »uint32_t[0]« {alias »unsigned int[]«} [-Werror=array-bounds]
80 | msg->dword[i] = readl ( intel->regs + intel->mbox.mem +
| ~~~~~~~~~~^~~
In Datei, eingebunden von drivers/net/intelvf.c:32:
drivers/net/intelvf.h:135:11: Anmerkung: beim Referenzieren von »dword«
135 | uint32_t dword[0];
| ^~~~~
drivers/net/intelvf.c:98:20: Anmerkung: »msg« wurde hier definiert
98 | union intelvf_msg msg;
| ^~~
cc1: Alle Warnungen werden als Fehler behandelt
make: *** [Makefile.housekeeping:946: bin/intelvf.o] Fehler 1
----- 8< -----

I have tried it under Debian Buster and Fedora 32. I get this error message with both.

Is there anything else missing ??


RE: iPXE Build Problem - simon - 2020-06-05 09:52

Seems to be a known problem with gcc 10:

https://lists.ipxe.org/pipermail/ipxe-devel/2020-May/007050.html

You could try passing NO_WERROR=1 or maybe just switch to an older gcc.