[Bug 1121464] New: GCC 9: qemu build fails
http://bugzilla.opensuse.org/show_bug.cgi?id=1121464 Bug ID: 1121464 Summary: GCC 9: qemu build fails Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: martin.liska@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:G... [ 727s] In file included from include/ipxe/params.h:13, [ 727s] from core/uri.c:38: [ 727s] include/ipxe/uri.h: In function 'uri_get': [ 727s] 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] [ 727s] 178 | ref_get ( &uri->refcnt ); [ 727s] | ^~~~~~~~~~~~ [ 727s] include/ipxe/refcnt.h:95:18: note: in definition of macro 'ref_get' [ 727s] 95 | ref_increment ( refcnt ); \ [ 727s] | ^~~~~~ [ 727s] include/ipxe/uri.h: In function 'uri_put': [ 727s] 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] [ 727s] 189 | ref_put ( &uri->refcnt ); [ 727s] | ^~~~~~~~~~~~ [ 727s] include/ipxe/refcnt.h:109:18: note: in definition of macro 'ref_put' [ 727s] 109 | ref_decrement ( refcnt ); \ [ 727s] | ^~~~~~ [ 727s] core/uri.c: In function 'uri_free': [ 727s] core/uri.c:281:18: error: taking address of packed member of 'struct uri' may result in an unaligned pointer value [-Werror=address-of-packed-member] [ 727s] 281 | params_put ( uri->params ); [ 727s] | ~~~^~~~~~~~ [ 728s] In file included from include/ipxe/params.h:13, [ 728s] from core/uri.c:38: [ 728s] core/uri.c: In function 'parse_uri': [ 728s] core/uri.c:310:13: error: taking address of packed member of 'struct uri' may result in an unaligned pointer value [-Werror=address-of-packed-member] [ 728s] 310 | ref_init ( &uri->refcnt, uri_free ); [ 728s] include/ipxe/refcnt.h:68:15: note: in definition of macro 'ref_init' [ 728s] 68 | ref_init ( (refcnt), (free) ); \ [ 728s] | ^~~~~~ [ 728s] core/uri.c: In function 'uri_dup': [ 728s] core/uri.c:585:13: error: taking address of packed member of 'struct uri' may result in an unaligned pointer value [-Werror=address-of-packed-member] [ 728s] 585 | ref_init ( &dup->refcnt, uri_free ); [ 728s] include/ipxe/refcnt.h:68:15: note: in definition of macro 'ref_init' [ 728s] 68 | ref_init ( (refcnt), (free) ); \ [ 728s] | ^~~~~~ [ 728s] core/uri.c:591:32: error: taking address of packed member of 'struct uri' may result in an unaligned pointer value [-Werror=address-of-packed-member] [ 728s] 591 | dup->params = params_get ( uri->params ); [ 728s] | ~~~^~~~~~~~ [ 728s] core/uri.c: In function 'resolve_uri': [ 728s] core/uri.c:695:32: error: taking address of packed member of 'struct uri' may result in an unaligned pointer value [-Werror=address-of-packed-member] [ 728s] 695 | tmp_uri.params = relative_uri->params; [ 728s] | ~~~~~~~~~~~~^~~~~~~~ [ 728s] core/uri.c:699:32: error: taking address of packed member of 'struct uri' may result in an unaligned pointer value [-Werror=address-of-packed-member] [ 728s] 699 | tmp_uri.params = relative_uri->params; [ 728s] | ~~~~~~~~~~~~^~~~~~~~ [ 728s] core/uri.c:702:32: error: taking address of packed member of 'struct uri' may result in an unaligned pointer value [-Werror=address-of-packed-member] [ 728s] 702 | tmp_uri.params = relative_uri->params; [ 728s] | ~~~~~~~~~~~~^~~~~~~~ [ 728s] core/uri.c:704:32: error: taking address of packed member of 'struct uri' may result in an unaligned pointer value [-Werror=address-of-packed-member] [ 728s] 704 | tmp_uri.params = relative_uri->params; [ 728s] | ~~~~~~~~~~~~^~~~~~~~ [ 728s] [BUILD] bin/time.o [ 728s] [BUILD] bin/stringextra.o [ 728s] [BUILD] bin/string.o [ 728s] [BUILD] bin/settings.o [ 728s] [BUILD] bin/serial.o [ 728s] [BUILD] bin/sanboot.o [ 728s] In file included from include/ipxe/netdevice.h:15, [ 728s] from include/ipxe/ip.h:16, [ 728s] from core/settings.c:36: [ 728s] include/ipxe/uri.h: In function 'uri_get': [ 728s] 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] [ 728s] 178 | ref_get ( &uri->refcnt ); [ 728s] | ^~~~~~~~~~~~ [ 728s] include/ipxe/refcnt.h:95:18: note: in definition of macro 'ref_get' [ 728s] 95 | ref_increment ( refcnt ); \ [ 728s] | ^~~~~~ [ 728s] include/ipxe/uri.h: In function 'uri_put': [ 728s] 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] [ 728s] 189 | ref_put ( &uri->refcnt ); [ 728s] | ^~~~~~~~~~~~ [ 728s] include/ipxe/refcnt.h:109:18: note: in definition of macro 'ref_put' [ 728s] 109 | ref_decrement ( refcnt ); \ [ 728s] | ^~~~~~ [ 728s] [BUILD] bin/resolv.o [ 728s] In file included from include/ipxe/interface.h:14, [ 728s] from include/ipxe/xfer.h:14, [ 728s] from core/sanboot.c:37: [ 728s] include/ipxe/uri.h: In function 'uri_get': [ 728s] 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] [ 728s] 178 | ref_get ( &uri->refcnt ); [ 728s] | ^~~~~~~~~~~~ [ 728s] include/ipxe/refcnt.h:95:18: note: in definition of macro 'ref_get' [ 728s] 95 | ref_increment ( refcnt ); \ [ 728s] | ^~~~~~ [ 728s] include/ipxe/uri.h: In function 'uri_put': [ 728s] 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] [ 728s] 189 | ref_put ( &uri->refcnt ); [ 728s] | ^~~~~~~~~~~~ [ 728s] include/ipxe/refcnt.h:109:18: note: in definition of macro 'ref_put' [ 728s] 109 | ref_decrement ( refcnt ); \ [ 728s] | ^~~~~~ -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1121464
Martin Liška
http://bugzilla.opensuse.org/show_bug.cgi?id=1121464
http://bugzilla.opensuse.org/show_bug.cgi?id=1121464#c7
Martin Liška
http://bugzilla.opensuse.org/show_bug.cgi?id=1121464
http://bugzilla.opensuse.org/show_bug.cgi?id=1121464#c9
Martin Liška
http://bugzilla.opensuse.org/show_bug.cgi?id=1121464
http://bugzilla.opensuse.org/show_bug.cgi?id=1121464#c10
Bruce Rogers
http://bugzilla.opensuse.org/show_bug.cgi?id=1121464
http://bugzilla.opensuse.org/show_bug.cgi?id=1121464#c11
--- Comment #11 from Martin Liška
A fix for this latest reported issue is checked in, along with a number of other code issues reported upstream, related to gcc9 diagnostics. Hopefully we now have them all!
Thanks, I've just tested that and it's fine. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com