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-6-8040020211116022908-3d27a66e-build-54996-26925/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-6.0.9-5.module+an8.4.0+10474+4b05c868.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-6-8040020211116022908-3d27a66e-build-54996-26925/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.kM3t3V + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf redis-6.0.9 + /usr/bin/gzip -dc /builddir/build/SOURCES/redis-doc-8d4bf9b.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/gzip -dc /builddir/build/SOURCES/redis-6.0.9.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd redis-6.0.9 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + rm -rf redis-6.0.9 + /usr/bin/gzip -dc /builddir/build/SOURCES/redis-6.0.9.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd redis-6.0.9 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv ../redis-doc-8d4bf9bc476829a84a055c049be72634d6e938df doc Patch #1 (0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch): + echo '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 Patch #2 (0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch): + echo '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 394 (offset 87 lines). Patch #3 (redis-config.patch): + echo 'Patch #3 (redis-config.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/config.c Patch #100 (redis-CVE-2021-26477.patch): + echo 'Patch #100 (redis-CVE-2021-26477.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-2011-29477 --fuzz=0 patching file src/t_string.c Patch #101 (redis-CVE-2021-32687.patch): + echo 'Patch #101 (redis-CVE-2021-32687.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-2011-32687 --fuzz=0 patching file src/intset.c patching file src/rdb.c Hunk #1 succeeded at 1517 (offset -1 lines). patching file src/t_set.c Patch #102 (redis-CVE-2021-32626.patch): + echo 'Patch #102 (redis-CVE-2021-32626.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-2011-32626 --fuzz=0 patching file src/scripting.c Hunk #8 succeeded at 2529 (offset -7 lines). Patch #103 (redis-CVE-2021-32627.patch): + echo 'Patch #103 (redis-CVE-2021-32627.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-2011-32627 --fuzz=0 patching file src/geo.c patching file src/listpack.c patching file src/quicklist.c patching file src/rdb.c Hunk #1 succeeded at 1560 (offset -1 lines). Hunk #2 succeeded at 1597 (offset -1 lines). Hunk #3 succeeded at 1605 (offset -1 lines). Hunk #4 succeeded at 1638 (offset -1 lines). Hunk #5 succeeded at 1733 (offset -1 lines). patching file src/server.h Hunk #1 succeeded at 1982 (offset -17 lines). 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 Patch #104 (redis-CVE-2021-41099.patch): + echo 'Patch #104 (redis-CVE-2021-41099.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-2011-41099 --fuzz=0 patching file src/sds.c patching file src/sds.c Patch #105 (redis-CVE-2021-32675.patch): + echo 'Patch #105 (redis-CVE-2021-32675.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-2011-32675 --fuzz=0 patching file src/networking.c Hunk #2 succeeded at 1706 (offset -47 lines). Hunk #3 succeeded at 1757 (offset -47 lines). patching file src/server.c Hunk #1 succeeded at 3578 (offset -12 lines). patching file src/server.h Hunk #1 succeeded at 1728 (offset -15 lines). patching file tests/unit/auth.tcl + 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 's|^logfile .*$|logfile /var/log/redis/sentinel.log|g' 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.H1oX9a + umask 022 + cd /builddir/build/BUILD + cd redis-6.0.9 + 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-6.0.9-5.module+an8.4.0+10474+4b05c868.loongarch64/usr BUILD_WITH_SYSTEMD=yes BUILD_TLS=yes all cd src && make all make[1]: Entering directory '/builddir/build/BUILD/redis-6.0.9/src' cc -std=c11 -pedantic -DREDIS_STATIC='' -Wall -W -Wno-missing-field-initializers -O2 -O2 -g -fPIC -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -DHAVE_LIBSYSTEMD -DUSE_JEMALLOC -I../deps/jemalloc/include -DUSE_OPENSSL -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 rm -f adlist.d quicklist.d ae.d anet.d dict.d server.d sds.d zmalloc.d lzf_c.d lzf_d.d pqsort.d zipmap.d sha1.d ziplist.d release.d networking.d util.d object.d db.d replication.d rdb.d t_string.d t_list.d t_set.d t_zset.d t_hash.d config.d aof.d pubsub.d multi.d debug.d sort.d intset.d syncio.d cluster.d crc16.d endianconv.d slowlog.d scripting.d bio.d rio.d rand.d memtest.d crcspeed.d crc64.d bitops.d sentinel.d notify.d setproctitle.d blocked.d hyperloglog.d latency.d sparkline.d redis-check-rdb.d redis-check-aof.d geo.d lazyfree.d module.d evict.d expire.d geohash.d geohash_helper.d childinfo.d defrag.d siphash.d rax.d t_stream.d listpack.d localtime.d lolwut.d lolwut5.d lolwut6.d acl.d gopher.d tracking.d connection.d tls.d sha256.d timeout.d setcpuaffinity.d anet.d adlist.d dict.d redis-cli.d zmalloc.d release.d ae.d crcspeed.d crc64.d siphash.d crc16.d ae.d anet.d redis-benchmark.d adlist.d dict.d zmalloc.d siphash.d (cd ../deps && make distclean) make[2]: Entering directory '/builddir/build/BUILD/redis-6.0.9/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-6.0.9/deps' (rm -f .make-*) echo STD=-std=c11 -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 BUILD_TLS=yes >> .make-settings echo USE_SYSTEMD= >> .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=c11 -pedantic -DREDIS_STATIC='' -Wall -W -Wno-missing-field-initializers -O2 -O2 -g -fPIC -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -DHAVE_LIBSYSTEMD -DUSE_JEMALLOC -I../deps/jemalloc/include -DUSE_OPENSSL >> .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-6.0.9/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 MAKE linenoise cd linenoise && make cd hiredis && make static USE_SSL=1 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 jemalloc 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" make[3]: Entering directory '/builddir/build/BUILD/redis-6.0.9/deps/hiredis' make[3]: Entering directory '/builddir/build/BUILD/redis-6.0.9/deps/lua/src' cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lapi.o lapi.c make[3]: Entering directory '/builddir/build/BUILD/redis-6.0.9/deps/linenoise' cc -Wall -Os -O2 -g -fPIC -c linenoise.c cc -std=c99 -pedantic -c -O3 -fPIC -O2 -g -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -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... checking whether we are cross compiling... cc -std=c99 -pedantic -c -O3 -fPIC -O2 -g -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb hiredis.c 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... yes checking whether compiler supports -Wall... make[3]: Leaving directory '/builddir/build/BUILD/redis-6.0.9/deps/linenoise' cc -std=c99 -pedantic -c -O3 -fPIC -O2 -g -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb sds.c 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... cc -std=c99 -pedantic -c -O3 -fPIC -O2 -g -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb async.c gcc -E checking for g++... g++ cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o ldebug.o ldebug.c 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... yes checking whether compiler supports -g3... yes checking whether libstdc++ linkage is compilable... 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... cc -std=c99 -pedantic -c -O3 -fPIC -O2 -g -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb read.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o ldo.o ldo.c cc -std=c99 -pedantic -c -O3 -fPIC -O2 -g -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb sockcompat.c ldo.c: In function 'f_parser': ldo.c:496:7: warning: unused variable 'c' [-Wunused-variable] int c = luaZ_lookahead(p->z); ^ cc -std=c99 -pedantic -c -O3 -fPIC -O2 -g -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb ssl.c yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... ar rcs libhiredis.a net.o hiredis.o sds.o async.o read.o sockcompat.o cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o ldump.o ldump.c yes checking for string.h... ar rcs libhiredis_ssl.a ssl.o make[3]: Leaving directory '/builddir/build/BUILD/redis-6.0.9/deps/hiredis' cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lfunc.o lfunc.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lgc.o lgc.c yes checking for memory.h... yes cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o llex.o llex.c checking for strings.h... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lmem.o lmem.c yes checking for inttypes.h... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lobject.o lobject.c yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... 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 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 no checking size of void *... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o ltable.o ltable.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o ltm.o ltm.c 8 cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lundump.o lundump.c checking size of int... 4 checking size of long... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lvm.o lvm.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lzio.o lzio.c 8 checking size of long long... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o strbuf.o strbuf.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o fpconv.o fpconv.c 8 checking size of intmax_t... cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -O2 -g -fPIC -c -o lauxlib.o lauxlib.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 lbaselib.o lbaselib.c 8 checking build system type... 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 make[2]: *** [Makefile:84: jemalloc] Error 1 make[2]: *** Waiting for unfinished jobs.... 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-6.0.9/deps/lua/src' make[2]: Leaving directory '/builddir/build/BUILD/redis-6.0.9/deps' make[1]: [Makefile:283: persist-settings] Error 2 (ignored) cc -std=c11 -pedantic -DREDIS_STATIC='' -Wall -W -Wno-missing-field-initializers -O2 -O2 -g -fPIC -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -DHAVE_LIBSYSTEMD -DUSE_JEMALLOC -I../deps/jemalloc/include -DUSE_OPENSSL -MMD -o adlist.o -c adlist.c cc -std=c11 -pedantic -DREDIS_STATIC='' -Wall -W -Wno-missing-field-initializers -O2 -O2 -g -fPIC -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -DHAVE_LIBSYSTEMD -DUSE_JEMALLOC -I../deps/jemalloc/include -DUSE_OPENSSL -MMD -o quicklist.o -c quicklist.c cc -std=c11 -pedantic -DREDIS_STATIC='' -Wall -W -Wno-missing-field-initializers -O2 -O2 -g -fPIC -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -DHAVE_LIBSYSTEMD -DUSE_JEMALLOC -I../deps/jemalloc/include -DUSE_OPENSSL -MMD -o ae.o -c ae.c cc -std=c11 -pedantic -DREDIS_STATIC='' -Wall -W -Wno-missing-field-initializers -O2 -O2 -g -fPIC -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -DHAVE_LIBSYSTEMD -DUSE_JEMALLOC -I../deps/jemalloc/include -DUSE_OPENSSL -MMD -o anet.o -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:334: 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:334: 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:334: ae.o] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/redis-6.0.9/src' make: *** [Makefile:6: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.H1oX9a (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.H1oX9a (%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