Wmissing-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Winline -Wformat-nonliteral -Wformat-security -Wswitch-enum -Wswitch-default -Winit-self -Wmissing-include-dirs -Wundef -Waggregate-return -Wmissing-format-attribute -Wnested-externs -Wunsafe-loop-optimizations -Wpacked -Winvalid-pch -Wsync-nand -Werror -I../gifenc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wno-deprecated-declarations -c -o libbyzanz_la-byzanzlayercursor.lo `test -f 'byzanzlayercursor.c' || echo './'`byzanzlayercursor.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/libdrm -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wold-style-definition -Wdeclaration-after-statement -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Winline -Wformat-nonliteral -Wformat-security -Wswitch-enum -Wswitch-default -Winit-self -Wmissing-include-dirs -Wundef -Waggregate-return -Wmissing-format-attribute -Wnested-externs -Wunsafe-loop-optimizations -Wpacked -Winvalid-pch -Wsync-nand -Werror -I../gifenc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wno-deprecated-declarations -c byzanzlayercursor.c -fPIC -DPIC -o .libs/libbyzanz_la-byzanzlayercursor.o BUILDSTDERR: byzanzlayercursor.c: In function 'create_surface_for_cursor': BUILDSTDERR: byzanzlayercursor.c:42:18: error: cast increases required alignment of target type [-Werror=cast-align] BUILDSTDERR: surface_data = (guint32 *) cairo_image_surface_get_data (surface); BUILDSTDERR: ^ BUILDSTDERR: cc1: all warnings being treated as errors BUILDSTDERR: make[2]: *** [Makefile:824: libbyzanz_la-byzanzlayercursor.lo] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/byzanz-5a6c336982e5956c6dce5d3d51d057ac034ce7ca/src' make[1]: Leaving directory '/builddir/build/BUILD/byzanz-5a6c336982e5956c6dce5d3d51d057ac034ce7ca' BUILDSTDERR: make[1]: *** [Makefile:473: all-recursive] Error 1 BUILDSTDERR: make: *** [Makefile:405: all] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.86oihS (%build) BUILDSTDERR: Macro expanded in comment on line 9: %{name}/0.2/%{name}-%{version}.tar.bz2 BUILDSTDERR: Macro expanded in comment on line 10: %{git}/ %{git} | xz > byzanz-%{git} BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.86oihS (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/byzanz.spec