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 aarch64 --nodeps /builddir/build/SPECS/libx86emu.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-306313-66960/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/libx86emu.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: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1693180800 Wrote: /builddir/build/SRPMS/libx86emu-1.11-10.01.1.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/libx86emu.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-306313-66960/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/libx86emu.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: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1693180800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.19XyMZ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libx86emu-1.11 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/libx86emu-1.11.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libx86emu-1.11 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/libx86emu-1.11-ldflags.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.7JA9uH + 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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + 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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + 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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -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 libx86emu-1.11 + /usr/bin/make -O -j80 V=1 VERBOSE=1 LIBDIR=/usr/lib64 GIT2LOG=: VERSION=1.11 MAJOR_VERSION=1 'CFLAGS=-fPIC -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' 'LDFLAGS=-fPIC -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 ' shared cat: VERSION: No such file or directory cut: VERSION: No such file or directory cat: VERSION: No such file or directory cut: VERSION: No such file or directory gcc -c -fPIC -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection mem.c mem.c: In function 'vm_i_byte': mem.c:547:12: warning: implicit declaration of function 'inb'; did you mean 'ins'? [-Wimplicit-function-declaration] 547 | return inb(addr); | ^~~ | ins mem.c: In function 'vm_i_word': mem.c:585:10: warning: implicit declaration of function 'inw'; did you mean 'ins'? [-Wimplicit-function-declaration] 585 | return inw(addr); | ^~~ | ins mem.c: In function 'vm_i_dword': mem.c:623:10: warning: implicit declaration of function 'inl'; did you mean 'ins'? [-Wimplicit-function-declaration] 623 | return inl(addr); | ^~~ | ins mem.c: In function 'vm_o_byte': mem.c:642:5: warning: implicit declaration of function 'outb'; did you mean 'outs'? [-Wimplicit-function-declaration] 642 | outb(val, addr); | ^~~~ | outs mem.c: In function 'vm_o_word': mem.c:677:3: warning: implicit declaration of function 'outw'; did you mean 'outs'? [-Wimplicit-function-declaration] 677 | outw(val, addr); | ^~~~ | outs mem.c: In function 'vm_o_dword': mem.c:714:3: warning: implicit declaration of function 'outl'; did you mean 'outs'? [-Wimplicit-function-declaration] 714 | outl(val, addr); | ^~~~ | outs gcc -c -fPIC -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection api.c gcc -c -fPIC -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection ops2.c gcc -c -fPIC -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection prim_ops.c prim_ops.c: In function 'sbb_word': prim_ops.c:1782:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 1782 | else | ^~~~ In file included from prim_ops.c:100: include/x86emu_int.h:87:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 87 | if(COND) SET_FLAG(FLAG); else CLEAR_FLAG(FLAG) | ^~ prim_ops.c:1784:9: note: in expansion of macro 'CONDITIONAL_SET_FLAG' 1784 | CONDITIONAL_SET_FLAG(res & 0x8000, F_SF); | ^~~~~~~~~~~~~~~~~~~~ prim_ops.c: In function 'sbb_long': prim_ops.c:1807:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 1807 | else | ^~~~ include/x86emu_int.h:87:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 87 | if(COND) SET_FLAG(FLAG); else CLEAR_FLAG(FLAG) | ^~ prim_ops.c:1809:9: note: in expansion of macro 'CONDITIONAL_SET_FLAG' 1809 | CONDITIONAL_SET_FLAG(res & 0x80000000, F_SF); | ^~~~~~~~~~~~~~~~~~~~ gcc -c -fPIC -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection decode.c gcc -c -fPIC -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection ops.c gcc -shared -Wl,-soname,libx86emu.so.1 -fPIC -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 api.o decode.o mem.o ops.o ops2.o prim_ops.o -o libx86emu.so.1.11 /usr/bin/ld: decode.o (symbol from plugin): in function `x86emu': (.text+0x0): multiple definition of `x86emu_optab'; api.o (symbol from plugin):(.text+0x0): first defined here /usr/bin/ld: decode.o (symbol from plugin): in function `x86emu': (.text+0x0): multiple definition of `x86emu_optab2'; api.o (symbol from plugin):(.text+0x0): first defined here /usr/bin/ld: mem.o (symbol from plugin): in function `mem_dup': (.text+0x0): multiple definition of `x86emu_optab2'; api.o (symbol from plugin):(.text+0x0): first defined here /usr/bin/ld: mem.o (symbol from plugin): in function `mem_dup': (.text+0x0): multiple definition of `x86emu_optab'; api.o (symbol from plugin):(.text+0x0): first defined here /usr/bin/ld: ops.o (symbol from plugin): in function `x86emu_optab2': (.text+0x0): multiple definition of `x86emu_optab2'; api.o (symbol from plugin):(.text+0x0): first defined here /usr/bin/ld: ops.o (symbol from plugin): in function `x86emu_optab2': (.text+0x0): multiple definition of `x86emu_optab'; api.o (symbol from plugin):(.text+0x0): first defined here /usr/bin/ld: ops2.o (symbol from plugin): in function `x86emu_optab2': (.text+0x0): multiple definition of `x86emu_optab2'; api.o (symbol from plugin):(.text+0x0): first defined here /usr/bin/ld: ops2.o (symbol from plugin): in function `x86emu_optab2': (.text+0x0): multiple definition of `x86emu_optab'; api.o (symbol from plugin):(.text+0x0): first defined here /usr/bin/ld: prim_ops.o (symbol from plugin): in function `aaa_word': (.text+0x0): multiple definition of `x86emu_optab2'; api.o (symbol from plugin):(.text+0x0): first defined here /usr/bin/ld: prim_ops.o (symbol from plugin): in function `aaa_word': (.text+0x0): multiple definition of `x86emu_optab'; api.o (symbol from plugin):(.text+0x0): first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:48: libx86emu.so.1.11] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.7JA9uH (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.7JA9uH (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/libx86emu.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 aarch64 --nodeps /builddir/build/SPECS/libx86emu.spec