o -lexpat -lpthread make[3]: Leaving directory '/builddir/build/BUILD/log4c-1.2.4/tests/log4c' make[3]: Entering directory '/builddir/build/BUILD/log4c-1.2.4/tests' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/builddir/build/BUILD/log4c-1.2.4/tests' make[2]: Leaving directory '/builddir/build/BUILD/log4c-1.2.4/tests' Making all in examples make[2]: Entering directory '/builddir/build/BUILD/log4c-1.2.4/examples' Making all in helloworld make[3]: Entering directory '/builddir/build/BUILD/log4c-1.2.4/examples/helloworld' gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -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 -Wall -c helloworld.c /bin/sh ../../libtool --tag=CC --mode=link gcc -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 -Wall -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o helloworld helloworld.o ../../src/log4c/liblog4c.la -lpthread libtool: link: gcc -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 -Wall -Wl,-z -Wl,relro -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/helloworld helloworld.o ../../src/log4c/.libs/liblog4c.so -lexpat -lpthread make[3]: Leaving directory '/builddir/build/BUILD/log4c-1.2.4/examples/helloworld' Making all in helloworld1 make[3]: Entering directory '/builddir/build/BUILD/log4c-1.2.4/examples/helloworld1' gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -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 -Wall -c helloworld1.c BUILDSTDERR: In file included from helloworld1.c:8: BUILDSTDERR: mylog.h: In function 'mylog_msg': BUILDSTDERR: mylog.h:42:2: error: format not a string literal and no format arguments [-Werror=format-security] BUILDSTDERR: log4c_category_log(log4c_category_get(catName), a_priority, msg); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: cc1: some warnings being treated as errors BUILDSTDERR: make[3]: *** [Makefile:373: helloworld1.o] Error 1 make[3]: Leaving directory '/builddir/build/BUILD/log4c-1.2.4/examples/helloworld1' BUILDSTDERR: make[2]: *** [Makefile:516: all-recursive] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/log4c-1.2.4/examples' BUILDSTDERR: make[1]: *** [Makefile:602: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/log4c-1.2.4' BUILDSTDERR: make: *** [Makefile:399: all] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.6gq3n5 (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.6gq3n5 (%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/log4c.spec