Mock Version: 5.0 Mock Version: 5.0 Mock Version: 5.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/tengine.spec'], chrootPath='/var/lib/mock//dist-an23.5-AImanager-build-536974-82836/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': 'C.UTF-8', 'FORCE_UNSAFE_CONFIGURE': '1'}shell=Falselogger=timeout=172800uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/tengine.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': 'C.UTF-8', 'FORCE_UNSAFE_CONFIGURE': '1'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1706227200 Wrote: /builddir/build/SRPMS/tengine-3.0.0-5.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/tengine.spec'], chrootPath='/var/lib/mock//dist-an23.5-AImanager-build-536974-82836/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': 'C.UTF-8', 'FORCE_UNSAFE_CONFIGURE': '1'}shell=Falselogger=timeout=172800uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/tengine.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': 'C.UTF-8', 'FORCE_UNSAFE_CONFIGURE': '1'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1706227200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.KYhQxH + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf tengine-3.0.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/tengine-3.0.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd tengine-3.0.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (0000-Fix-build-with-external-shared-tongsuo.patch):' Patch #0 (0000-Fix-build-with-external-shared-tongsuo.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file auto/lib/openssl/conf Patch #1 (0001-Fix-compilation-failure-of-grpc-module-when-add-ngx_.patch): + echo 'Patch #1 (0001-Fix-compilation-failure-of-grpc-module-when-add-ngx_.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file .github/workflows/test-ntls.yml patching file src/http/modules/ngx_http_grpc_module.c + sed -i s#nginx#tengine#g contrib/vim/ftdetect/nginx.vim contrib/vim/ftplugin/nginx.vim contrib/vim/indent/nginx.vim contrib/vim/syntax/nginx.vim + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.aH2gYI + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -march=rva23u64 -mabi=lp64d -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd tengine-3.0.0 + export DESTDIR=/builddir/build/BUILDROOT/tengine-3.0.0-5.an23.riscv64 + DESTDIR=/builddir/build/BUILDROOT/tengine-3.0.0-5.an23.riscv64 ++ ls /usr/include ++ grep luajit + ./configure --prefix=/usr/share/tengine --sbin-path=/usr/sbin/tengine --modules-path=/usr/lib64/tengine/modules --conf-path=/etc/tengine/nginx.conf --error-log-path=/var/log/tengine/error.log --http-log-path=/var/log/tengine/access.log --http-client-body-temp-path=/var/lib/tengine/tmp/client_body --http-proxy-temp-path=/var/lib/tengine/tmp/proxy --http-fastcgi-temp-path=/var/lib/tengine/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/tengine/tmp/uwsgi --http-scgi-temp-path=/var/lib/tengine/tmp/scgi --pid-path=/run/tengine.pid --lock-path=/run/lock/subsys/tengine --user=tengine --group=tengine --with-debug --with-compat --with-http_ssl_module --with-openssl-async --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_addition_module --with-http_dav_module --with-http_gzip_static_module --with-http_sub_module --with-http_v2_module --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-threads --with-http_secure_link_module --with-http_gunzip_module --without-mail_pop3_module --without-mail_smtp_module --without-mail_imap_module --without-http_uwsgi_module --without-http_scgi_module --with-http_random_index_module --add-module=modules/ngx_backtrace_module --add-module=modules/ngx_http_reqstat_module --add-module=modules/ngx_http_upstream_dynamic_module --add-module=modules/ngx_debug_pool --add-module=modules/ngx_http_slice_module --add-module=modules/ngx_http_upstream_dyups_module --add-module=modules/ngx_debug_timer --add-module=modules/ngx_http_sysguard_module --add-module=modules/ngx_http_concat_module --add-module=modules/ngx_http_upstream_session_sticky_module --add-module=modules/ngx_http_footer_filter_module --add-module=modules/ngx_http_trim_filter_module --add-module=modules/ngx_http_user_agent_module --add-module=modules/ngx_http_lua_module --add-module=modules/ngx_http_upstream_check_module --add-module=modules/ngx_slab_stat --add-module=modules/ngx_http_proxy_connect_module --add-module=modules/ngx_http_upstream_consistent_hash_module '--with-cc-opt=-g -Og -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wno-deprecated-declarations -fno-strict-aliasing -D_FORTIFY_SOURCE=2 --param=ssp-buffer-size=4 -DTCP_FASTOPEN=23 -fPIC -Wno-cast-function-type' '--with-ld-opt=-fPIE -fPIC -pie -Wl,-z,relro -Wl,-z,now' --with-luajit-inc=/usr/include/luajit-2.1 --with-luajit-lib=/usr/lib64 --with-openssl-opt=-fPIC '--with-zlib-opt=-O3 -fPIC' --with-pcre --with-pcre-opt=-fPIC --with-pcre-jit --with-jemalloc --with-openssl=/opt/tongsuo --add-module=modules/ngx_tongsuo_ntls --with-openssl-opt=enable-ntls --with-stream_sni checking for OS + Linux 6.6.102-5.an23.riscv64 riscv64 checking for C compiler ... found + using GNU C compiler checking for --with-ld-opt="-fPIE -fPIC -pie -Wl,-z,relro -Wl,-z,now" ... not found ./configure: error: the invalid value in --with-ld-opt="-fPIE -fPIC -pie -Wl,-z,relro -Wl,-z,now" error: Bad exit status from /var/tmp/rpm-tmp.aH2gYI (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.aH2gYI (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/tengine.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, 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 --noclean --target riscv64 --nodeps /builddir/build/SPECS/tengine.spec