GNOME Bugzilla – Bug 767279
another arm build error from the flatpak autobuilder
Last modified: 2016-06-25 20:49:14 UTC
gtksourcegutter.c: In function ‘redraw_for_window’: gtksourcegutter.c:1489:41: error: cast increases required alignment of target type [-Werror=cast-align] (GdkEvent *)event, as seen in https://gnome7.codethink.co.uk//logs/build-2016-06-05-090501/build-org.gnome.Calculator.txt
We can blindly try to fix all these errors one by one, but it would be smarter to build with --disable-Werror to see all the warnings at once, and/or someone with access to the ARM hardware can provide tested patches. I wonder why we didn't have any bug reports before, from distros like Debian building GtkSourceView on ARM. Maybe they ignore the warnings.
Here is a build log, with --disable-Werror, building for ARMv7-A https://gnome8.codethink.co.uk//logs/build-2016-06-09-161001/build-org.gnome.gedit.txt Note, the build host is aarch64, in a sysroot built with a cross compiled ARMv7-A native compiler. A possible fix here *might* be to pass --build=arm-unknown-linux-gnueabi to configure, maybe this will help with cast align issues ? (maybe the configure script is picking up 64bit build host ?)
The first warning was fixed in bug #767254. It seems that there is only one remaining warning (the one reported here).
Does commit 3d82d6918a69d5f96591794afb87c42fe5148cc5 fix the problem?
Commit backported on 3.20, since I see that the build is on 3.20.
I suppose it's fixed now.