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 loongarch64 --nodeps /builddir/build/SPECS/deepin-pw-check.spec'], chrootPath='/var/lib/mock/dist-an8.9-dde-la64-build-330339-69401/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=976gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/deepin-pw-check.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/deepin-pw-check-5.1.17-2.0.1.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/deepin-pw-check.spec'], chrootPath='/var/lib/mock/dist-an8.9-dde-la64-build-330339-69401/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=976gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/deepin-pw-check.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.lOb4K5 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf deepin-pw-check-5.1.17 + /usr/bin/gzip -dc /builddir/build/SOURCES/deepin-pw-check-5.1.17.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd deepin-pw-check-5.1.17 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1000 (0001-fix-for-UonioTech.patch):' Patch #1000 (0001-fix-for-UonioTech.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile Hunk #2 succeeded at 56 (offset 2 lines). + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.m0f8gm + umask 022 + cd /builddir/build/BUILD + cd deepin-pw-check-5.1.17 + export CGO_ENABLED=1 + CGO_ENABLED=1 + export GOOS=linux + GOOS=linux + export GO111MODULE=auto + GO111MODULE=auto ++ head -c20 /dev/urandom ++ od -An -tx1 ++ tr -d ' \n' + BUILDID=0x582781194960992fe605c7212d1c5aa0f39b972e + export GOPATH=/usr/share/gocode/: + GOPATH=/usr/share/gocode/: + /usr/bin/make -O -j16 GO_BUILD_FLAGS=-trimpath 'GOBUILD=go build -compiler gc -ldflags "-B 0x582781194960992fe605c7212d1c5aa0f39b972e"' gcc lib/debug.c -c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -DIN_CRACKLIB -W -Wall -o lib/debug.o gcc lib/word_check.c -c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -DIN_CRACKLIB -W -Wall -o lib/word_check.o lib/word_check.c: In function 'word_check': lib/word_check.c:401:19: error: too few arguments to function 'Mangle' if (!(a = Mangle((char*)pw, r_destructors[i]))) ^~~~~~ In file included from lib/word_check.c:7: /usr/include/packer.h:85:14: note: declared here extern char *Mangle(char *input, char *control, char *area); ^~~~~~ make: *** [Makefile:38: lib/word_check] Error 1 make: *** Waiting for unfinished jobs.... gcc lib/bigcrypt.c -c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -DIN_CRACKLIB -W -Wall -o lib/bigcrypt.o gcc lib/passwd_compare.c -c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -DIN_CRACKLIB -W -Wall -o lib/passwd_compare.o gcc lib/md5_crypt.c -c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -DIN_CRACKLIB -W -Wall -o lib/md5_crypt.o gcc lib/md5.c -c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -DIN_CRACKLIB -W -Wall -o lib/md5.o deepin-policy-ts-convert ts2policy misc/polkit-action/com.deepin.daemon.passwdconf.policy.in misc/ts/com.deepin.daemon.passwdconf.policy misc/polkit-action/com.deepin.daemon.passwdconf.policy policyFile: misc/polkit-action/com.deepin.daemon.passwdconf.policy.in tsDir: misc/ts/com.deepin.daemon.passwdconf.policy outputPolicyFile: misc/polkit-action/com.deepin.daemon.passwdconf.policy gcc tool/*.c -liniparser -W -Wall -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -o out/pwd-conf-update gcc lib/deepin_pw_check.c -c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -DIN_CRACKLIB -W -Wall -o lib/deepin_pw_check.o lib/deepin_pw_check.c: In function 'get_default_options': lib/deepin_pw_check.c:149:48: warning: unused parameter 'level' [-Wunused-parameter] static struct Options *get_default_options(int level, const char *dict_path, const char *conf_file) { ~~~~^~~~~ lib/deepin_pw_check.c: In function 'is_type_valid': lib/deepin_pw_check.c:312:31: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] for (int j = 0; j < strlen(p); j++) { ^ lib/deepin_pw_check.c: In function 'err_to_string_by_conf': lib/deepin_pw_check.c:744:143: warning: unknown conversion type character '^' in format [-Wformat=] snprintf(out_buff, BUFF_SIZE, gettext("Password can only contain English letters (case-sensitive), numbers or special symbols (~`!@#$%^&*()-_+=|\\{}[]:\"'<>,.?/)"), tmp_buff); ^ lib/deepin_pw_check.c:744:47: warning: too many arguments for format [-Wformat-extra-args] snprintf(out_buff, BUFF_SIZE, gettext("Password can only contain English letters (case-sensitive), numbers or special symbols (~`!@#$%^&*()-_+=|\\{}[]:\"'<>,.?/)"), tmp_buff); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc lib/*.c -fPIC -fstack-protector-all -z relro -z noexecstack -z now -pie -shared -DIN_CRACKLIB -W -Wall -Wl,-soname,libdeepin_pw_check.so.1 -o out/libdeepin_pw_check.so.1.1 -lcrypt -lcrack -liniparser lib/deepin_pw_check.c: In function 'get_default_options': lib/deepin_pw_check.c:149:48: warning: unused parameter 'level' [-Wunused-parameter] static struct Options *get_default_options(int level, const char *dict_path, const char *conf_file) { ~~~~^~~~~ lib/deepin_pw_check.c: In function 'is_type_valid': lib/deepin_pw_check.c:312:31: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] for (int j = 0; j < strlen(p); j++) { ^ lib/deepin_pw_check.c: In function 'err_to_string_by_conf': lib/deepin_pw_check.c:744:143: warning: unknown conversion type character '^' in format [-Wformat=] snprintf(out_buff, BUFF_SIZE, gettext("Password can only contain English letters (case-sensitive), numbers or special symbols (~`!@#$%^&*()-_+=|\\{}[]:\"'<>,.?/)"), tmp_buff); ^ lib/deepin_pw_check.c:744:47: warning: too many arguments for format [-Wformat-extra-args] snprintf(out_buff, BUFF_SIZE, gettext("Password can only contain English letters (case-sensitive), numbers or special symbols (~`!@#$%^&*()-_+=|\\{}[]:\"'<>,.?/)"), tmp_buff); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lib/word_check.c: In function 'word_check': lib/word_check.c:401:19: error: too few arguments to function 'Mangle' if (!(a = Mangle((char*)pw, r_destructors[i]))) ^~~~~~ In file included from lib/word_check.c:7: /usr/include/packer.h:85:14: note: declared here extern char *Mangle(char *input, char *control, char *area); ^~~~~~ make: *** [Makefile:34: out/libdeepin_pw_check.so.1.1] Error 1 env GOPATH="/usr/share/gocode/:" go build -compiler gc -ldflags "-B 0x582781194960992fe605c7212d1c5aa0f39b972e" -o out/bin/deepin-pw-check service/*.go # github.com/linuxdeepin/go-gir/gobject-2.0 fix_gobject.c: In function '_g_type_param_value_array': fix_gobject.c:74:13: warning: Deprecated pre-processor symbol GType _g_type_param_value_array() { return G_TYPE_PARAM_VALUE_ARRAY; } ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: Bad exit status from /var/tmp/rpm-tmp.m0f8gm (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.m0f8gm (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/deepin-pw-check.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 loongarch64 --nodeps /builddir/build/SPECS/deepin-pw-check.spec