[ipxe-devel] IPXE Compilation error
Peter Bartfai
pbartfai at stardust.hu
Fri May 10 13:22:04 UTC 2019
Dear Developers,
I tried to compile ipxe on Fedora 30 with gcc 9.1.1 and failed it worked
well on Fedora 29:
[root at fedora src]# make
[BUILD] bin/dummy_sanboot.o
In file included from include/ipxe/sanboot.h:15,
from core/dummy_sanboot.c:33:
include/ipxe/uri.h: In function 'uri_get':
include/ipxe/uri.h:178:12: error: taking address of packed member of
'struct uri' may result in an unaligned pointer value
[-Werror=address-of-packed-member]
178 | ref_get ( &uri->refcnt );
| ^~~~~~~~~~~~
include/ipxe/refcnt.h:95:18: note: in definition of macro 'ref_get'
95 | ref_increment ( refcnt ); \
| ^~~~~~
include/ipxe/uri.h: In function 'uri_put':
include/ipxe/uri.h:189:12: error: taking address of packed member of
'struct uri' may result in an unaligned pointer value
[-Werror=address-of-packed-member]
189 | ref_put ( &uri->refcnt );
| ^~~~~~~~~~~~
include/ipxe/refcnt.h:109:18: note: in definition of macro 'ref_put'
109 | ref_decrement ( refcnt ); \
| ^~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile.housekeeping:937: bin/dummy_sanboot.o] Error 1
Please check.
Regards,
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20190510/6f58df06/attachment.htm>
More information about the ipxe-devel
mailing list