sign-compare -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 -c vcc_header_if.c -fPIC -DPIC -o .libs/vcc_header_if.o make[2]: Leaving directory '/builddir/build/BUILD/varnish-modules-0.15.0/src' make[2]: Entering directory '/builddir/build/BUILD/varnish-modules-0.15.0/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish -I../src/foreign -Wall -Werror -Wall -Wno-format-y2k -Wstrict-prototypes -Wmissing-prototypes -Werror=missing-field-initializers -Wpointer-arith -Wreturn-type -Wwrite-strings -Wcast-qual -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wextra -Wno-sign-compare -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 -c -o vmod_header.lo vmod_header.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish -I../src/foreign -Wall -Werror -Wall -Wno-format-y2k -Wstrict-prototypes -Wmissing-prototypes -Werror=missing-field-initializers -Wpointer-arith -Wreturn-type -Wwrite-strings -Wcast-qual -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wextra -Wno-sign-compare -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 -c vmod_header.c -fPIC -DPIC -o .libs/vmod_header.o make[2]: Leaving directory '/builddir/build/BUILD/varnish-modules-0.15.0/src' BUILDSTDERR: In file included from vmod_config.h:38, BUILDSTDERR: from vmod_header.c:35: BUILDSTDERR: /usr/include/varnish/cache/cache.h:202:1: error: data definition has no type or storage class [-Werror] BUILDSTDERR: 202 | VRBT_HEAD(vrt_priv_tree,vrt_priv); BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: /usr/include/varnish/cache/cache.h:202:1: error: type defaults to 'int' in declaration of 'VRBT_HEAD' [-Werror=implicit-int] BUILDSTDERR: /usr/include/varnish/cache/cache.h:202:1: error: parameter names (without types) in function declaration [-Werror] BUILDSTDERR: /usr/include/varnish/cache/cache.h:207:23: error: field 'privs' has incomplete type BUILDSTDERR: 207 | struct vrt_priv_tree privs; BUILDSTDERR: | ^~~~~ BUILDSTDERR: vmod_header.c:196:1: error: no previous prototype for 'event_function' [-Werror=missing-prototypes] BUILDSTDERR: 196 | event_function(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e) BUILDSTDERR: | ^~~~~~~~~~~~~~ BUILDSTDERR: cc1: all warnings being treated as errors BUILDSTDERR: make[2]: *** [Makefile:919: vmod_header.lo] Error 1 BUILDSTDERR: make[1]: *** [Makefile:537: all-recursive] Error 1 RPM build errors: BUILDSTDERR: make: *** [Makefile:448: all] Error 2 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.8EEU2e (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.8EEU2e (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 700, 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/varnish-modules.spec