Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 686394

Summary: sys-apps/fwupdate-12 : fwupdate.c:529:8: error: taking address of packed member of struct update_info_s may result in an unaligned pointer value
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED OBSOLETE    
Severity: normal CC: anton.kochkov, esigra, fabio.coatti, pageexec
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=685044
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 260867    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
sys-apps:fwupdate-12:20190520-130334.log
temp.tbz2
an ebuild work-around for Gentoo

Description Toralf Förster gentoo-dev 2019-05-20 13:56:39 UTC
                 from fwupdate.c:11:
fwupdate.c: In function ‘find_updates’:
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]
  529 |        &update->info->time_attempted,
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/efi/x86_64/efibind.h:296:51: note: in definition of macro ‘uefi_call_wrapper’

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-developer_libressl_20190519-235839

  -------------------------------------------------------------------

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.1.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)





emerge -qpvO sys-apps/fwupdate
[ebuild  N    ] sys-apps/fwupdate-12
Comment 1 Toralf Förster gentoo-dev 2019-05-20 13:56:42 UTC
Created attachment 577394 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-05-20 13:56:44 UTC
Created attachment 577396 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-05-20 13:56:47 UTC
Created attachment 577398 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-05-20 13:56:50 UTC
Created attachment 577400 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-05-20 13:56:53 UTC
Created attachment 577402 [details]
sys-apps:fwupdate-12:20190520-130334.log
Comment 6 Toralf Förster gentoo-dev 2019-05-20 13:56:55 UTC
Created attachment 577404 [details]
temp.tbz2
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2019-06-18 09:56:09 UTC
*** Bug 688198 has been marked as a duplicate of this bug. ***
Comment 8 Ken Pizzini 2020-02-03 06:41:55 UTC
Created attachment 611168 [details, diff]
an ebuild work-around for Gentoo

While what is really needed is some upstream patches to clean up the warnings, in the interim Gentoo can just extend the existing src_prepare() hack of removing -Werror from another Makefile in the source tree.  (I.e., efi/Makefile, in addition to the existing linux/Makefile .)
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-05-23 08:29:19 UTC
Removing per p.mask.