Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686394 - 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
Summary: sys-apps/fwupdate-12 : fwupdate.c:529:8: error: taking address of packed memb...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
: 688198 (view as bug list)
Depends on:
Blocks: werror
  Show dependency tree
 
Reported: 2019-05-20 13:56 UTC by Toralf Förster
Modified: 2020-07-15 17:58 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.01 KB, text/plain)
2019-05-20 13:56 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,26.89 KB, text/plain)
2019-05-20 13:56 UTC, Toralf Förster
Details
environment (environment,52.43 KB, text/plain)
2019-05-20 13:56 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,10.87 KB, application/x-bzip)
2019-05-20 13:56 UTC, Toralf Förster
Details
sys-apps:fwupdate-12:20190520-130334.log (sys-apps:fwupdate-12:20190520-130334.log,8.49 KB, text/plain)
2019-05-20 13:56 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,15.20 KB, application/x-bzip)
2019-05-20 13:56 UTC, Toralf Förster
Details
an ebuild work-around for Gentoo (fwupdate.diff,339 bytes, patch)
2020-02-03 06:41 UTC, Ken Pizzini
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.