Mac OS X build (clang) broken due to -Wcast-align error
Submitted by Roland
Assigned to D-Bus Maintainers
Created attachment 91483 build log
I'm trying to build dbus from git (branch master).
My toolchain is:
gcc -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) Target: x86_64-apple-darwin13.0.0 Thread model: posix
Unfortunately I get several warnings from the type: error: cast from 'unsigned char *' to 'dbus_uint32_t *' (aka 'unsigned int *') increases required alignment from 1 to 4 [-Werror,-Wcast-align]
Attached is the build log. As a workaround I removed the -Wcast-align flag in Makefile and the build went fine. But I guess its worth to fix that warnings.
Attachment 91483, "build log":