tches -pipe -Wall -Wno-complain-wrong-lang '-Werror=format-security' '-Werror=implicit-function-declaration' '-Werror=implicit-int' '-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3' -Wp,-D_GLIBCXX_ASSERTIONS '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' -fstack-protector-strong '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' -fasynchronous-unwind-tables -fno-omit-frame-pointer -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE '-D_FILE_OFFSET_BITS=64' -O2 '-flto=auto' -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall '-Werror=format-security' '-Werror=implicit-function-declaration' '-Werror=implicit-int' '-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3' -Wp,-D_GLIBCXX_ASSERTIONS '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' -fstack-protector-strong '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' -fasynchronous-unwind-tables -fno-omit-frame-pointer -g -o lib/Data/Pond.o lib/Data/Pond.c lib/Data/Pond.xs:9: warning: "PERL_VERSION_GE" redefined 9 | #define PERL_VERSION_GE(r,v,s) \ | In file included from /usr/lib64/perl5/CORE/perl.h:3327, from lib/Data/Pond.xs:3: /usr/lib64/perl5/CORE/handy.h:578: note: this is the location of the previous definition 578 | # define PERL_VERSION_GE(j,n,p) (! PERL_VERSION_LT(j,n,p)) | lib/Data/Pond.xs: In function ‘THX_sv_cat_unichar’: lib/Data/Pond.xs:159:19: error: implicit declaration of function ‘uvuni_to_utf8_flags’; did you mean ‘uvchr_to_utf8_flags’? [-Werror=implicit-function-declaration] 159 | vnewend = uvuni_to_utf8_flags(voldend, val, UNICODE_ALLOW_ANY); | ^~~~~~~~~~~~~~~~~~~ | uvchr_to_utf8_flags lib/Data/Pond.xs:159:17: warning: assignment to ‘U8 *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 159 | vnewend = uvuni_to_utf8_flags(voldend, val, UNICODE_ALLOW_ANY); | ^ lib/Data/Pond.xs: In function ‘THX_serialise_as_string’: lib/Data/Pond.xs:580:57: warning: ‘__sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=] 580 | sprintf(hexbuf, "\\x{%02x}", | ^~~~~~~~~~~ In file included from /usr/include/stdio.h:980, from /usr/lib64/perl5/CORE/perlio.h:41, from /usr/lib64/perl5/CORE/iperlsys.h:50, from /usr/lib64/perl5/CORE/perl.h:4485: In function ‘sprintf’, inlined from ‘THX_serialise_as_string’ at lib/Data/Pond.xs:580:6: /usr/include/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 7 and 13 bytes into a destination of size 12 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors error building lib/Data/Pond.o from 'lib/Data/Pond.c' at /usr/share/perl5/ExtUtils/CBuilder/Base.pm line 185. error: Bad exit status from /var/tmp/rpm-tmp.3r6MMb (%build) Bad exit status from /var/tmp/rpm-tmp.3r6MMb (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status 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/perl-Data-Pond.spec