Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 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-oc9-build-42740-14591/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=991gid=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 Wrote: /builddir/build/SRPMS/libx86emu-3.5-3.oc9.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-oc9-build-42740-14591/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=991gid=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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.iHt0tX + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libx86emu-3.5 + /usr/bin/gzip -dc /builddir/build/SOURCES/libx86emu-3.5.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libx86emu-3.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.JIBFoc + umask 022 + cd /builddir/build/BUILD + cd libx86emu-3.5 + /usr/bin/make -O -j8 V=1 VERBOSE=1 LIBDIR=/usr/lib64 GIT2LOG=: VERSION=3.5 MAJOR_VERSION=3 'CFLAGS=-fPIC -O2 -g' 'LDFLAGS=-fPIC %{__global_ldflags}' 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 -g api.c gcc -c -fPIC -O2 -g mem.c mem.c: In function 'vm_i_byte': mem.c:581:12: warning: implicit declaration of function 'inb'; did you mean 'ins'? [-Wimplicit-function-declaration] 581 | return inb(addr); | ^~~ | ins mem.c: In function 'vm_i_word': mem.c:619:10: warning: implicit declaration of function 'inw'; did you mean 'ins'? [-Wimplicit-function-declaration] 619 | return inw(addr); | ^~~ | ins mem.c: In function 'vm_i_dword': mem.c:657:10: warning: implicit declaration of function 'inl'; did you mean 'ins'? [-Wimplicit-function-declaration] 657 | return inl(addr); | ^~~ | ins mem.c: In function 'vm_o_byte': mem.c:676:5: warning: implicit declaration of function 'outb'; did you mean 'outs'? [-Wimplicit-function-declaration] 676 | outb(val, addr); | ^~~~ | outs mem.c: In function 'vm_o_word': mem.c:711:3: warning: implicit declaration of function 'outw'; did you mean 'outs'? [-Wimplicit-function-declaration] 711 | outw(val, addr); | ^~~~ | outs mem.c: In function 'vm_o_dword': mem.c:748:3: warning: implicit declaration of function 'outl'; did you mean 'outs'? [-Wimplicit-function-declaration] 748 | outl(val, addr); | ^~~~ | outs gcc -c -fPIC -O2 -g decode.c gcc -c -fPIC -O2 -g ops2.c gcc -c -fPIC -O2 -g prim_ops.c gcc -c -fPIC -O2 -g ops.c gcc -shared -Wl,-soname,libx86emu.so.3 api.o decode.o mem.o ops.o ops2.o prim_ops.o -o libx86emu.so.3.5 -fPIC %{__global_ldflags} /usr/bin/ld: cannot find %{__global_ldflags}: No such file or directory collect2: error: ld returned 1 exit status make: *** [Makefile:46: libx86emu.so.3.5] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.JIBFoc (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.JIBFoc (%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 597, 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