[ipxe-devel] Build issue

Bjørn Forsman bjorn.forsman at gmail.com
Mon Nov 7 08:49:24 GMT 2016


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


More information about the ipxe-devel mailing list