-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 -D_GNU_SOURCE -fPIC -fwrapv -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 -fPIC -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -DXMLSEC_CRYPTO_OPENSSL=1 -I/usr/include/libxml2 -I/usr/include/xmlsec1 -I/usr/include/python2.7 -c x509.c -o build/temp.linux-riscv64-2.7/x509.o BUILDSTDERR: In file included from /usr/include/python2.7/pyconfig.h:6, BUILDSTDERR: from /usr/include/python2.7/Python.h:8, BUILDSTDERR: from utils.h:5, BUILDSTDERR: from xmlsecmod.h:25, BUILDSTDERR: from x509.c:14: BUILDSTDERR: /usr/include/python2.7/pyconfig-64.h:1254: warning: "_XOPEN_SOURCE" redefined BUILDSTDERR: #define _XOPEN_SOURCE 600 BUILDSTDERR: BUILDSTDERR: In file included from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from /usr/include/libxml2/libxml/tree.h:15, BUILDSTDERR: from /usr/include/xmlsec1/xmlsec/xmlsec.h:18, BUILDSTDERR: from /usr/include/xmlsec1/xmlsec/crypto.h:18, BUILDSTDERR: from xmlsecmod.h:4, BUILDSTDERR: from x509.c:14: BUILDSTDERR: /usr/include/features.h:202: note: this is the location of the previous definition BUILDSTDERR: # define _XOPEN_SOURCE 700 BUILDSTDERR: BUILDSTDERR: x509.c: In function 'xmlsec_X509DataGetNodeContent': BUILDSTDERR: x509.c:35:44: warning: passing argument 2 of 'xmlSecX509DataGetNodeContent' makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: ret = xmlSecX509DataGetNodeContent(node, deleteChildren, keyInfoCtx); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from xmlsecmod.h:23, BUILDSTDERR: from x509.c:14: BUILDSTDERR: /usr/include/xmlsec1/xmlsec/x509.h:70:86: note: expected 'xmlSecKeyInfoCtxPtr' {aka 'struct _xmlSecKeyInfoCtx *'} but argument is of type 'int' BUILDSTDERR: xmlSecKeyInfoCtxPtr keyInfoCtx); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ BUILDSTDERR: x509.c:35:9: error: too many arguments to function 'xmlSecX509DataGetNodeContent' BUILDSTDERR: ret = xmlSecX509DataGetNodeContent(node, deleteChildren, keyInfoCtx); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from xmlsecmod.h:23, BUILDSTDERR: from x509.c:14: BUILDSTDERR: /usr/include/xmlsec1/xmlsec/x509.h:69:33: note: declared here BUILDSTDERR: XMLSEC_EXPORT int xmlSecX509DataGetNodeContent (xmlNodePtr node, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: error: command 'gcc' failed with exit status 1 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.ifkq5U (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.ifkq5U (%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/pyxmlsec.spec