Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/openresty.spec'], chrootPath='/var/lib/mock/dist-an8.8-build-303086-66012/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'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/openresty.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'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/openresty-1.22.1.0-1.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/openresty.spec'], chrootPath='/var/lib/mock/dist-an8.8-build-303086-66012/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'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/openresty.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'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.HjEomO + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf openresty-1.22.1.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/openresty-1.22.1.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd openresty-1.22.1.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.cZTEqk + umask 022 + cd /builddir/build/BUILD + cd openresty-1.22.1.0 + ./configure --prefix=/usr/share/openresty --with-file-aio --with-pcre-jit --with-stream=dynamic --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_xslt_module=dynamic --with-http_v2_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_auth_request_module --with-http_secure_link_module --with-http_random_index_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-mail=dynamic --with-mail_ssl_module --with-threads --with-compat --with-http_postgres_module --with-http_ssl_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --add-dynamic-module=bundle/nginx-1.22.1/modules/nginx_qatzip_module --add-dynamic-module=bundle/nginx-1.22.1/modules/nginx_qat_module/ '--with-ld-opt=-L/lib64 -lqatzip -ldlb -lpcre -lz' '--with-cc=gcc -fdiagnostics-color=always' '--with-cc-opt=-O2 -DNGX_LUA_ABORT_AT_PANIC' platform: linux (linux) cp -rp bundle/ build cd build cd LuaJIT-2.1-20230410 gmake TARGET_STRIP=@: CCDEBUG=-g XCFLAGS='-DLUAJIT_ENABLE_LUA52COMPAT' CC='gcc -fdiagnostics-color=always' PREFIX=/usr/share/openresty/luajit ==== Building LuaJIT 2.1.0-beta3 ==== gmake -C src gmake[1]: Entering directory '/builddir/build/BUILD/openresty-1.22.1.0/build/LuaJIT-2.1-20230410/src' CC lj_init.o HOSTCC host/minilua.o HOSTLINK host/minilua DYNASM host/buildvm_arch.h HOSTCC host/buildvm.o HOSTCC host/buildvm_asm.o HOSTCC host/buildvm_peobj.o HOSTCC host/buildvm_lib.o HOSTCC host/buildvm_fold.o HOSTLINK host/buildvm BUILDVM lj_vm.S ASM lj_vm.o CC lj_assert.o CC lj_gc.o BUILDVM lj_ffdef.h CC lj_err.o CC lj_char.o BUILDVM lj_bcdef.h CC lj_bc.o CC lj_obj.o CC lj_buf.o CC lj_str.o CC lj_tab.o CC lj_func.o CC lj_udata.o CC lj_meta.o CC lj_debug.o CC lj_prng.o CC lj_state.o CC lj_dispatch.o CC lj_vmevent.o CC lj_vmmath.o CC lj_strscan.o CC lj_strfmt.o CC lj_strfmt_num.o CC lj_serialize.o CC lj_api.o CC lj_profile.o CC lj_lex.o CC lj_parse.o CC lj_bcread.o CC lj_bcwrite.o CC lj_load.o CC lj_ir.o CC lj_opt_mem.o BUILDVM lj_folddef.h CC lj_opt_fold.o CC lj_opt_narrow.o CC lj_opt_dce.o CC lj_opt_loop.o CC lj_opt_split.o CC lj_opt_sink.o CC lj_mcode.o CC lj_snap.o CC lj_record.o CC lj_crecord.o BUILDVM lj_recdef.h CC lj_ffrecord.o CC lj_asm.o CC lj_trace.o CC lj_gdbjit.o CC lj_ctype.o CC lj_cdata.o CC lj_cconv.o CC lj_ccall.o CC lj_ccallback.o CC lj_carith.o CC lj_clib.o CC lj_cparse.o CC lj_lib.o CC lj_alloc.o CC lib_aux.o BUILDVM lj_libdef.h CC lib_base.o CC lib_math.o CC lib_bit.o CC lib_string.o CC lib_table.o CC lib_io.o CC lib_os.o CC lib_package.o CC lib_debug.o CC lib_jit.o CC lib_ffi.o CC lib_buffer.o CC lib_init.o CC lj_str_hash.o AR libluajit.a CC luajit.o BUILDVM jit/vmdef.lua DYNLINK libluajit.so LINK luajit OK Successfully built LuaJIT gmake[1]: Leaving directory '/builddir/build/BUILD/openresty-1.22.1.0/build/LuaJIT-2.1-20230410/src' ==== Successfully built LuaJIT 2.1.0-beta3 ==== gmake install TARGET_STRIP=@: CCDEBUG=-g XCFLAGS='-DLUAJIT_ENABLE_LUA52COMPAT' CC='gcc -fdiagnostics-color=always' PREFIX=/usr/share/openresty/luajit DESTDIR=/builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root/ ==== Installing LuaJIT 2.1.0-beta3 to /usr/share/openresty/luajit ==== mkdir -p /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/bin /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/lib /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/include/luajit-2.1 /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/share/man/man1 /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/lib/pkgconfig /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/share/luajit-2.1.0-beta3/jit /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/share/lua/5.1 /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/lib/lua/5.1 cd src && install -m 0755 luajit /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/bin/luajit-2.1.0-beta3 cd src && test -f libluajit.a && install -m 0644 libluajit.a /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/lib/libluajit-5.1.a || : rm -f /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/lib/libluajit-5.1.so.2.1.0 /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/lib/libluajit-5.1.so /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/lib/libluajit-5.1.so.2 cd src && test -f libluajit.so && \ install -m 0755 libluajit.so /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/lib/libluajit-5.1.so.2.1.0 && \ ( ldconfig -n 2>/dev/null /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/lib || : ) && \ ln -sf libluajit-5.1.so.2.1.0 /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/lib/libluajit-5.1.so && \ ln -sf libluajit-5.1.so.2.1.0 /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/lib/libluajit-5.1.so.2 || : cd etc && install -m 0644 luajit.1 /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/share/man/man1 cd etc && sed -e "s|^prefix=.*|prefix=/usr/share/openresty/luajit|" -e "s|^multilib=.*|multilib=lib|" luajit.pc > luajit.pc.tmp && \ install -m 0644 luajit.pc.tmp /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/lib/pkgconfig/luajit.pc && \ rm -f luajit.pc.tmp cd src && install -m 0644 lua.h lualib.h lauxlib.h luaconf.h lua.hpp luajit.h /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/include/luajit-2.1 cd src/jit && install -m 0644 bc.lua bcsave.lua dump.lua p.lua v.lua zone.lua dis_x86.lua dis_x64.lua dis_arm.lua dis_arm64.lua dis_arm64be.lua dis_ppc.lua dis_mips.lua dis_mipsel.lua dis_mips64.lua dis_mips64el.lua vmdef.lua /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/share/luajit-2.1.0-beta3/jit ln -sf luajit-2.1.0-beta3 /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/share/openresty/luajit/bin/luajit ==== Successfully installed LuaJIT 2.1.0-beta3 to /usr/share/openresty/luajit ==== export LUAJIT_LIB='/builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root/usr/share/openresty/luajit/lib' export LUAJIT_INC='/builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root/usr/share/openresty/luajit/include/luajit-2.1' cd .. patching the resty script with hard-coded nginx binary path... cd nginx-1.22.1 sh ./configure --prefix=/usr/share/openresty/nginx \ --with-cc-opt='-O2 -O2 -DNGX_LUA_ABORT_AT_PANIC' \ --add-module=../ngx_devel_kit-0.3.2 \ --add-module=../echo-nginx-module-0.63 \ --add-module=../xss-nginx-module-0.06 \ --add-module=../ngx_coolkit-0.2 \ --add-module=../set-misc-nginx-module-0.33 \ --add-module=../form-input-nginx-module-0.12 \ --add-module=../encrypted-session-nginx-module-0.09 \ --add-module=../ngx_postgres-1.0 \ --add-module=../srcache-nginx-module-0.33 \ --add-module=../ngx_lua-0.10.25 \ --add-module=../ngx_lua_upstream-0.07 \ --add-module=../headers-more-nginx-module-0.34 \ --add-module=../array-var-nginx-module-0.06 \ --add-module=../memc-nginx-module-0.19 \ --add-module=../redis2-nginx-module-0.15 \ --add-module=../redis-nginx-module-0.3.9 \ --add-module=../rds-json-nginx-module-0.16 \ --add-module=../rds-csv-nginx-module-0.09 \ --add-module=../ngx_stream_lua-0.0.13 \ --with-ld-opt='-Wl,-rpath,/usr/share/openresty/luajit/lib -L/lib64 -lqatzip -ldlb -lpcre -lz' \ --with-file-aio --with-pcre-jit --with-stream=dynamic --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_xslt_module=dynamic --with-http_v2_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_auth_request_module --with-http_secure_link_module --with-http_random_index_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-mail=dynamic --with-mail_ssl_module --with-threads --with-compat --with-http_ssl_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --add-dynamic-module=/builddir/build/BUILD/openresty-1.22.1.0/bundle/nginx-1.22.1/modules/nginx_qatzip_module --add-dynamic-module=/builddir/build/BUILD/openresty-1.22.1.0/bundle/nginx-1.22.1/modules/nginx_qat_module '--with-cc=gcc -fdiagnostics-color=always' --with-stream checking for OS + Linux 4.18.0-305.19.1.el8_4.x86_64 x86_64 checking for C compiler ... found + using GNU C compiler + gcc version: 8.5.0 20210514 (Anolis 8.5.0-18.0.4) (GCC) checking for gcc -pipe switch ... found checking for --with-ld-opt="-Wl,-rpath,/usr/share/openresty/luajit/lib -L/lib64 -lqatzip -ldlb -lpcre -lz" ... not found ./configure: error: the invalid value in --with-ld-opt="-Wl,-rpath,/usr/share/openresty/luajit/lib -L/lib64 -lqatzip -ldlb -lpcre -lz" ERROR: failed to run command: sh ./configure --prefix=/usr/share/openresty/nginx \... error: Bad exit status from /var/tmp/rpm-tmp.cZTEqk (%build) Bad exit status from /var/tmp/rpm-tmp.cZTEqk (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/openresty.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, 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 x86_64 --nodeps /builddir/build/SPECS/openresty.spec