-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failure on sparc with -Wcast-align #147
Comments
On Debian sparc64, tests fail with SIGBUS. This may or may not be related. |
FTR, the Debian sparc failure is unrelated. Getting this code wrong fails tests/test-umockdev.c This is annoying to "fix": the code can't just use |
To make errors like #147 more obvious. This does not cause any warnings on x86, though.
To make errors like #147 more obvious. This does not cause any warnings on x86, though.
Casting the netlink CMSG_DATA into a `struct ucred` increases the required alignment on at least sparc. Move to memcpy() instead. Fixes #147
To make errors like #147 more obvious. This does not cause any warnings on x86, though.
This was reported by a user on Gentoo Linux (sparc).
https://bugs.gentoo.org/812461
The user has
-Wcast-align
in CFLAGS, and this gets converted to an error by the-Werror
parameter configured in the project arguments.It might be worth addressing the alignment issue.
The text was updated successfully, but these errors were encountered: