Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/redis.spec'], chrootPath='/var/lib/mock/module-redis-5-8040020211116094103-3d27a66e-build-55006-26957/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/redis.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: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/redis-5.0.3-5.0.1.module+an8.4.0+10478+6ffdf329.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/redis.spec'], chrootPath='/var/lib/mock/module-redis-5-8040020211116094103-3d27a66e-build-55006-26957/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/redis.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: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.S155H3 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf redis-5.0.3 + /usr/bin/gzip -dc /builddir/build/SOURCES/redis-doc-a1e79fc.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/redis-5.0.3.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd redis-5.0.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + rm -rf redis-5.0.3 + /usr/bin/gzip -dc /builddir/build/SOURCES/redis-5.0.3.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd redis-5.0.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv ../redis-doc-a1e79fc9b2f42f04a8ab59c05c3228931adcd0a6 doc + echo 'Patch #1 (0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch):' Patch #1 (0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file man/man1/redis-benchmark.1 patching file man/man1/redis-check-aof.1 patching file man/man1/redis-check-rdb.1 patching file man/man1/redis-cli.1 patching file man/man1/redis-server.1 patching file man/man5/redis.conf.5 + echo 'Patch #2 (0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch):' Patch #2 (0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/Makefile Hunk #1 succeeded at 307 (offset 20 lines). + echo 'Patch #100 (redis-CVE-2019-10192.patch):' Patch #100 (redis-CVE-2019-10192.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-2019-10192 --fuzz=0 patching file src/hyperloglog.c patching file src/hyperloglog.c Hunk #2 succeeded at 1089 (offset -5 lines). patching file tests/unit/hyperloglog.tcl + echo 'Patch #101 (redis-CVE-2019-10193.patch):' Patch #101 (redis-CVE-2019-10193.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-2019-10193 --fuzz=0 patching file src/hyperloglog.c Hunk #1 succeeded at 1014 (offset -3 lines). Patch #102 (redis-CVE-2021-41099.patch): + echo 'Patch #102 (redis-CVE-2021-41099.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-2021-41099 --fuzz=0 patching file src/sds.c patching file src/sds.c + echo 'Patch #103 (redis-CVE-2021-32687.patch):' Patch #103 (redis-CVE-2021-32687.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-2021-32687 --fuzz=0 patching file src/intset.c patching file src/rdb.c patching file src/t_set.c + echo 'Patch #104 (redis-CVE-2021-32626.patch):' Patch #104 (redis-CVE-2021-32626.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-2021-32626 --fuzz=0 patching file src/scripting.c + echo 'Patch #105 (redis-CVE-2021-32627.patch):' Patch #105 (redis-CVE-2021-32627.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-2021-32627 --fuzz=0 patching file src/geo.c patching file src/listpack.c patching file src/quicklist.c patching file src/rdb.c patching file src/server.h patching file src/t_hash.c patching file src/t_list.c patching file src/t_stream.c patching file src/t_zset.c patching file src/ziplist.c patching file src/ziplist.h patching file tests/support/util.tcl patching file tests/unit/violations.tcl + echo 'Patch #106 (redis-CVE-2021-32675.patch):' Patch #106 (redis-CVE-2021-32675.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-2021-32675 --fuzz=0 patching file src/networking.c Hunk #1 succeeded at 1289 (offset -20 lines). Hunk #2 succeeded at 1338 (offset -20 lines). patching file tests/unit/auth.tcl + echo 'Patch #1000 (1000-anolis-redis-add-loongarch-support.patch):' Patch #1000 (1000-anolis-redis-add-loongarch-support.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h + mv deps/lua/COPYRIGHT COPYRIGHT-lua + mv deps/jemalloc/COPYING COPYING-jemalloc + mv deps/hiredis/COPYING COPYING-hiredis + sed -i -e 's|^logfile .*$|logfile /var/log/redis/redis.log|g' redis.conf + sed -i -e '$ alogfile /var/log/redis/sentinel.log' sentinel.conf + sed -i -e 's|^dir .*$|dir /var/lib/redis|g' redis.conf ++ sed -n -e 's/#define REDISMODULE_APIVER_[0-9][0-9]* //p' src/redismodule.h + api=1 + test 1 '!=' 1 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.oXvV5T + umask 022 + cd /builddir/build/BUILD + cd redis-5.0.3 + make -j4 DEBUG= V=echo 'LDFLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' 'CFLAGS+=-O2 -g -fPIC' 'INSTALL=install -p' PREFIX=/builddir/build/BUILDROOT/redis-5.0.3-5.0.1.module+an8.4.0+10478+6ffdf329.loongarch64/usr all cd src && make all make[1]: Entering directory '/builddir/build/BUILD/redis-5.0.3/src' cc -std=c99 -pedantic -DREDIS_STATIC='' -Wall -W -Wno-missing-field-initializers -O2 -O2 -g -fPIC -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -DUSE_JEMALLOC -I../deps/jemalloc/include -MM *.c > Makefile.dep 2> /dev/null || true rm -rf redis-server redis-sentinel redis-cli redis-benchmark redis-check-rdb redis-check-aof *.o *.gcda *.gcno *.gcov redis.info lcov-html Makefile.dep dict-benchmark (cd ../deps && make distclean) make[2]: Entering directory '/builddir/build/BUILD/redis-5.0.3/deps' (cd hiredis && make clean) > /dev/null || true (cd linenoise && make clean) > /dev/null || true (cd lua && make clean) > /dev/null || true (cd jemalloc && [ -f Makefile ] && make distclean) > /dev/null || true (rm -f .make-*) make[2]: Leaving directory '/builddir/build/BUILD/redis-5.0.3/deps' (rm -f .make-*) echo STD=-std=c99 -pedantic -DREDIS_STATIC='' >> .make-settings echo WARN=-Wall -W -Wno-missing-field-initializers >> .make-settings echo OPT=-O2 >> .make-settings echo MALLOC=jemalloc >> .make-settings echo CFLAGS=-O2 -g -fPIC >> .make-settings echo LDFLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld >> .make-settings echo REDIS_CFLAGS= >> .make-settings echo REDIS_LDFLAGS= >> .make-settings echo PREV_FINAL_CFLAGS=-std=c99 -pedantic -DREDIS_STATIC='' -Wall -W -Wno-missing-field-initializers -O2 -O2 -g -fPIC -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -DUSE_JEMALLOC -I../deps/jemalloc/include >> .make-settings echo PREV_FINAL_LDFLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -rdynamic >> .make-settings (cd ../deps && make hiredis linenoise lua jemalloc) make[2]: Entering directory '/builddir/build/BUILD/redis-5.0.3/deps' (cd hiredis && make clean) > /dev/null || true (cd linenoise && make clean) > /dev/null || true (cd lua && make clean) > /dev/null || true (cd jemalloc && [ -f Makefile ] && make distclean) > /dev/null || true (rm -f .make-*) (echo "-O2 -g -fPIC" > .make-cflags) (echo "-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld" > .make-ldflags) MAKE hiredis cd hiredis && make static MAKE jemalloc MAKE linenoise cd jemalloc && ./configure --with-version=5.1.0-0-g0 --with-lg-quantum=3 --with-jemalloc-prefix=je_ --enable-cc-silence CFLAGS="-std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops -O2 -g -fPIC" LDFLAGS="-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld" cd linenoise && make MAKE lua cd lua/src && make all CFLAGS="-O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC" MYLDFLAGS="-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld" AR="ar rcu" make[3]: Entering directory '/builddir/build/BUILD/redis-5.0.3/deps/hiredis' make[3]: Entering directory '/builddir/build/BUILD/redis-5.0.3/deps/linenoise' cc -Wall -Os -O2 -g -fPIC -c linenoise.c make[3]: Entering directory '/builddir/build/BUILD/redis-5.0.3/deps/lua/src' cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lapi.o lapi.c cc -std=c99 -pedantic -c -O3 -fPIC -O2 -g -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c configure: WARNING: unrecognized options: --enable-cc-silence checking for xsltproc... false checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... cc -std=c99 -pedantic -c -O3 -fPIC -O2 -g -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb hiredis.c checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether compiler is cray... no checking whether compiler supports -std=gnu11... make[3]: Leaving directory '/builddir/build/BUILD/redis-5.0.3/deps/linenoise' cc -std=c99 -pedantic -c -O3 -fPIC -O2 -g -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb sds.c yes checking whether compiler supports -Wall... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lcode.o lcode.c yes checking whether compiler supports -Wshorten-64-to-32... no checking whether compiler supports -Wsign-compare... yes checking whether compiler supports -Wundef... yes checking whether compiler supports -Wno-format-zero-length... yes checking whether compiler supports -pipe... yes checking whether compiler supports -g3... yes checking how to run the C preprocessor... gcc -E checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether g++ supports C++14 features by default... yes checking whether compiler supports -Wall... cc -std=c99 -pedantic -c -O3 -fPIC -O2 -g -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb async.c yes checking whether compiler supports -g3... yes checking whether libstdc++ linkage is compilable... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o ldebug.o ldebug.c yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... cc -std=c99 -pedantic -c -O3 -fPIC -O2 -g -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb read.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o ldo.o ldo.c yes checking for string.h... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o ldump.o ldump.c ldo.c: In function 'f_parser': ldo.c:496:7: warning: unused variable 'c' [-Wunused-variable] int c = luaZ_lookahead(p->z); ^ yes checking for memory.h... yes checking for strings.h... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lfunc.o lfunc.c yes checking for inttypes.h... yes checking for stdint.h... yes ar rcs libhiredis.a net.o hiredis.o sds.o async.o read.o make[3]: Leaving directory '/builddir/build/BUILD/redis-5.0.3/deps/hiredis' cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lgc.o lgc.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o llex.o llex.c checking for unistd.h... yes cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lmem.o lmem.c checking whether byte ordering is bigendian... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lobject.o lobject.c no checking size of void *... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lopcodes.o lopcodes.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lparser.o lparser.c 8 checking size of int... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lstate.o lstate.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lstring.o lstring.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o ltable.o ltable.c 4 checking size of long... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o ltm.o ltm.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lundump.o lundump.c 8 checking size of long long... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lvm.o lvm.c 8 checking size of intmax_t... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lzio.o lzio.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o strbuf.o strbuf.c 8 checking build system type... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o fpconv.o fpconv.c build-aux/config.guess: unable to guess system type This script (version 2016-10-02), has failed to recognize the operating system you are using. If your script is old, overwrite config.guess and config.sub with the latest versions from: http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess and http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub If build-aux/config.guess has already been updated, send the following data and any information you think might be pertinent to config-patches@gnu.org to provide the necessary information to handle your system. config.guess timestamp = 2016-10-02 uname -m = loongarch64 uname -r = 4.19.190-1.lns8.loongarch64 uname -s = Linux uname -v = #1 SMP Tue Jul 13 17:53:26 CST 2021 /usr/bin/uname -p = loongarch64 /bin/uname -X = hostinfo = /bin/universe = /usr/bin/arch -k = /bin/arch = loongarch64 /usr/bin/oslevel = /usr/convex/getsysinfo = UNAME_MACHINE = loongarch64 UNAME_RELEASE = 4.19.190-1.lns8.loongarch64 UNAME_SYSTEM = Linux UNAME_VERSION = #1 SMP Tue Jul 13 17:53:26 CST 2021 configure: error: cannot guess build type; you must specify one cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lauxlib.o lauxlib.c make[2]: *** [Makefile:80: jemalloc] Error 1 make[2]: *** Waiting for unfinished jobs.... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lbaselib.o lbaselib.c lauxlib.c: In function 'luaL_loadfile': lauxlib.c:577:4: warning: this 'while' clause does not guard... [-Wmisleading-indentation] while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0]) ; ^~~~~ lauxlib.c:578:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' lf.extraline = 0; ^~ cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o ldblib.o ldblib.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o liolib.o liolib.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lmathlib.o lmathlib.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o loslib.o loslib.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o ltablib.o ltablib.c ltablib.c: In function 'addfield': ltablib.c:137:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!lua_isstring(L, -1)) ^~ ltablib.c:140:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' luaL_addvalue(b); ^~~~~~~~~~~~~ cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lstrlib.o lstrlib.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o loadlib.o loadlib.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o linit.o linit.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lua_cjson.o lua_cjson.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lua_struct.o lua_struct.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lua_cmsgpack.o lua_cmsgpack.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lua_bit.o lua_bit.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lua.o lua.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o luac.o luac.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o print.o print.c ar rcu liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o strbuf.o fpconv.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o lua_cjson.o lua_struct.o lua_cmsgpack.o lua_bit.o # DLL needs all object files ranlib liblua.a cc -o lua -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld lua.o liblua.a -lm cc -o luac -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld luac.o print.o liblua.a -lm /usr/bin/ld: liblua.a(loslib.o): in function `getenv': getenv/loslib.c:164: warning: the use of `tmpnam' is dangerous, better use `mkstemp' make[3]: Leaving directory '/builddir/build/BUILD/redis-5.0.3/deps/lua/src' make[2]: Leaving directory '/builddir/build/BUILD/redis-5.0.3/deps' make[1]: [Makefile:200: persist-settings] Error 2 (ignored) cc -std=c99 -pedantic -DREDIS_STATIC='' -Wall -W -Wno-missing-field-initializers -O2 -O2 -g -fPIC -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -DUSE_JEMALLOC -I../deps/jemalloc/include -c adlist.c cc -std=c99 -pedantic -DREDIS_STATIC='' -Wall -W -Wno-missing-field-initializers -O2 -O2 -g -fPIC -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -DUSE_JEMALLOC -I../deps/jemalloc/include -c quicklist.c cc -std=c99 -pedantic -DREDIS_STATIC='' -Wall -W -Wno-missing-field-initializers -O2 -O2 -g -fPIC -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -DUSE_JEMALLOC -I../deps/jemalloc/include -c ae.c cc -std=c99 -pedantic -DREDIS_STATIC='' -Wall -W -Wno-missing-field-initializers -O2 -O2 -g -fPIC -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -DUSE_JEMALLOC -I../deps/jemalloc/include -c anet.c In file included from adlist.c:34: zmalloc.h:50:10: fatal error: jemalloc/jemalloc.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[1]: *** [Makefile:248: adlist.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from quicklist.c:34: zmalloc.h:50:10: fatal error: jemalloc/jemalloc.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[1]: *** [Makefile:248: quicklist.o] Error 1 In file included from ae.c:44: zmalloc.h:50:10: fatal error: jemalloc/jemalloc.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[1]: *** [Makefile:248: ae.o] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/redis-5.0.3/src' RPM build errors: make: *** [Makefile:6: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.oXvV5T (%build) Bad exit status from /var/tmp/rpm-tmp.oXvV5T (%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 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/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 loongarch64 --nodeps /builddir/build/SPECS/redis.spec