FS#63228 - [mdadm] fails to build in clean chroot due to some alignment issues

Attached to Project: Arch Linux
Opened by Erich Eckner (deepthought) - Friday, 19 July 2019, 09:40 GMT
Last edited by Christian Hesse (eworm) - Wednesday, 13 November 2019, 18:17 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

extra-x86_64-build fails with errors like:
super-intel.c:696:9: error: taking address of packed member of ‘struct imsm_super’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
696 | return &mpb->disk[index];
| ^~~~~~~~~~~~~~~~~

Additional info:
* package version(s)
mdadm 4.1-1 (git revision 72df0661f619c0bf26c00f20b6fc900e0ee4003b)
* config and/or log files etc.
full log is attached

Steps to reproduce:
> git checkout 72df0661f619c0bf26c00f20b6fc900e0ee4003b
> cd mdadm/repos/core-x86_64
> extra-x86_64-build
This task depends upon

Closed by  Christian Hesse (eworm)
Wednesday, 13 November 2019, 18:17 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in SVN
Comment by loqs (loqs) - Friday, 19 July 2019, 19:29 GMT
Add three patches from upstream that fix some of the gcc 9 warnings but others remain so override CWFLAGS to remove -Werror.

Loading...