Mock Version: 1.4.14 Mock Version: 1.4.14 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/lua-luaossl.spec'], chrootPath='/var/lib/mock/f31-build-76570-31411/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/lua-luaossl.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False BUILDSTDERR: sh: lua: command not found Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1564963200 Wrote: /builddir/build/SRPMS/lua-luaossl-20190731-1.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/lua-luaossl.spec'], chrootPath='/var/lib/mock/f31-build-76570-31411/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/lua-luaossl.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1564963200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8YAbZN + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf luaossl-rel-20190731 + /usr/bin/gzip -dc /builddir/build/SOURCES/lua-luaossl-20190731.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd luaossl-rel-20190731 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (0001-openssl-in-fedora-has-patches-for-EPV_KDF.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Patch #1 (0001-openssl-in-fedora-has-patches-for-EPV_KDF.patch): patching file src/openssl.c Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.6GS6cM + umask 022 + cd /builddir/build/BUILD + cd luaossl-rel-20190731 + export 'CFLAGS=-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' + CFLAGS='-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' + export 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + make LUA_APIS=5.3 -j4 prefix=/usr libdir=/usr/lib64 BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c: In function 'EVP_KDF__gc': BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12017:2: error: unknown type name 'EVP_KDF_CTX'; did you mean 'EVP_MD_CTX'? BUILDSTDERR: 12017 | EVP_KDF_CTX **res = lua_touserdata(L, 1); BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: | EVP_MD_CTX BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12020:3: warning: implicit declaration of function 'EVP_KDF_CTX_free'; did you mean 'EVP_MD_CTX_free'? [-Wimplicit-function-declaration] BUILDSTDERR: 12020 | EVP_KDF_CTX_free(*res); BUILDSTDERR: | ^~~~~~~~~~~~~~~~ BUILDSTDERR: | EVP_MD_CTX_free BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c: In function 'kdf_derive': BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12031:2: error: unknown type name 'EVP_KDF_CTX'; did you mean 'EVP_MD_CTX'? BUILDSTDERR: 12031 | EVP_KDF_CTX *kctx, **kctxp; BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: | EVP_MD_CTX BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12050:30: error: 'EVP_KDF_CTX' undeclared (first use in this function); did you mean 'EVP_MD_CTX'? BUILDSTDERR: 12050 | kctxp = prepudata(L, sizeof(EVP_KDF_CTX*), NULL, &EVP_KDF__gc); BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: | EVP_MD_CTX BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12050:30: note: each undeclared identifier is reported only once for each function it appears in BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12050:42: error: expected expression before ')' token BUILDSTDERR: 12050 | kctxp = prepudata(L, sizeof(EVP_KDF_CTX*), NULL, &EVP_KDF__gc); BUILDSTDERR: | ^ BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12051:15: warning: implicit declaration of function 'EVP_KDF_CTX_new_id'; did you mean 'EVP_PKEY_CTX_new_id'? [-Wimplicit-function-declaration] BUILDSTDERR: 12051 | if (!(kctx = EVP_KDF_CTX_new_id(nid))) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: | EVP_PKEY_CTX_new_id BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12051:13: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: 12051 | if (!(kctx = EVP_KDF_CTX_new_id(nid))) BUILDSTDERR: | ^ BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12087:8: warning: implicit declaration of function 'EVP_KDF_ctrl'; did you mean 'EVP_KDF__gc'? [-Wimplicit-function-declaration] BUILDSTDERR: 12087 | if (EVP_KDF_ctrl(kctx, EVP_KDF_CTRL_SET_PASS, (const unsigned char*)str, len) <= 0) BUILDSTDERR: | ^~~~~~~~~~~~ BUILDSTDERR: | EVP_KDF__gc BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12087:27: error: 'EVP_KDF_CTRL_SET_PASS' undeclared (first use in this function); did you mean 'EVP_PKEY_CTRL_SET_IV'? BUILDSTDERR: 12087 | if (EVP_KDF_ctrl(kctx, EVP_KDF_CTRL_SET_PASS, (const unsigned char*)str, len) <= 0) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | EVP_PKEY_CTRL_SET_IV BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12093:27: error: 'EVP_KDF_CTRL_SET_SALT' undeclared (first use in this function); did you mean 'EVP_PKEY_CTRL_SET_IV'? BUILDSTDERR: 12093 | if (EVP_KDF_ctrl(kctx, EVP_KDF_CTRL_SET_SALT, (const unsigned char*)str, len) <= 0) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | EVP_PKEY_CTRL_SET_IV BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12098:27: error: 'EVP_KDF_CTRL_SET_ITER' undeclared (first use in this function); did you mean 'EVP_PKEY_CTRL_SET_IV'? BUILDSTDERR: 12098 | if (EVP_KDF_ctrl(kctx, EVP_KDF_CTRL_SET_ITER, auxL_checkunsigned(L, -1, 1, (int)-1)) <= 0) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | EVP_PKEY_CTRL_SET_IV BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12103:27: error: 'EVP_KDF_CTRL_SET_MD' undeclared (first use in this function); did you mean 'EVP_PKEY_CTRL_GET_MD'? BUILDSTDERR: 12103 | if (EVP_KDF_ctrl(kctx, EVP_KDF_CTRL_SET_MD, md_checkdigest(L, -1)) <= 0) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | EVP_PKEY_CTRL_GET_MD BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12109:27: error: 'EVP_KDF_CTRL_SET_KEY' undeclared (first use in this function); did you mean 'EVP_PKEY_CTRL_SET_IV'? BUILDSTDERR: 12109 | if (EVP_KDF_ctrl(kctx, EVP_KDF_CTRL_SET_KEY, (const unsigned char*)str, len) <= 0) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | EVP_PKEY_CTRL_SET_IV BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12114:27: error: 'EVP_KDF_CTRL_SET_MAXMEM_BYTES' undeclared (first use in this function); did you mean 'EVP_PKEY_CTRL_SCRYPT_MAXMEM_BYTES'? BUILDSTDERR: 12114 | if (EVP_KDF_ctrl(kctx, EVP_KDF_CTRL_SET_MAXMEM_BYTES, auxL_checkunsigned(L, -1, 0, UINT64_MAX)) <= 0) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | EVP_PKEY_CTRL_SCRYPT_MAXMEM_BYTES BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12120:27: error: 'EVP_KDF_CTRL_SET_TLS_SECRET' undeclared (first use in this function); did you mean 'EVP_PKEY_CTRL_TLS_SECRET'? BUILDSTDERR: 12120 | if (EVP_KDF_ctrl(kctx, EVP_KDF_CTRL_SET_TLS_SECRET, (const unsigned char*)str, len) <= 0) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | EVP_PKEY_CTRL_TLS_SECRET BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12130:27: error: 'EVP_KDF_CTRL_ADD_HKDF_INFO' undeclared (first use in this function); did you mean 'EVP_PKEY_CTRL_HKDF_INFO'? BUILDSTDERR: 12130 | if (EVP_KDF_ctrl(kctx, EVP_KDF_CTRL_ADD_HKDF_INFO, (const unsigned char*)str, len) <= 0) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | EVP_PKEY_CTRL_HKDF_INFO BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12156:27: error: 'EVP_KDF_CTRL_SET_HKDF_MODE' undeclared (first use in this function); did you mean 'EVP_PKEY_CTRL_HKDF_MODE'? BUILDSTDERR: 12156 | if (EVP_KDF_ctrl(kctx, EVP_KDF_CTRL_SET_HKDF_MODE, mode) <= 0) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | EVP_PKEY_CTRL_HKDF_MODE BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12161:27: error: 'EVP_KDF_CTRL_SET_SCRYPT_N' undeclared (first use in this function); did you mean 'EVP_PKEY_CTRL_SCRYPT_N'? BUILDSTDERR: 12161 | if (EVP_KDF_ctrl(kctx, EVP_KDF_CTRL_SET_SCRYPT_N, auxL_checkunsigned(L, -1, 0, UINT64_MAX)) <= 0) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | EVP_PKEY_CTRL_SCRYPT_N BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12166:27: error: 'EVP_KDF_CTRL_SET_SCRYPT_R' undeclared (first use in this function); did you mean 'EVP_PKEY_CTRL_SCRYPT_R'? BUILDSTDERR: 12166 | if (EVP_KDF_ctrl(kctx, EVP_KDF_CTRL_SET_SCRYPT_R, auxL_checkunsigned(L, -1, 0, UINT32_MAX)) <= 0) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | EVP_PKEY_CTRL_SCRYPT_R BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12171:27: error: 'EVP_KDF_CTRL_SET_SCRYPT_P' undeclared (first use in this function); did you mean 'EVP_PKEY_CTRL_SCRYPT_P'? BUILDSTDERR: 12171 | if (EVP_KDF_ctrl(kctx, EVP_KDF_CTRL_SET_SCRYPT_P, auxL_checkunsigned(L, -1, 0, UINT32_MAX)) <= 0) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | EVP_PKEY_CTRL_SCRYPT_P BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12186:26: error: 'EVP_KDF_CTRL_ADD_TLS_SEED' undeclared (first use in this function); did you mean 'EVP_PKEY_CTRL_TLS_SEED'? BUILDSTDERR: 12186 | if (EVP_KDF_ctrl(kctx, EVP_KDF_CTRL_ADD_TLS_SEED, (const unsigned char*)str, len) <= 0) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | EVP_PKEY_CTRL_TLS_SEED BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12192:12: warning: implicit declaration of function 'EVP_KDF_size'; did you mean 'EVP_MD_size'? [-Wimplicit-function-declaration] BUILDSTDERR: 12192 | outlen = EVP_KDF_size(kctx); BUILDSTDERR: | ^~~~~~~~~~~~ BUILDSTDERR: | EVP_MD_size BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12201:6: warning: implicit declaration of function 'EVP_KDF_derive'; did you mean 'EVP_PKEY_derive'? [-Wimplicit-function-declaration] BUILDSTDERR: 12201 | if (EVP_KDF_derive(kctx, out, &outlen) <= 0) BUILDSTDERR: | ^~~~~~~~~~~~~~ BUILDSTDERR: | EVP_PKEY_derive BUILDSTDERR: In file included from /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12416: BUILDSTDERR: /usr/include/sys/sysctl.h: At top level: BUILDSTDERR: /usr/include/sys/sysctl.h:21:2: warning: #warning "The header is deprecated and will be removed." [-Wcpp] BUILDSTDERR: 21 | #warning "The header is deprecated and will be removed." BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c: In function 'randL_stir': BUILDSTDERR: /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12483:3: warning: 'sysctl' is deprecated [-Wdeprecated-declarations] BUILDSTDERR: 12483 | if (0 != sysctl(mib, countof(mib), data, &n, (void *)0, 0)) BUILDSTDERR: | ^~ BUILDSTDERR: In file included from /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c:12416: BUILDSTDERR: /usr/include/sys/sysctl.h:70:12: note: declared here BUILDSTDERR: 70 | extern int sysctl (int *__name, int __nlen, void *__oldval, BUILDSTDERR: | ^~~~~~ BUILDSTDERR: make: *** [/builddir/build/BUILD/luaossl-rel-20190731/src/GNUmakefile:61: /builddir/build/BUILD/luaossl-rel-20190731/src/5.3/openssl.o] Error 1 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.6GS6cM (%build) cp /builddir/build/BUILD/luaossl-rel-20190731/config.h.guess /builddir/build/BUILD/luaossl-rel-20190731/config.h cp /builddir/build/BUILD/luaossl-rel-20190731/config.h /builddir/build/BUILD/luaossl-rel-20190731/src/config.h mkdir -p /builddir/build/BUILD/luaossl-rel-20190731/src/5.3 cc -O2 -std=gnu99 -fPIC -g -Wall -Wextra -Wno-missing-field-initializers -Wno-override-init -Wno-unused -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 -I/usr/include -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -DHAVE_CONFIG_H -DCOMPAT53_PREFIX=luaossl -c -o /builddir/build/BUILD/luaossl-rel-20190731/src/5.3/openssl.o /builddir/build/BUILD/luaossl-rel-20190731/src/openssl.c RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.6GS6cM (%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/lua-luaossl.spec