[ipxe-devel] Build issue

Martin Habets mhabets at solarflare.com
Mon Nov 7 11:11:53 UTC 2016


The patch attached should fix the build error. Untested since I do not have GCC 5.4.

Best regards,
Martin

On 07/11/16 08:49, Bjørn Forsman wrote:
> Hi iPXE developers,
>
> I'd like to report a build issue:
>
> $ make -C src
> [...]
>   [BUILD] bin/etherfabric.o
> In file included from drivers/net/etherfabric.c:36:0:
> drivers/net/etherfabric.c: In function ‘falcon_init_xmac’:
> drivers/net/etherfabric.h:524:7: error: ‘reg.u32[0]’ may be used
> uninitialized in this function [-Werror=maybe-uninitialized]
>        | EFAB_INSERT_FIELD32 (  0,  31, field, value ) ); \
>        ^
> drivers/net/etherfabric.c:2213:15: note: ‘reg.u32[0]’ was declared here
>   efab_dword_t reg;
>                ^
> cc1: all warnings being treated as errors
> make: *** [Makefile.housekeeping:916: bin/etherfabric.o] Error 1
>
> This is on NixOS with GCC 5.4. Another issue that happens on NixOS is
> that "echo" isn't located in /bin. Could you either lookup "echo" in
> $PATH or use printf? (AFAIK, printf is more portable than echo, see
> http://unix.stackexchange.com/questions/65803/why-is-printf-better-than-echo.)
>
> Best regards,
> Bjørn Forsman
> _______________________________________________
> ipxe-devel mailing list
> ipxe-devel at lists.ipxe.org
> https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel
>
The information contained in this message is confidential and is intended for the addressee(s) only. If you have received this message in error, please notify the sender immediately and delete the message. Unless you are an addressee (or authorized to receive for an addressee), you may not use, copy or disclose to anyone this message or any information contained in this message. The unauthorized use, disclosure, copying or alteration of this message is strictly prohibited.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipxe_falcon.patch
Type: text/x-patch
Size: 436 bytes
Desc: not available
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20161107/f1afa27f/attachment.bin>


More information about the ipxe-devel mailing list