Bug ID 1121203
Summary GCC 9: fwupdate 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 ---

[   19s] In file included from /usr/include/efi/efi.h:41,
[   19s]                  from fwupdate.c:11:
[   19s] fwupdate.c: In function 'find_updates':
[   19s] fwupdate.c:529:8: error: taking address of packed member of 'struct
update_info_s' may result in an unaligned pointer value
[-Werror=address-of-packed-member]
[   19s]   529 |        &update->info->time_attempted,
[   19s]       |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[   19s] /usr/include/efi/x86_64/efibind.h:296:51: note: in definition of macro
'uefi_call_wrapper'
[   19s]   296 | #define uefi_call_wrapper(func, va_num, ...) func(__VA_ARGS__)
[   19s]       |                                                   ^~~~~~~~~~~
[   19s] fwupdate.c: In function 'add_capsule':
[   19s] fwupdate.c:1060:16: error: taking address of packed member of 'struct
update_info_s' may result in an unaligned pointer value
[-Werror=address-of-packed-member]
[   19s]  1060 |  if ((guid_cmp(&update->info->guid, (efi_guid_t *)fbuf) == 0
||
[   19s]       |                ^~~~~~~~~~~~~~~~~~~
[   19s] fwupdate.c:1076:41: error: taking address of packed member of 'struct
update_info_s' may result in an unaligned pointer value
[-Werror=address-of-packed-member]
[   19s]  1076 |   if (!cap_out->Flags && !is_ux_capsule(&update->info->guid))
{
[   19s]       |                                         ^~~~~~~~~~~~~~~~~~~
[   19s] fwupdate.c:1023:39: note: in definition of macro 'is_ux_capsule'
[   19s]  1023 | #define is_ux_capsule(guid) (guid_cmp(guid, &ux_capsule_guid)
== 0)
[   19s]       |                                       ^~~~
[   19s] fwupdate.c:1099:22: error: taking address of packed member of 'struct
update_info_s' may result in an unaligned pointer value
[-Werror=address-of-packed-member]
[   19s]  1099 |   if (!is_ux_capsule(&update->info->guid)) {
[   19s]       |                      ^~~~~~~~~~~~~~~~~~~
[   19s] fwupdate.c:1023:39: note: in definition of macro 'is_ux_capsule'
[   19s]  1023 | #define is_ux_capsule(guid) (guid_cmp(guid, &ux_capsule_guid)
== 0)
[   19s]       |                                       ^~~~
[   19s] fwupdate.c:1118:20: error: taking address of packed member of 'struct
update_info_s' may result in an unaligned pointer value
[-Werror=address-of-packed-member]
[   19s]  1118 |  if (is_ux_capsule(&update->info->guid)) {
[   19s]       |                    ^~~~~~~~~~~~~~~~~~~
[   19s] fwupdate.c:1023:39: note: in definition of macro 'is_ux_capsule'
[   19s]  1023 | #define is_ux_capsule(guid) (guid_cmp(guid, &ux_capsule_guid)
== 0)
[   19s]       |                                       ^~~~
[   19s] fwupdate.c: In function 'efi_main':
[   19s] fwupdate.c:1295:22: error: taking address of packed member of 'struct
update_info_s' may result in an unaligned pointer value
[-Werror=address-of-packed-member]
[   19s]  1295 |        is_ux_capsule(&updates[i]->info->guid))
[   19s]       |                      ^~~~~~~~~~~~~~~~~~~~~~~
[   19s] fwupdate.c:1023:39: note: in definition of macro 'is_ux_capsule'
[   19s]  1023 | #define is_ux_capsule(guid) (guid_cmp(guid, &ux_capsule_guid)
== 0)
[   19s]       |


You are receiving this mail because: