[Bug 845525] New: Pacemaker uses unaligned access - fails to build on ARM
https://bugzilla.novell.com/show_bug.cgi?id=845525 https://bugzilla.novell.com/show_bug.cgi?id=845525#c0 Summary: Pacemaker uses unaligned access - fails to build on ARM Classification: openSUSE Product: openSUSE Factory Version: 13.1 Beta 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dmueller@suse.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- When building on ARM/AArch64; this warning occurs: ipc.c:837:46: error: cast increases required alignment of target type [-Werror=cast-align] struct crm_ipc_response_header *header = (struct crm_ipc_response_header *)client->buffer; Which points out an invalid assumption of the code: It is not guaranteed that an array of chars is properly aligned for reading structures that contain elements with alignment requirements (like e.g. int's need to be naturally aligned on ARM). This is also a problem on some other architectures that have alignment needs. Implement the portable solution by copying the data into a temp buffer that is guaranteed to be properly aligned. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=845525
https://bugzilla.novell.com/show_bug.cgi?id=845525#c
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=845525
https://bugzilla.novell.com/show_bug.cgi?id=845525#c2
--- Comment #2 from Yan Gao
https://bugzilla.novell.com/show_bug.cgi?id=845525
https://bugzilla.novell.com/show_bug.cgi?id=845525#c
Lars Marowsky-Bree
participants (1)
-
bugzilla_noreply@novell.com